| PageListCopy Method |
Copy a page list
Copy pages from an input document to the given
targetDocument.
The returned list is associated with the given target document but not yet part of it.
It can be appended to the document's page list.
Namespace: PdfTools.Toolbox.PdfAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax public static PageList Copy(
Document targetDocument,
PageList pageList,
PageCopyOptions options
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- pageList PageList
-
a page list of a different document
- options PageCopyOptions
-
the copy options
Return Value
PageList
the copied page list, associated with the target document.
Exceptions Exception | Condition |
---|
IOException | Error reading from the source document or writing to the target document |
CorruptException | The source document is corrupt |
ConformanceException | The conformance level of the source document is not compatible
with the conformance level of the target document. |
ConformanceException | The explicitly requested conformance level is PDF/A Level A
(PdfA1A, PdfA2A,
or PdfA3A)
and the copy option CopyLogicalStructure is not set. |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | if the pageList object is not associated with an input document |
ArgumentException | if the document associated with pageList has already been closed |
ArgumentException | if the argument options has FormFields set to Copy
and the targetDocument contains form fields that have either been copied explicitly
with Copy(Document, FieldNode) or created with Create(Document),
Create(Document), Create(Document, Int32),
Create(Document), Create(Document),
Create(Document), or Create(Document). |
ArgumentException | if the argument options has UnsignedSignatures set to Copy
and the targetDocument contains form fields that have either been copied explicitly
with Copy(Document, FieldNode) or created with Create(Document),
Create(Document), Create(Document, Int32),
Create(Document), Create(Document),
Create(Document), or Create(Document). |
ArgumentException | if options has CopyOutlineItems set to
and the targetDocument contains outline items that have been copied explicitly
with Copy(Document, OutlineItem, OutlineCopyOptions). |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if pageList is . |
See Also