Image format publication

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

Image format publication

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

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

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

Re: Image format publication

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

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply