acrobat-actions icon indicating copy to clipboard operation
acrobat-actions copied to clipboard

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

Open MumblingFumbler opened this issue 1 year ago • 1 comments

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,

MumblingFumbler avatar Oct 12 '24 00:10 MumblingFumbler

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

binghe avatar Oct 12 '24 00:10 binghe