-
Notifications
You must be signed in to change notification settings - Fork 500
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
/ViewerPreferences [/FitWindow] #303
Comments
Can you explain what it should be? I believe I set it this way because it's the only thing that made evince work correctly. Of course, I'll try it with the way you propose to verify that evince responds to a dictionary as well. |
Probably like this:
|
Thanks for the clarification. I learned a few things here. First, that I'm also going to enable the |
resolves #303 use map for ViewerPreferences; set initial magnification
How does the solution in #304 look to you, @THausherr? |
I would have to see a PDF generated with your software. I am not a user of your software, I just got in trouble with a software generated with your product. Either point me to an URL where it is (maybe in the repository), or e-mail it to me here: tilman at snafu dot de. |
Oops! I forgot to regenerate the example PDF files. Once I do that, you can pull it directly out of the repo. Stay tuned. |
@THausherr I have made the example PDFs available in the following directory: https://github.com/asciidoctor/asciidoctor-pdf/tree/master/examples Here's how the header is now written:
|
2 files were updated, but these 2 don't have any ViewerPreferences?! |
It's there, but these files have compression applied so the settings are in
a compressed stream. Do they open okay?
|
I answered several days ago, and my comment is gone?! this is the basic-example.pdf file:
no /OpenAction, no /ViewerPreferences. |
😟 That's troubling. Are you sure it posted? The last notification I received was the comment from Aug 13 (5 days ago), so perhaps the browser didn't submit it successfully (or the other end didn't receive). I'll go ahead and link to an uncompressed version of the file so that you can see the output exactly as it is generated.
Note that it was generated from the master branch, not from a release. |
The new file is fine, both internally and does have the expected effects when opening with Adobe Reader. The file from 6 days ago doesn't. |
\o/ |
Thanks for testing! |
I found this in a PDF created with your software:
Viewer preferences dictionary is a dictionary, not an array. Such wrong PDFs can result in problems with PDF software, as shown here:
https://issues.apache.org/jira/browse/PDFBOX-2924
The text was updated successfully, but these errors were encountered: