Download PDF Xtra User Manual - Integration New Media
Transcript
#toolbar: Integer (boolean). TRUE/FALSE — Show Toolbar #scrollbars: Integer (boolean). TRUE/FALSE — Show Scrollbars #scrollH: Integer. Number of horizontal pixels to scroll document #scrollV: Integer. Number of vertical pixels to scroll document Note: If not all options are listed in the Options list (third parameter), the missing ones are inherited from the PDF Member's Options dialog box. Thus, if the #pathType is not specified to PDF_Open(), the PDF Xtra Member Options dialog's path type is used. In that case, you must make sure to provide PDF_Open() with a pathname that agrees with the path type chosen in the dialog box (if one is relative, the other must be relative too). Examples -- open document from absolute path, using the moviepath PDF_Open(sprite 15, the moviepath & "MyDocs/MyDoc.pdf", [#pathType: #URLOrAbsolute]) -- open document from absolute path, using applicationPath PDF_Open(sprite 15, the applicationPath & "../../MyDocs/MyOtherDoc.pdf", [#pathType: #URLOrAbsolute]) -- open document using the full path PDF_Open(sprite 15, "D/MyProject/Data/MyDoc.pdf", [#pathType: #URLOrAbsolute]) -- open document using a URL PDF_Open(sprite 15, "http://www.PDFXtra.com/MyDoc.pdf", [#pathType: #URLOrAbsolute]) -- open document using a relative path; display bookmarks PDF_Open(sprite 15, "MyDoc.pdf", [#displayMode:bookmarkAndPages, #pathType: #RelativeToMovie]) -- open document using a relative path; -- with various custom display options set (Reader) PDF_Open(sprite 15, "MyDocs/MyDoc.pdf", [#displayoption: #customdisplayoptions, #page:4, #zoom: #fitWidth, #pathType: #RelativeToMovie]) -- assumes the path type is set to relative in the sprite -- properties; uses the custom display options in effect PDF_Open(sprite 15, "MyDocs/MyDoc.pdf", [#displayoption: #customdisplayoptions]) Platforms See also All except Mac OS X. (on Mac OS X the document displays in a separate window, with its default settings) PDF_Close, PDF_ScrollTo, PDF_ZoomTo PDF Xtra for Director® Version 8.0 48