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.FacadesAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntaxpublic PdfMerger Append(
Stream stream,
PdfLoadOptions options,
int startPage,
int pageCount
)
Public Function Append (
stream As Stream,
options As PdfLoadOptions,
startPage As Integer,
pageCount As Integer
) As PdfMerger
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
PdfMergerA reference to this
PdfMerger instance.
ExceptionsException | Condition |
---|
ArgumentNullException | stream is null or options is null. |
ArgumentException | stream is not readable. |
InvalidPdfPasswordException | PDF file is encrypted and the Password is invalid. |
ArgumentOutOfRangeException | startPage or pageCount is less than 0. |
See Also