IPXC_Pages::InsertPage Method

From PDF XChange PDF SDK
Revision as of 07:09, 12 June 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

Jump to: navigation, search

Inserts new empty page to the core document.

Syntax

HRESULT InsertPage([in]                       ULONG                Before,
                   [in]                       PXC_Rect*            mediaBox,
                   [out, defaultvalue(NULL)]  IPXC_UndoRedoData**  UndoData,
                   [out, retval]              IPXC_Page**          NewPage);

Parameters

Before
[in] Select page before which the new page will be inserted. Note that entering value that exceeds or is equal to the pages count in the core document will insert new page after the last page. Entering a value of zero (0) will place the empty page before the first page in the document.
mediaBox
[in] Pointer to PXC_Rect containing the dimensions of the new page's media box.
UndoData
[out, defaultvalue(NULL)] Pointer to IPXC_UndoRedoData containing the filled Undo/Redo data if any was given to be filled.
NewPage
[out, retval] Pointer to IPXC_Page containing the newly created page.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_Pages