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

Set "Page only" as default initial view in PDF viewer #390

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

andreasrosdal
Copy link
Contributor

@andreasrosdal andreasrosdal commented Sep 19, 2024

Problem:
There has been bugreports that the default initial view of the PDF when viewed in Acrobat Reader has been changed from "Page only" to "Bookmarks Panel and Page", when creating PDF files using Flyingsaucer.
This begun when we upgraded to FS 9.8.0 and OpenPDF 2.0.2.

Solution:
Set "Page only" as default initial view in PDF viewer. In ITextOutputDevice.writeOutline() remove call to setViewerPreferences, in order to not modify viewer preferences.

This solved this problem for our usage of FS/OpenPDF to create PDF invoices.

…es, in order to not modify viewer preferences.
@asolntsev asolntsev added this to the 9.9.4 milestone Sep 19, 2024
@asolntsev asolntsev merged commit dea0e49 into flyingsaucerproject:main Sep 19, 2024
4 checks passed
@andreasrosdal
Copy link
Contributor Author

May we please have a new release of FS with this fix included? The users who reported this would be so happy. Thank you! @asolntsev

@asolntsev
Copy link
Contributor

Yes, tomorrow.
Today I am already drunk. :)

@asolntsev
Copy link
Contributor

@andreasrosdal FS 9.9.4 released: https://github.com/flyingsaucerproject/flyingsaucer/releases/tag/v9.9.4

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.

2 participants