-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade PDFBox and PdfBoxGraphics2D version. Also fix JDK 11 build #279
Upgrade PDFBox and PdfBoxGraphics2D version. Also fix JDK 11 build #279
Conversation
Thats strange... The tests pass when running them in IDEA, but they fail when running with maven ... |
…emoved with JDK 11.
…JDK 10 on, and does no longer accept all kind of "rubish".
…least the javadoc maven plugin now runs successful. Also deleted the obsolete package.html from the simple package.
This pull request got a little bit bigger now than thought ... I've fixed the javadoc for JDK 11 and now |
Thanks hugely mate! I was dreading the jdk11 stuff. I’ve got the flu, but I’ll try to merge this and do a release in the next twelve hours as this is a security release of pdfbox. The release of pdfbox also incorporates a fix for font files being left unclosed if not used so I can remove our workaround code in the pdf font resolver. Thanks again and feel free to add any commits in the next few hours while I try to sleep. |
No hurry from my side, the CVE in PDFBox is about reading special crafted PDF files, which can burn many CPU cycles and theirfor DOS a system. As this project is mostly about writing PDFs we are not directly affected But this project should benefit from the LosslessFactory improvments I contributed to PDFBox. The image compression got better. (See https://issues.apache.org/jira/browse/PDFBOX-4184) Get well soon! |
Thanks. I’m impressed with your willingness to get dirty with the details of image compression. If you want to do the same for jpeg, I notice that in P.s: Found some code here: |
NOTE to self: |
Not sure if it's more robust but java.util has a Base64 class (since JDK1.8) |
@Jugen If we just upper the required java version of this project to JDK 1.8 than we can just use java.util.Base64 and drop the JAXB dependency. I'm at least on JDK 1.8 with all my project for some years now, and on JDK 10 with my main project (I can't get on JDK 11 yet, as guice/cglib is not yet there; Those low level libraries always need an ASM upgrade...). I would be fine with a JDK 1.8 requirement. But this is on @danfickle to decide. @danfickle I'm in the process of migrating my main project from iText to PDFBox. For that I need feature parity, at least for the features I need. And writing images with color profiles into a PDF is just something I need for my main project. |
Lambdas sure are tempting... I’ll start asking if anyone is still on 7. |
Ok, I’ve asked the java 8 question. |
…kip] We now require at least Java 8.
No description provided.