• No results found

Related methods DocPageDown

In document AcroPDF API Reference (Page 128-134)

DocPageLeft DocPageUp DocPageUp

DocPageUp

Scrolls backward through the document by one screen area.

Syntax

[DocPageUp(char* fullPath)]

Parameters

fullPath The full path of the document.

Returns

false if the document specified by fullPath does not exist, true otherwise.

Related methods

DocPageDown DocPageLeft DocPageRight DocScrollTo

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference DocPrint 129

DocPrint

Prints a specified range of pages from a document, without displaying any modal Print dialog box to the user. For PostScript printing, only Level 1 operators are used, only ASCII data is generated, and the document’s pages are not shrunk to fit into the imageable area of the printed page.

Syntax

[DocPrint(char* fullPath, long startPage, long endPage)]

Parameters

fullPath The full path of document.

startPage The page number of the first page to be printed.

endPage The page number of the last page to be printed.

Returns

false if the document specified by fullPath does not exist, true otherwise.

Related methods

FilePrint

FilePrintSilent FilePrintTo

DocReplacePages

Replaces pages in the target document using the specified pages from the source document.

Syntax

[DocReplacePages(char* fullPath, long startDestPage, char* sourcePath, long startSourcePage, long endSourcePage)]

Parameters

fullPath The full path of the target document. This file must already be open in the Acrobat application.

startDestPage The page number of the first page in the target document to be replaced.

sourcePath The full path of the source document. This file does not have to be already open in the Acrobat application.

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference DocSave 130

Returns

true if the pages are replaced successfully. Returns false if the document does not exist or the pages are not replaced successfully.

Related methods

DocDeletePages DocInsertPages

DocSave

Saves the specified file. The user is not warned if there are any problems saving the file.

Syntax

[DocSave(char* fullPath)]

Parameters

fullPath The full path of the file to be saved.

Returns

true if the document is saved successfully, false if the document does not exist or is not saved successfully.

Related methods

DocSaveAs

DocSaveAs

Saves an open file to a new path. The user is not warned if there are any problems saving the file.

Syntax

[DocSaveAs(char* fullPath, char* newPath)]

startSourcePage The page number of the first page in the source document to use as a replacement page.

endSourcePage The page number of the last page in the source document to use as a replacement page.

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference DocScrollTo 131

Parameters

fullPath The full path of the existing file.

newPath The full path of the new file.

Returns

true if the document is saved successfully, false if the document does not exist or is not saved successfully.

Related methods

DocSave

DocScrollTo

Scrolls the view of the current page to the specified location.

Syntax

[DocScrollTo(char* fullPath, int x, int y)]

Parameters

fullPath The full path of the document.

x The destination’s x–coordinate.

y The destination’s y–coordinate.

Returns

false if the document specified by fullPath does not exist, true otherwise.

Related methods

DocPageDown DocPageLeft DocPageRight DocPageUp

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference DocSetViewMode 132

DocSetViewMode

Determines whether bookmarks, thumbnail images, or neither are shown in addition to the document.

Syntax

[DocSetViewMode(char* fullPath, char* viewType)]

Parameters

fullPath The full path of the document.

viewType The view mode to be used. Must be one of the following:

PDUseThumbs — Displays pages and thumbnail images.

PDUseNone — Displays only pages.

PDUseBookmarks — Displays pages and bookmarks.

Returns

true if the view mode is set successfully, false if the document specified by fullPath does not exist or an unknown view mode is specified.

Related methods

FullMenus ShortMenus

DocZoomTo

Sets the zoom for a specified document.

Syntax

[DocZoomTo(char* fullPath, char* zoomType, int scale)]

Parameters

fullPath The full path of the file whose zoom to set.

zoomType The zoom strategy to use. Must be one of the following:

AVZoomNoVary — A fixed zoom, such as 100%.

AVZoomFitPage — Fits the page in the window.

AVZoomFitWidth — Fits the page’s width into the window.

AVZoomFitVisibleWidth — Fits the page’s visible content into the window.

scale The magnification specified as a percent (for example, 100 corresponds to a magnification of 1.0). scale is used only when zoomType is AVZoomNoVary.

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference FileOpen 133

Returns

false if the document specified by fullPath does not exist, or if zoomType has an unknown value. Returns true otherwise.

FileOpen

Opens and displays the specified document. If the file is already open, it becomes the active document and appears in the front. This DDE message does not add the document to the list that can be

manipulated using DDE messages; use DocOpen to do that.

FileOpen is also supported in Adobe Reader.

Syntax

[FileOpen(char* fullPath)]

Parameters

fullPath The full path of the file to be opened.

Returns

true if the file is opened successfully, false otherwise.

Related methods

CloseAllDocs DocClose DocOpen

FileOpenEx

Opens and displays a file. If the file is already open, it becomes the active document and appears in the front. This DDE message does not add the document to the list that can be manipulated using DDE messages; use DocOpen to do that.

This method allows documents that either take a long time to open or are password-protected to open without stopping the flow of DDE messages. Documents opened with FileOpenEx are opened during an idle period. This is useful in situations in which several DDE messages are sent at once, such as a multiple file select from Windows Explorer.

FileOpenEx is also supported in Adobe Reader.

Syntax

Adobe Acrobat SDK DDE Messages

Interapplication Communication API Reference FilePrint 134

Parameters

fullPath The full path of the file to be opened.

Returns

true is always returned. The specified file may not actually open.

Related methods

In document AcroPDF API Reference (Page 128-134)

Related documents