Image Scale
Write out larger images to allow higher quality zooming.
Default value is 1, which produces images at the same size they are displayed when the zoom is 100%. A value of 1.5 will generate images at 1.5x the standard size. The maximum size of an image is capped at the size of the source image stored in the PDF file. For example if the source image is 150x150, then increasing the imageScale value will not generate an image larger than 150x150.
It is important to remember that file size grows exponentially with the scaling factor. For example, scaling an image by 2 actually multiplies the number of pixels by 4. We therefore recommend a value such as 1.5 or 2.
Expected values:
- Float value greater than
1
e.g.1.5
,2
Default: 1
Since: 2019.12
Usage Examples
Command Line
-Dorg.jpedal.pdf2html.imageScale="1.5"
Cloud
{ "org.jpedal.pdf2html.imageScale": 1.5 }
Java
conversionOptions.setImageScale(1.5f);