PdfMergeAddPdfPages(Byte, String, String) Method

Adds the pages of a PDF from a memory buffer selected by page ranges, in the order of the ranges

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
C#
public int AddPdfPages(
	byte[] pdfBuffer,
	string pageRanges,
	string password = null
)

Parameters

pdfBuffer  Byte
Byte array containing the PDF data
pageRanges  String
The 1-based page ranges to add, for example "1-3,5,8-". A range without an end runs to the last page
password  String  (Optional)
Password if the PDF is password protected, null otherwise

Return Value

Int32
The 1-based number of the first added page in the merged document

See Also