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

How to specify inheritZoom in FixAllBookmarks(PDDoc doc, PDBookmark b, int acc) #1

Open
MumblingFumbler opened this issue Oct 12, 2024 · 1 comment

Comments

@MumblingFumbler
Copy link

Hello, I'm using your Acrobat-Actions plugin. Thank you for the code.
I'm trying to figure out how to to make all of my bookmark actions inherit zoom.
In FixAllBookmarks(PDDoc doc, PDBookmark b, int acc),
you set targetFitType = ASAtomFromString("XYZ"), and zoomLevel = PDViewDestNULL
eg
PDViewDestCreate(doc,
page, /* := pageNum /
targetFitType, /
XYZ /
&destRect,
PDViewDestNULL, /
when FitType is XYZ /
0); /
unused */
Is this equivalent to setting the action zoom level to Inherit Zoom?

Thanks for your help,

@binghe
Copy link
Owner

binghe commented Oct 12, 2024

Hi,

Thanks for letting me know that my simple plugin has found users other than myself.

Yes, "XYZ" is the keyword for "inherit zoom", which is defined in PDF standard (I remember that I checked the standard or other books to actually know it. It's not from Acrobat SDK document.)

P. S. It's hard to find third-party Acrobat plugin source code on Internet (at least I didn't find anything when I'm writing this code). If you have ideas (or code) on new features, I hope you can contribute some.

Chun

Repository owner deleted a comment Oct 24, 2024
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

No branches or pull requests

2 participants