DocumentCreate |
Create a new PDF document and an associated FDF.
Documents with created with this method are writable and can be modified. When creating a document with this method, all MarkupAnnotations - created or copied - are stored as an FDF file to the fdfStream. In the output PDF (pdfStream), only annotations that are not MarkupAnnotations are stored.public static Document CreateWithFdf( Stream pdfStream, Stream fdfStream, Conformance? conformance, Encryption encryption )
The stream where the PDF document is stored.
Both, read and write access is required. The resulting PDF document contains no MarkupAnnotations.
The stream where the document's MarkupAnnotations are stored in the FDF format.
Both, read and write access is required.
The required conformance level of the PDF document. Adding pages or content from incompatible documents or using incompatible features will lead to a conformance error.
When using , the conformance is determined automatically, based on the conformance of the input documents and the requirements of the used features.
Note that for PDF/A document it is highly recommended to set an output intent using OutputIntent.
Exception | Condition |
---|---|
IOException | Error writing to the pdfStream |
ConformanceException | If the conformance level is lower than 1.7 and Unicode passwords are specified. In this context "a Unicode password" is essentially one containing characters that are not in the Windows ANSI encoding (Windows Code Page 1252). |
ArgumentNullException | if pdfStream is . |
ArgumentNullException | if fdfStream is . |