ConverterConvert Method |
Convert a document to PDF/A.
Note that it is highly recommended to use ConversionEvent to detect critical conversion events.public Document Convert( AnalysisResult analysis, Document document, Stream outStream, ConversionOptions options = null, OutputOptions outOptions = null )
Exception | Condition |
---|---|
LicenseException | The license check has failed. |
ArgumentException | The outOptions argument is invalid. |
ArgumentException | The output stream could not be opened for writing. |
InvalidOperationException | The document has already been closed. |
ArgumentException | The analysis has already been closed, e.g. due to a previous conversion. |
ArgumentException | The PDF/A version of the analysis and the conversion options do not match. |
ArgumentException | The analysis is not the analysis result of document. |
IOException | Error reading from or writing to the outStream. |
ConformanceException | The conformance required by options cannot be achieved.
|
ConformanceException | The PDF/A version of the conformances of analysis and options differ. The same PDF/A version must be used for the analysis and conversion. |
ArgumentException | The outOptions specifies document encryption, which is not allowed in PDF/A documents. |
GenericException | The document cannot be converted to PDF/A. |
CorruptException | The analysis has been stopped. |
UnsupportedFeatureException | The document is not a PDF, but an XFA document. See Xfa for more information on how to detect and handle XFA documents. |
NotFoundException | A required font is missing from the installed font directories. |
ArgumentNullException | if analysis is . |
ArgumentNullException | if document is . |
ArgumentNullException | if outStream is . |