Forum How do I...?

How do I set the image resolution when using Java

jasperl100
Hi,

We utilize the Java API to convert HTML to PDF.

How do we set the image resolution using the Java API?

Thanks

Aaron
mikeday
The "prince-image-resolution" CSS property can be used to specify the resolution of bitmap images. Note that its only purpose is to control the visible size of the image, eg. if you specify "300dpi" and the image is 300 pixels wide, then it will end up exactly one inch wide on the printed page. The same effect can be achieved by using the width and height properties.