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: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
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