Method Create
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Create()
Creates default draw options.
public static PdfDrawOptions Create()
Returns
- PdfDrawOptions
The newly created default draw options.
Remarks
Default draw options are:
- Background is transparent.
- Image format is Png.
- Scaling mode is Zoom with zoom percent equal to 100 (i.e., no zoom).
- Physical size of each produced image is equal to the physical size of the corresponding PDF page.
- Vertical resolution is 72 pixels per inch.
- Horizontal resolution is 72 pixels per inch.
Produced images will be additionally scaled when HorizontalResolution or
VerticalResolution properties are not equal to 72
pixels per inch.
The scaling happens to maintain the same physical size of the corresponding PDF page
in the produced images.
To produce images of an exact width, height, or both, please use CreateFitWidth(double), CreateFitHeight(double), or CreateFitSize(PdfSize, bool) methods.
The Convert PDF to image in C# and VB.NET article contains examples of using this method.