Setting Bookmarks in Acrobat
Setting Bookmarks in Acrobat
- Subject: Setting Bookmarks in Acrobat
- From: "Vince Jelenic" <email@hidden>
- Date: Wed, 20 Dec 2000 16:33:14 -0500
having a small problem with acrobat.
I have a multi page doc, pdf format.
I want to script the bookmarks for this file.
thus the following excerpted from a script
telling PDBookmark i
set name to ("Page" & i as string)
set destination page number of it to i
get fit type of it -- reports "Fit Rect"
--> this is where the problem arises, neither fit type nor zoom factor
can be set ?????
set fit type of it to "Fit in Window"
set zoom factor to "Fit in Window" -- does not work
set zoom factor to 30 -- works fine but not what I want.
The dictionary from Acrobat 4.0 reads: It seems to clearly indicate that
one can set the fit type, but have I missed something?
I keep getting an error "did not get the fit type parameter".
any ideas?
Class PDBookmark: A bookmark (corresponds to Acrobats PDBookmark object)
Properties:
best type type class [r/o] -- The best descriptor type
class type class [r/o] -- The class
default type type class [r/o] -- The default descriptor type
destination page number integer -- The number of the page the view goes
to when the bookmark is performed.
destination rectangle a list of small real -- The boundary rectangle
for the view of the destination, in PDF space (left, top, right, bottom).
[Set this only after setting the fit type property]
fit type constant -- Controls how the destination rectangle is fitted
to the window when the bookmark is executed. Valid values are: Left Top
Zoom, Fit Page, Fit Width, Fit Height, Fit Rect, Fit BBox, Fit
BB Width, and Fit BB Height.
index integer [r/o] -- The bookmarks index within the Document.
name international text -- The bookmarks title
zoom factor small real -- If fit type is Left Top Zoom, then this
specifies the zoom factor, otherwise, this property is ignored. Setting
this property automatically sets the fit type to Left Top Zoom.
------ Vince Jelenic says:
"The only way to really ensure server security is to lock it in a sealed
room with the power off."