ConverterConvert |
Convert a single page of a PDF document to a rasterized image
public Document ConvertPage( Document inDoc, Stream outStream, Profile profile, int pageNumber )
The profile defines how the PDF page is rendered and what type of output image is used.
For details, see Profile.
The image object allowing to open and read the output image and treat it as a new 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. |
ArgumentException | The pageNumber is not in the allowed range. |
IOException | Writing to the output image failed. |
UnsupportedFeatureException | The input PDF is a collection 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. |
ProcessingException | The processing has failed. |
ArgumentNullException | if inDoc is . |
ArgumentNullException | if outStream is . |
ArgumentNullException | if profile is . |