Click or drag to resize

PDFMergeInsertPDFBytes(Int32, Byte, Int32, Int32) Method

Inserts at most length pages from the specified source document, given as an array of bytes, starting from zero based index startIndex in the source document, at the specified position in the merged document.

Namespace: ExpertPdf.Anywhere.MergePdf
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public void InsertPDFBytes(
	int insertIndex,
	byte[] pdfBytes,
	int startIndex,
	int length
)

Parameters

insertIndex  Int32
The zero based position of the first inserted page in the merged document: 0 inserts before the first page, GetCurrentPageCount inserts at the end.
pdfBytes  Byte
The PDF document to be inserted
startIndex  Int32
The zero based index of the page from the source document from where to start taking pages
length  Int32
The number of pages to be taken from the source document. If the length is negative e.g -1, all the PDF pages available from startIndex are inserted.
See Also