1 Oct 01:09 2011
Re: Image location
<DeanNelson <at> aol.com>
2011-09-30 23:09:08 GMT
2011-09-30 23:09:08 GMT
Setting the "image.src.path" parameter would eliminate a need to prefix the path on all images. However, that doesn't seem to be your problem. Everything you stated/done should be working. The FO code looks right and it does seem to fit the file structure.
I am assuming that you are under a Linux/Unix OS. That said, I would look at the upper/lower case filenames located in your images directory and make sure they correspond with how you called them in the XML code.. My users are Windows and Linux and we constantly run in to case issues that show up under Linux but not Windows.
As you can tell, we are now "reaching" a bit for the solution for you. Maybe the exact error from FOP would help?
In a message dated 9/30/2011 3:31:58 P.M. Pacific Daylight Time, markus.hoenicka <at> mhoenicka.de writes:
my directory setup is usually as follows (somewhat simplified):
mydoc.xml then uses relative paths to specify the image:
<imagedata align="center" scale="50" format="PNG"
Makefile is set up to invoke xsltproc and fop as needed. In order to
transform this document, I cd to ~/mydoc and run make pdf. That's
Quoting Lars Vogel <lars.vogel <at> googlemail.com>:
> Hi Chris,
> thanks for the answer unfortunately this also does not work.
> In which directory should the image be?
> Best regards, Lars
> 2011/9/30 Køi¹tof ®elechovski <giecrilj <at> stegny.2a.pl>
>> Dnia pi±tek, 30 wrze¶nia 2011 o 12:29:29 Lars Vogel napisa³(a):
>> > Hello,
>> > I'm trying to create PDF from my Docbook output via the corresponding
>> > stylesheets but FOP cannot find the image. I read Bobs description and I
>> > believe the path of the image is correctly setup.
>> > http://www.sagehill.net/docbookxsl/GraphicsLocations.html
>> > http://www.sagehill.net/docbookxsl/ModularDoc.html#XIncludeGraphics
>> > The generated FO source look like the following:
>> > <fo:block id="d0e101"><fo:external-graphic
>> > src="url(content/images/DojoFolder10.gif)" width="auto" height="auto"
>> > content-width="auto" content-height="auto"/></fo:block>
>> That looks like relative path.
>> > and files are in the following structure:
>> > article.fo
>> > /content/images/DojoFolder10.gif
>> Did you try setting src="url(/content/images/DojoFolder10.gif)"?
> http://www.vogella.de - Eclipse, Android and Java Tutorials
> http://www.twitter.com/vogella - Lars on Twitter
AQ score 38
To unsubscribe, e-mail: docbook-apps-unsubscribe <at> lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help <at> lists.oasis-open.org