Click or drag to resize

PdfMergerAppend(String, PdfLoadOptions, Int32, Int32) Method

Appends the specified pages from a PDF document loaded from a file with the specified path and with the specified options.

Namespace: SautinSoft.Pdf.Facades
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.11.10
Syntax
public PdfMerger Append(
	string path,
	PdfLoadOptions options,
	int startPage,
	int pageCount
)

Parameters

path  String
The path to a file from which to load a PDF document.
options  PdfLoadOptions
The options used for loading a PdfDocument from a PDF file.
startPage  Int32
The zero-based start page index.
pageCount  Int32
Page count to append.

Return Value

PdfMerger
A reference to this PdfMerger instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null or options is null.
InvalidPdfPasswordExceptionPDF file is encrypted and the Password is invalid.
ArgumentOutOfRangeExceptionstartPage or pageCount is less than 0.
See Also