Document |
public void Append( Document inDoc, int? firstPage = null, int? lastPage = null, DocumentCopyOptions documentCopyOptions = null, PageCopyOptions pageCopyOptions = null )
Optional parameter denoting the index of the first page to be copied. This index is one-based. If set, the number must be in the range of 1 (first page) to PageCount (last page).
If not set, 1 is used.
Optional parameter denoting the index of the last page to be copied. This index is one-based. If set, the number must be in the range of 1 (first page) to PageCount (last page).
If not set, PageCount is used.
Exception | Condition |
---|---|
LicenseException | The license check has failed. |
ArgumentException | The firstPage or lastPage are not in the allowed range. |
ArgumentException | If the method has already been called with any of the following properties set to : |
ConformanceException | The conformance level of the input document is not compatible with the conformance level of the output document. |
ConformanceException | The explicitly requested conformance level is PDF/A Level A ([!:PdfTools.Pdf.Conformance.PdfA1A], [!:PdfTools.Pdf.Conformance.PdfA2A], or [!:PdfTools.Pdf.Conformance.PdfA3A]) and the copy option CopyLogicalStructure is set to . |
InvalidOperationException | If Assemble has already been called. |
ProcessingException | The processing has failed. |
ArgumentNullException | if inDoc is . |