Acrobat SDK User’s Guide
51
Working with PDF Documents
Manipulating Pages of a PDF File
5
Using Actions for Special Effects
Thumbnails, bookmarks, links, and other objects have actions associated with them, and
you may use Acrobat JavaScript to customize their behavior. For example, you can use
them to display messages, jump to destinations in the same document or any other, open
attachments, open Web pages, execute menu commands, or perform a variety of other
tasks.
You can also customize these actions so that they change their appearance after the user
has clicked on them. For a button, you can invoke its
highlight
property, which allows
you to specify how the button will appear once it has been clicked.
M a n i p u l at i n g Pa g e s o f a P D F Fi l e
You can use the Acrobat SDK to insert or remove pages from a PDF document. The
following table shows the methods to use for each Acrobat SDK technology:
N
O T E
:
You can also access Acrobat JavaScript functionality using the
JSObject
from an
external application. See
“Accessing the JSObject Interface” on page 27
.
Acrobat
JavaScript doc
object method
Core API method
IAC method
●
Windows
●
Apple Script
Create an empty page in the
current document
newPage
PDDocCreatePage
●
Not available
●
Not available
Insert pages from another
document into the current
document
insertPages
PDDocInsertPages
●
InsertPages
●
insert pages
Move a page to another
location in the same
document
movePage
PDDocMovePage
●
MovePage
●
Not available
Replace pages with pages
from another document
replacePages
PDDocReplacePages
●
ReplacePages
●
replace pages
Delete pages from the
current document
deletePages
PDDocDeletePages
●
DeletePages
●
delete pages
Summary of Contents for Acrobat 7.0.5
Page 10: ...Contents 10 Acrobat SDK User s Guide ...
Page 66: ...Modifying the User Interface Customizing Acrobat Help 6 66 Acrobat SDK User s Guide ...
Page 78: ...XML and the Acrobat SDK Managing XML based Information 8 78 Acrobat SDK User s Guide ...
Page 100: ...Providing Document Security Document Rights 11 100 Acrobat SDK User s Guide ...
Page 106: ...Working with Metadata Object Data 12 106 Acrobat SDK User s Guide ...
Page 110: ...Searching and Indexing Indexing PDF Documents 13 110 Acrobat SDK User s Guide ...
Page 118: ...Working With PDF Layers Working with Layers from a Plug in 15 118 Acrobat SDK User s Guide ...