Skip to content
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

pdfbox 3 #941

Open
wants to merge 5 commits into
base: pdfbox_3
Choose a base branch
from
Open

pdfbox 3 #941

wants to merge 5 commits into from

Conversation

hughsimpson
Copy link

With the 3.0.0 release of pdf box, current openhtmltopdf releases are incompatible. Adding some final compatibility tweaks.

@hughsimpson hughsimpson mentioned this pull request Sep 1, 2023
pdFormXObject = layerUtility
.importPageAsForm(document, pdfpage - 1);
}
File file = new File(new URL(url).toURI());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there are things this might break.. the input stream api has gone, and the alternative is to read the full byte array, which seems too heavy... OTOH maybe new URL(url).openStream() does some lookup resolution that's invalid for new File(new URL(url).toURI())? I don't really know this part of the java API too well, so any 👀 would be appreciated

@enstulen
Copy link

Awesome! @danfickle Since 3 is officially released, will this be updated as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants