PNG image format is showing small in PDF output

68 views
Skip to first unread message

Rohit Ghosh

unread,
Apr 28, 2017, 4:19:13 AM4/28/17
to DITA-OT Users

I am transforming to PDF output using a ditamap file . I am trying to insert a png image instead of gif in Note image. After the transformation the result is small in png . It is working fine in svg and gif images. I am using DITA-OT for the transformation.

Suggest me the solution of this .

[1]: https://i.stack.imgur.com/jDq

There is a small png image beside Text Note.My png image is normal ie 24x24 px.


(asked same on stack overflow)

Stefan Eike

unread,
Apr 28, 2017, 4:55:49 AM4/28/17
to DITA-OT Users
Hi Rohit,

you should not save the resolution in the image itself. If you open it in Gimp and export it to PNG, disable the "save resolution" checkbox. Then you can fully control the scaling with your XSL:FO processor, e.g. by modifying the fop.xconf and change these settings:

  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
  <source-resolution>150</source-resolution>
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
  <target-resolution>150</target-resolution>


See also: https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/stretched-images-pdf-output.html

Greetings,
Stefan
Reply all
Reply to author
Forward
0 new messages