IPXC_Pages::AddEmptyPages Method

From PDF XChange PDF SDK
Revision as of 03:33, 15 June 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Adds new empty pages to the core document.


HRESULT AddEmptyPages([in]                       ULONG                nBefore,
                      [in]                       ULONG                nCount,
                      [in]                       PXC_Rect*            stMediaBox,
                      [in, defaultvalue(NULL)]   IProgressMon*        pProgress,
                      [out, defaultvalue(NULL)]  IPXC_UndoRedoData**  pUndoData);


[in] Select page before which the new pages will be inserted. Note that entering value which exceeds or is equal to the pages count in the core document will insert new pages after the last page. Entering a value of zero (0) will place the empty pages before the first page in the document.
[in] Number of empty pages that will be inserted.
[in] Pointer to PXC_Rect containing the new pages media box's dimensions.
[in, defaultvalue(NULL)] Pointer to IProgressMon containing the progress monitor. Note that the IPXV_Inst::ProgressMon property should be used to get the progress monitor from the instance.
[out, defaultvalue(NULL)] Pointer to IPXC_UndoRedoData containing the filled Undo/Redo data if any was given to be filled.

Return Value

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

See Also