-
Notifications
You must be signed in to change notification settings - Fork 272
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
Can we add support for password support pdfs? #303
Comments
@niksw7, the library provides a very thin wrapper for the OpenHtmlToPDF library, so if what you need is possible with OpenHtmlToPDF then it should be very easy to add. The whole extension is 50 lines. PdfConverterExtension.java |
@vsch yes it's possible in openhtmlToPdf. I have created a PR with the latter approach. Please review and let me know for any feedbacks. |
@niksw7, thank you very much for taking care of this. I will take a look at the code and provide feedback. |
@niksw7, I took a look at the code and the only thing that I would change is add an option to hold the PDF protection policy. That way it does not need to be passed separately and only needs to be setup once in options used for parsing/rendering and subsequently re-used for all pdf conversions using these options. The same way it is done for the default text direction. I will also add overloaded export functions passing null for protection policy so the API remains unbroken for existing code. Great job. I will make a release shortly. |
Fix for this is available. Repo updated, maven updated but may take a while to show up in maven central. |
Great! |
No description provided.
The text was updated successfully, but these errors were encountered: