ConverterConvert |
Convert all pages of a PDF document to a rasterized image
public MultiPageDocument ConvertDocument( Document inDoc, Stream outStream, Profile profile )
The profile defines how the PDF pages are rendered and what type of output image is used. Note that the profile's image options must support multi-page images (TIFF). For other profiles, the method ConvertPage(Document, Stream, Profile, Int32) should be used.
For details, see Profile.
The output image document. The object can be used as input for further processing.
Note that, this object must be disposed before the output stream object (method argument outStream).
Exception | Condition |
---|---|
LicenseException | The license is invalid. |
IOException | Writing to the output image failed. |
UnsupportedFeatureException | The input PDF is a PDF collection (Portfolio) that has no cover pages. |
UnsupportedFeatureException | The input PDF contains unrendered XFA form fields. See Xfa for more information on how to detect and handle XFA documents. |
GenericException | An unexpected failure occurred. |
ArgumentException | The profile does not support multi-page output. |
ProcessingException | The processing has failed. |
InvalidOperationException | Internal error has occured. |
ArgumentNullException | if inDoc is . |
ArgumentNullException | if outStream is . |
ArgumentNullException | if profile is . |