[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

displaying images in in PDF's with fop

Subject: displaying images in in PDF's with fop
From: "Pi, Aimee" <Aimee.Pi@xxxxxxx>
Date: Fri, 7 Jan 2005 07:55:55 -0800
fop image path
I'm using XSL stylesheets and XML documents to generate PDF files with
xsltproc, then fop.  The problem is, I can't get images to show up in the PDF
(the text showing up in the fo file, though).  I've tried the following:

<fo:external-graphic src="url(/path/to/image.jpg)" />     
<img src="http://path/to/image.jpg" content-height=".2in" content-width=".5in"
overflow="visible"/>
<fo:external-graphic src="file:///http://www.path.to.image.jpg"
content-height="70%" content-width="70%" overflow="visible"/>
<fo:external-graphic width="50pt" height="50pt" overflow="hidden"
src="image.jpg"/>

I also tried a number of other variations of <img src>, <fo:external-graphic>,
and even <mediaobject>.  I tried absolute and relative paths.  If I try to use
the path to anything other than something that resides on the server I'm
currently developing on, such as the google logo, I get a failed RPC error. 
Since I don't get the same error for files on my development server, I can
only assume that the file is being accessed - its just not showing up in my
PDF. 

I've seen a lot of posts from people about getting images to display in their
PDFs, but the solution was generally one of the ones I listed above.  Am I
missing something?

Thanks. 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.