Page 1 of 1

DITA PDF2 transformation - scale attribute on image element

Posted: Tue Nov 25, 2008 9:04 pm
by ageery
In Author 10, I have an image in a step element (I've tried both png and jpg) with a scale factor associated with it. According to the DITA 1.1 documentation, the scale factor is a percentage by which to scale the image, where 100 is the original size. However, when I use the attribute, the image is presented in its original size. I've tried it both with XEP and Apache FOP, but the image never gets scaled. What am I doing wrong?

Thanks
Andrew

Re: DITA PDF2 transformation - scale attribute on image element

Posted: Wed Nov 26, 2008 10:58 am
by Radu
Hi Andrew,

Indeed the latest IDIOM PDF2 plugin (FO 1.4.2) installed in the DITA Open Toolkit 1.4.2.1 bundled with Oxygen does not seem to take into account the scale attribute when generating the output FO file:

Code: Select all

 <fo:external-graphic src="url(image\carwash.jpg)"/>
On the other side, the DITA OT classic PDF transformation takes it into account and generates FO file having this attribute on the image reference:

Code: Select all

<fo:external-graphic src="url(image/carwash.jpg)" content-width="30%"/>
I'll see if I can provide an easy fix for this, maybe browse their repository and check out if this was fixed in a newer version of the IDIOM FO plugin.

Regards,
Radu

Re: DITA PDF2 transformation - scale attribute on image element

Posted: Wed Nov 26, 2008 11:22 am
by Radu
Hi Andrew,

I made a simple patch in the IDIOM FO stylesheets for this to work properly so if you have "scale" set without any "width" on the image the FO file should be generated OK.

You can contact us here:
http://www.oxygenxml.com/techSupport.html
and I'll send you the patched stylesheet.

Regards,
Radu