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