DITA PDF2 transformation - scale attribute on image element

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ageery
Posts: 6
Joined: Mon Nov 24, 2008 7:05 pm

DITA PDF2 transformation - scale attribute on image element

Post 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
Radu
Posts: 9469
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA PDF2 transformation - scale attribute on image element

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9469
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA PDF2 transformation - scale attribute on image element

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