openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Upload to maven central via bintray.

Open danfickle opened this issue 9 years ago • 42 comments

danfickle avatar Feb 05 '16 12:02 danfickle

Created Jira support ticket to claim com.openhtmltopdf group id today.

danfickle avatar Mar 24 '16 07:03 danfickle

OK, I uploaded the release (0.0.1-RC2) to bintray. The next step is to request inclusion in Jcenter which I have done. Once it is there, it can be synced to maven central.

On a side note, NPM (the Node.js package manager) is perhaps too easy to publish to but maven and bintray unfortunately take the difficulty to a whole new level.

danfickle avatar Mar 28 '16 09:03 danfickle

The commands to prepare a release and then cunduct a deployment are below for reference:

mvn -DdryRun=false -Dusername=ghusername -Dpassword=ghpassword -DautoVersionSubmodules=true release:prepare

mvn -DdryRun=false -Dusername=ghusername -Dpassword=ghpassword release:perform

danfickle avatar Mar 28 '16 09:03 danfickle

OK, jars are now in jcenter and the sonatype releases staging repository. The next step is for sonatype to sync them with maven central repository. Nearly there.

The version which should soon appear in maven central is 0.0.1-RC2.

danfickle avatar Mar 30 '16 11:03 danfickle

We are in maven!

danfickle avatar Mar 31 '16 16:03 danfickle

@scoldwell @aleksandr-m The latest maven version is 0.0.1-RC3

danfickle avatar Jun 19 '16 23:06 danfickle

@scoldwell - As promised, 0.0.1-RC4 should soon appear in maven central.

danfickle avatar Jun 27 '16 14:06 danfickle

@danfickle thanks so much. We will be testing this today

scoldwell avatar Jun 27 '16 15:06 scoldwell

@danfickle New version of Struts2 PDF Stream Plugin is released, which uses openhtmltopdf 0.0.1-RC4. Thank you for your work. Looking forward to see more releases of openhtmltopdf.

aleksandr-m avatar Jul 08 '16 17:07 aleksandr-m

OK, 0.0.1-RC5 was just synced to maven central. It could take a few hours before it appears.

danfickle avatar Sep 28 '16 03:09 danfickle

0.0.1-RC7 was just synced to maven central. RC6 was skipped because of problems with the maven release plugin working with git. PLEASE NOTE: This is a SECURITY release. If you are allowing arbitrary XHTML from untrusted users, you may be at risk. Please see issue #44 for more details.

danfickle avatar Oct 30 '16 07:10 danfickle

@achuinard

0.0.1-RC8 was just synced to maven central. This is a small release, with just initial support for CSS3 transform property and max-width and max-height support for images.

danfickle avatar Nov 22 '16 11:11 danfickle

Another small release, RC9 is now on Maven Central. This mainly fixes issue #52 (Abode Reader prompts for saving on close).

danfickle avatar Feb 11 '17 04:02 danfickle

RC10 has been released to Maven. Added features are:

Most of the work for this release was by @rototor so huge thanks.

danfickle avatar Apr 03 '17 07:04 danfickle

RC11 has been released to Maven. Added features and fixes:

Big thanks again to @rototor

danfickle avatar May 21 '17 07:05 danfickle

RC-12 has been released. There is a fair bit going on in this release so please test before use. Change log in readme. Another thanks to PR contributors.

danfickle avatar Nov 26 '17 11:11 danfickle

RC-13 has been released. Big thanks to contributors! This is a big release (I'll try to do releases more often in the future) and the change-log sits below. Also remember to have your say on roadmap for version 1.

Note: Shaped links only work in Acrobat Reader. All other PDF reader seem to ignore them.

danfickle avatar Apr 05 '18 04:04 danfickle

RC-14 was just released with the latest version of PDF-BOX. Release notes below:

0.0.1-RC14

  • IMPORTANT: This release was brought forward so that we link against PDFBOX-2.0.11 as previous versions had a security vulnerability when parsing arbitary PDF files. While I believe this should not impact this project directly, having an insecure library on your classpath may be dangerous if you use it for other tasks. #241 #239 Thanks @rototor, @cseblog
  • NOTE: This release incorportate a new faster renderer (especially for large documents) that is in alpha state. Specifically, it can be used with everything except inline-blocks. You can start testing it now with builder.useFastMode() #180 Thanks @rajaningle @javimartinez @dilworks @rototor
  • Image with CSS max-width and max-height incorrectly scaled #242 Thanks @koan00
  • Bold and italic emulation #240 Thanks @syjer @backslash47
  • Work on correctly outputting multiple HTML files to one PDF #222 Thanks @rototor
  • ONGOING: Attempt at fixing font file handle leak #215 Thanks @rototor
  • Don't throw NPE when no base URI is provided #206
  • Fix link annotation placement in margin or generated boxes Thanks @jesselong, @Kuhlware, @markhowardnz

danfickle avatar Jul 07 '18 11:07 danfickle

RC15 was just released to maven central:

0.0.1-RC15

  • NOTE: Started moving project documentation to wiki.
  • #228 Support for letter-spacing CSS property. By @danfickle
  • #143 Merging of remaining items thanks to @backslash47
    • Support for box-sizing:border-box. With additional work (for min/max width/height) by @danfickle
    • Text justification for embedded unicode fonts
    • #250 Optional PDF/A conformance. Thanks @syjer
  • #252 Incorrect placement of form controls. Thanks @tiredelk
  • #249 Cache font metrics across runs to avoid having to load fallback fonts on each run. By @danfickle
  • #254 Allow use of SVG image in image tag. Thanks @syjer

danfickle avatar Aug 06 '18 05:08 danfickle

RC16 was just released to Maven Central:

0.0.1-RC16

  • #279 #264 IMPORTANT: This release was brought forward so that we link against PDFBOX-2.0.12 as previous versions had another DOS security vulnerability when parsing arbitary PDF files. Also there was a security issue in the old version of JSoup used by the optional jsoup-dom-converter module. While I believe these vulnerabilities should not impact this project directly, having an insecure library on your classpath may be dangerous if you use it for other tasks. Thanks @rototor, @dheid
  • #279 Support for testing and running on JDK-11. Extensive work by @rototor. Thanks.
  • #278 Support for additional PDF/A conformance levels. Thanks @TheUnnamedDude
  • 87dc1a9 Fixed nasty bug where positioned elements (absolute, fixed) were being printed twice. By @danfickle
  • #271 Support right-to-left list items. Thanks @ieugen for work, @sandre1 for reporting.
  • Much more work on the fast renderer. But not ready for prime time yet!

danfickle avatar Oct 08 '18 04:10 danfickle

We’re also thinking of moving to a java 8 requirement. If you object, please make your case in the java 8 issue. Thanks.

danfickle avatar Oct 08 '18 06:10 danfickle

RC17 released due to security issue with Apache Batik:

0.0.1-RC17

  • #284 #288 IMPORTANT: This release was brought forward due to a CVE in Apache Batik used by the optional SVG module. While this project strongly advises not to use untrusted XML either in SVG or XHTML, you may be using Batik in another part of your project and therefore it is a good idea to update. Thanks a lot @ghenadiibatalski, @chubbard
  • #286 #281 Fix for text decorations/background incorrect coverage in justified text. Thanks @koritakoa, @allartammik
  • #280 This will be the last release compatible with Java 7, from now on Java 8 or above will be required. Thanks for everyone's thoughts on this.

danfickle avatar Oct 18 '18 04:10 danfickle

RC18 finally released with fast renderer!

0.0.1-RC18 (2019-March-10)

  • Please start using the fast renderer (builder.useFastMode()) as the old renderer will be removed in a future version.
  • #180 Fast renderer is finally ready for production. The fast renderer comes with:
    • Nearly 150 automated end-to-end regression tests. This is about 150 more than the old renderer.
    • Improved performance. This renderer scales linearly with the number of pages, compared to the old renderer which scaled with the page count squared.
    • Far better support for transforms, including nested transforms, multiple transforms and transforms interacting with hidden overflow, etc.
    • Better support for hidden overflow, with boxes now not escaping except with accordance to the standard.
    • Support for inserted cut off overflow pages. See Cut-off page support on the wiki.
    • Link areas and their hash link targets now repect transforms.
    • Bookmark targets now respect transforms.
    • Improved page placement for boxes. Now respects overflow and tranform properties.
    • Greater understanding which should make fixes and feature improvements easier.
  • Visual testing API is now available to use in the PDFBOX module. Please see testing your PDF on the wiki.
  • #333 Upgraded PDFBox to 2.0.14 and PDFBox-Graphics2D to 0.21.
  • #315, #79 Accessible and tagged PDF support. See PDF Accessibility (PDF UA, WCAG, Section 508) Support on the wiki.
  • #326 Proper support for PDF/A standards with automatic regression testing. See PDF/A Standards Compliance on the wiki.
  • #328 SVG with page rule was crashing in certain circumstances.
  • #324 Better logging with invalid or missing fonts.
  • #320 NPE prevention in case of incorrect font configuration.
  • a145329 Were using incorrect font-metrics in certain situations.
  • #303 Fixed: Table borders are partly transparent.
  • #297 Fixed: Border not printed with "overflow: hidden".
  • #304 Fix warnings for icon font without space inside PDF/A, add tests.
  • #301 Make loading resources from classpath work when openhtmltopdf is a named module.
  • #232 Were using JRE internal APIs.
  • #289 System.out.println("Getting image") in NaiveUserAgent.

Thanks to these people for pull-requests:

  • @rototor
  • @brundipub
  • @zimmi
  • @dnguyenminh

Finally, a big thanks to all issue reporters and extra thanks to those who help out in issues.

danfickle avatar Mar 10 '19 06:03 danfickle

RC19 was just released. This release was brought forward to deal with #336.

0.0.1-RC19 (2019-March-18)

  • #336 Fix for broken image links causing an NPE. Thanks @svenfrauen.
  • #334 Allow the user to supply PDPage objects via page supplier. Thanks @DSW-PS.

danfickle avatar Mar 18 '19 10:03 danfickle

RC20 released!

0.0.1-RC20 (2019-April-26)

IMPORTANT: This release was brought forward due to a CVE in PDFBOX. While not directly affecting this project (it affects parsing of untrusted PDFs), it is better not to have a vulnerable library on your classpath.

  • #349 Upgrade PDF-BOX to 2.0.15 to avoid CVE in 2.0.14. Thanks @BryceMehring.
  • #347 Add document language and title preference for PDF/A documents to satisfy Acrobat Pro validator. Thanks @mattstjean.
  • #339 Mark Jsoup DOM converter module as deprecated (for removal). Please see integration guide for replacement. This module may also pull in an insecure version of Guava so please migrate now.

danfickle avatar Apr 26 '19 03:04 danfickle

RC21 has arrived:

0.0.1-RC21 (2019-June-29)

  • #361 The SVG renderer now uses Batik in a more secure mode (no scripts, no external resource requests) by default. If you need the old behavior that allowed external resource requests and possibly scripts, please see the new BatikSVGDrawer constructor (only for trusted SVGs). Thanks @krabbenpuler.
  • #363 Upgrade PDFBOX to 2.0.16. Thanks @rototor.
  • #353 Better error handling around SVGs linked from img tag. Thanks @ieugen.
  • #342 Fixed text-justification/letter-spacing when fallback fonts are in use. Thanks @daliuss.
  • #351 Improved text-justification by removing spaces at ends of lines. Thanks @halcsi.

Also documented Latex support on Wiki.

danfickle avatar Jun 29 '19 06:06 danfickle

Finally, by special request (#367), I've just released version 1.0.0 to maven central. It should be noted that the 1.0.0 version moniker is suitable for the PDF output side which is what most users are using. The much lesser used Java2D output still needs some work to get to 1.0.0 standard.

Notes

  • Please test the size of your images (including svg) as the sizing code has changed significantly with much better standards support including min/max and box-sizing: border-box.
  • Documented the JFreeChart plugin on the wiki.

1.0.0 (2019-July-23)

  • #372 Much improved sizing support for img, svg and math elements.
  • #344 Use PDFs in img tag: <img src="some.pdf" page="1" alt="Some alt text" />.

danfickle avatar Jul 23 '19 06:07 danfickle

Since we do have version 1, we could have that pushed to master ? It is a good practice to have master track latest stable. A nice workflow is described here https://nvie.com/posts/a-successful-git-branching-model/ . It is very well suited for collaboration. We use it successfully in our internal project.

ieugen avatar Jul 23 '19 06:07 ieugen

Hi all, I just released 1.0.1. Big thanks to @syjer for fixing many longstanding issues.

1.0.1 (2019-November-18)

  • #413 Handle form problems such as no name on input element without throwing a NPE. Thanks @syjer for PR and @mmatecki for reporting.
  • #412 Add HTML block level elements usch as section to default CSS. Thanks @syjer.
  • #339 Remove the JSoup to DOM converter module. Thanks @kewilson.
  • 0cd098 Fix for letter-spacing support on last line of block with trailing space. Also performance improvements and refactoring. By @danfickle.
  • #410 Fix for wrong bold setting on list item counters. Thanks @syjer for PR fix (and test!) and @acieplinski for reporting.
  • Wiki Configurable text justification settings as part of a justification overhaul that also allows more space to be used inter-char when there are no spaces on the line. By @danfickle. Commits listed in #403.
  • #403 Soft hyphen support. Soft hyphens are now replaced with hard hyphens when used as line ending character. Thanks @sbrunecker.
  • #408 Fix for bookmarks not working with HTML5 parsers such as JSoup. Thanks @syjer for investigating and fixing and @Milchreis for reporting.
  • #404 Upgrade Batik to 1.12 and xmlgraphics-common to 2.4 (both used in SVG module) to avoid CVE in one or both. Thanks @avoiculet.
  • #396 Much faster rendering of boxes using border-radius properties. Thanks @mndzielski.
  • #400 Support for lang and title attrbiutes and abbr tag for accessible PDFs. Thanks @Ignaciort91.
  • #394, #395 Upgrade PDFBOX to 2.0.17 and pdfbox-graphics2d to 0.25. Thanks @cristan, @rototor.
  • #384 Allow user to provide PDFont supplier. Thanks @DSW-PS.
  • #373 Fix regression where both max-width and max-height are provided for images with certain aspect ratios. Thanks @rototor.
  • #380 Much better support for flowing columns including explicit column breaks, floating content, block level nested content. By @danfickle.

danfickle avatar Nov 18 '19 04:11 danfickle

Hi everyone, just released 1.0.2. Enjoy.

1.0.2 (2020-February-25)

  • SECURITY Removed Log4J 1.x adaptor module as it had CVE-2019-17571 with no updated version available.
  • #448 Implement linear-gradient support for background-image property. By @danfickle. Requested by @rja907.
  • #429 Major overhaul of word-wrap: break-word. Now a word will not be broken unless it is too big for a line by itself. By @danfickle. Thanks for reporting and testing @mndzielski.
  • #433 Do not justify lines ending with <br/> tag. Thanks for reporting @fcorneli.
  • #440 Remove trailing white space for right aligned text to avoid jagged appearance. Thanks for reporting @AnanasPizza.
  • #446 Look for lang attribute on ancestor elements when using lang() selector. Thanks for reporting and tracking down the bug @fungc.
  • #430 Use relative path to license in source jars instead of absolute path. Thanks for reporting @gabro and fixing via PR @syjer.
  • #417 Keep aspect ratio of images with width/height properties as well as min/max width/height properties. Thanks for reporting and basis for fix @swarl.
  • #423 Allow multiple font sources to be specified with format tags. Only use format(truetype). Thanks for requesting @MichaelZaleskovsky and basis for implementation @syjer.
  • #415 Avoid class cast exception if user tries to float table cell. Thanks for reporting @dmartineau99 and PR @syjer.
  • #421 Avoid NPE when justified text is mixed with unjustifiable content. Thanks for reporting @Megingjard and PR @syjer.
  • Updated PDFBOX 2.0.17 to 2.0.19.

danfickle avatar Feb 25 '20 07:02 danfickle