PdfMergeAddPdfPages(String, Int32, Int32, String) Method

Adds a range of pages of a PDF from a file

Definition

Namespace: EvoPdf.Next
Assembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
C#
public int AddPdfPages(
	string filePath,
	int firstPage,
	int lastPage,
	string password = null
)

Parameters

filePath  String
Path to the PDF file
firstPage  Int32
The 1-based number of the first page to add
lastPage  Int32
The 1-based number of the last page to add
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