Page 1 of 1

Image format publication

Posted: Sat Oct 19, 2013 8:12 am
by ESTRADE
Hello,
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

Re: Image format publication

Posted: Mon Oct 21, 2013 10:16 am
by Radu
Hi,

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:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/fop/conf/fop.xconf

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 -->
<source-resolution>120</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>120</target-resolution>
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:

http://www.oxygenxml.com/doc/ug-oxygen/ ... utput.html

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

http://groups.yahoo.com/neo/groups/dita ... pics/17106

Regards,
Radu