Export to image
There are two methods that allows you to export singe page or the entire document to an image:
- ExportPage: exports the specified page to an image.
- ExportPages: exports the entire document to an image.
Methods parameters
When using this methods you must specify the following parameters:
- PageNumber: The number of the page to export. Available only with ExportPage method.
- FileName: The path and name for the exported file.
- ScaleSize: The scale factor, 1 is the original size.
- OverrideFileIfAlreadyExist: Set to true if you want to replace the existing file.
-
ImageFormat: Use one of the formats predefined in the
System.Drawing.Imaging.ImageFormat
class.