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

Fix writing explicit XYZ coordinates #722

Merged
merged 1 commit into from
Oct 28, 2023
Merged

Conversation

yufeih
Copy link
Contributor

@yufeih yufeih commented Oct 28, 2023

The /XYZ destination needs a zoom value for PDF readers to parse correctly. This PR fixes destination linking problem by adding a NULL zoom value.

Per PDF spec:

[page /XYZ left top zoom] Display the page designated by page, with the coordinates (left, top) positioned at the top-left corner of the window and the contents of the page magnified by the factor zoom. A null value for any of the parameters left, top, or
zoom specifies that the current value of that parameter is to be retained unchanged. A zoom value of 0 has the same meaning as a null value.

#9352

@BobLd BobLd merged commit 17d50f0 into UglyToad:master Oct 28, 2023
1 check passed
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