Справочник Пользователя для Adobe acrobat 7.0.5 sdk
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 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
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:
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
Acrobat
JavaScript doc
object method
JavaScript doc
object method
Core API method
IAC method
●
Windows
●
Apple Script
Create an empty page in the
current document
current document
newPage
PDDocCreatePage
●
Not available
●
Not available
Insert pages from another
document into the current
document
document into the current
document
insertPages
PDDocInsertPages
●
InsertPages
●
insert pages
Move a page to another
location in the same
document
location in the same
document
movePage
PDDocMovePage
●
MovePage
●
Not available
Replace pages with pages
from another document
from another document
replacePages
PDDocReplacePages
●
ReplacePages
●
replace pages
Delete pages from the
current document
current document
deletePages
PDDocDeletePages
●
DeletePages
●
delete pages