No image on PDF front page

Having trouble installing Oxygen? Got a bug to report? Post it all here.
JoeW
Posts: 1
Joined: Sat Mar 23, 2013 5:43 pm

No image on PDF front page

Post by JoeW »

Hi. I'm evaluating this product for use at my company, kinda new to all this. Like many other posts in here, I'm trying to customize the front page of a PDF file with a company logo. This is a .dita --> PDF conversion. Using a Mac, OS X 10.6.

I found your great instructions on DITA to PDF customization. Followed those steps, but I cannot get the PDF to render the image. I'm using a small red rectangle to test with. The PDF generates fine, but no image.

Here's what I did:
  • Copied the Customization directory to a new location,

    Code: Select all

    /Users/<user name>/oxygenAuthor/Customization
  • Moved sample .png file to

    Code: Select all

    \Customization\common\artwork\
  • Removed the .org extensions from the catalog.xml and custom.xsl files
.
  • Uncommented the appropriate line in catalog.xml, this:

    Code: Select all

    <uri name="cfg:fo/xsl/custom.xsl" uri="fo/xsl/custom.xsl"/>
  • Added front matter code to custom.xsl and changed to graphic link to point to my test image, like this:

    Code: Select all

    <fo:external-graphic src="url({concat($artworkPrefix, '/Customization/OpenTopic/common/artwork/small_red.png')})"/>
The PDF generates, but no image. I've tried these steps a few times to make sure I haven't missed something. Do I need to modify another file to make this work? Is the process different for a Mac than a PC?

Thank you.
Radu
Posts: 9448
Joined: Fri Jul 09, 2004 5:18 pm

Re: No image on PDF front page

Post by Radu »

Hi Joe,

So sorry for the delay, your post got stuck in our moderation queue.
To make sure your customization is used please try to make the custom.xsl not well formed and then run the transformation. If the transformation fails, then your customization is used.
You can also edit the transformation scenario and set the parameter clean.temp to no.
After the transformation you will find in the temporary files folder a file called topic.fo. Try to look in it and see how the reference to the image was constructed, maybe it points to an invalid path.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply