Optional
dpi?: Dpi | numberThe DPI value used to calculate image resolution.
Dpi.Low
for the default PDF viewport size at 72 DPI. This option generates an image with lower resolution, resulting in lesser quality but faster processing time. At this setting, one PDF point corresponds to one pixel.Dpi.High
for twice the default PDF viewport size at 144 DPI. This option provides better image quality at the cost of longer processing time. At this setting, one PDF point corresponds to two pixels.Dpi.High
Configuration options for converting a PDF to PNG format.