DITA PDF2 transformation - scale attribute on image element
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 6
- Joined: Mon Nov 24, 2008 7:05 pm
DITA PDF2 transformation - scale attribute on image element
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
Thanks
Andrew
-
- Posts: 9469
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA PDF2 transformation - scale attribute on image element
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:
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:
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
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)"/>
Code: Select all
<fo:external-graphic src="url(image/carwash.jpg)" content-width="30%"/>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9469
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA PDF2 transformation - scale attribute on image element
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service