Image format publication

Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Image format publication

Post by ESTRADE » Sat Oct 19, 2013 8:12 am

I would like to display a picture, taking into account the type of publication, such as the html is different size in PDF, is this possible with DITA OT
thank you

Posts: 6980
Joined: Fri Jul 09, 2004 5:18 pm

Re: Image format publication

Post by Radu » Mon Oct 21, 2013 10:16 am


You could use profiling and include one image reference for HTML and one for PDF output.
Or make some modifications in the XSLT code for HTML and PDF outputs to output the image reference with different sizes.
As a potential alternative, the FOP configuration file:


has two properties called:

Code: Select all

  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
If you save your images without any DPI setting saved in them increasing the target values should render smaller images in the PDF output. More about Apache FOP and image DPI here: ... utput.html

There also was a previous discussion about this on the DITA Users List a while ago: ... pics/17106

Radu Coravu
<oXygen/> XML Editor

Post Reply