IPXC_Pages::InsertPagesFromDoc Method

From PDF XChange PDF SDK
Jump to: navigation, search

Adds pages to the current core document from the source core document.


HRESULT InsertPagesFromDoc([in]                      IPXC_Document*  pSrcDoc,
                           [in]                      ULONG           nInsertBefore,
                           [in]                      ULONG           nStartPage,
                           [in]                      ULONG           nNumPages,
                           [in]                      ULONG           nInsertPagesFlags,
                           [in, defaultvalue(NULL)]  IProgressMon*   pProgress);


[in] Pointer to IPXC_Document containing the source document.
[in] Select page before which the pages will be inserted. Note that entering value that exceeds or is equal to the pages count in the core document will insert pages after the last page. Entering a value of zero (0) will place the empty pages before the first page in the document.
[in] Zero-based start page of the page array from the source core document.
[in] Number of pages from source core document that will be inserted.
[in] Insert page flags that set the type of the data that will be copied with pages from the source core document.
[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.

Return Value

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

See Also