Click or drag to resize

PdfMergerAppend(Stream, PdfLoadOptions, Int32, Int32) Method

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

Namespace: SautinSoft.Pdf.Facades
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public PdfMerger Append(
	Stream stream,
	PdfLoadOptions options,
	int startPage,
	int pageCount
)

Parameters

stream  Stream
The stream 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
ArgumentNullExceptionstream is null or options is null.
ArgumentExceptionstream is not readable.
InvalidPdfPasswordExceptionPDF file is encrypted and the Password is invalid.
ArgumentOutOfRangeExceptionstartPage or pageCount is less than 0.
See Also