OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Including local Image in pdf output


Hi,

>                        <xsl:with-param name="filname"

Are you sure this typo is only in your message here, and not in your code? I mean "filname".

--
Ekaterina Shikareva.

-----Original Message-----
From: Peter Desjardins [mailto:peter.desjardins.us@gmail.com]
Sent: Mittwoch, 20. Dezember 2017 15:11
To: Nothen, Christian; DocBook Apps
Subject: Re: [docbook-apps] Including local Image in pdf output

What error does Apache FOP report in its command line output?
Something about the file not being found?

Have you verified that the formatting objects XML file includes the image element? Search for the file path string (test.png) in the FO XML file?

When I process FO to generate PDF (I also use Apache FOP), the image paths in my FO XML are typically relative paths like "media/test.png".
I also configured my build system to place copies of all the images in a corresponding "media" directory in the same location as the FO file.

So my files look like this:

build-directory
 |_ my-fo-file.fo
 |_ media
     |_ test.png

Good luck!

Peter



On Wed, Dec 20, 2017 at 8:27 AM, Nothen, Christian <c.nothen@topsystem.de> wrote:
> Hello everyone,
>
>
>
> im using Oxygen to generate an .xsd documentation and to customize it,
> I generate it in docbook format and then transform it to pdf.
>
> To customize my documentation I added some text to the docbook footer
> (which is working!) and I also tried to add an image there, but this
> is not working yet.
>
> My custom footer text is in the center and the image should be on the
> left, but just not showing whatever I tried until now.
>
> For simplicity I created and 40x40 red image, which is located at my
> local path N:\test.png and I tried to Include it with the following code.
>
> (Just to be clear, the image I want to include is on my local machine,
> and not on some network resource)
>
>
>
> <fo:external-graphic content-height="1.2cm">
>                    <xsl:attribute name="src">
>                      <xsl:call-template name="fo-external-image">
>                        <xsl:with-param name="filname"
> select="'file:/N:/test.png'"/>
>                      </xsl:call-template>
>                    </xsl:attribute>
>                  </fo:external-graphic>
>
>
>
> This is not working yet..  maybe the select “’file:/N:/test.png’” is
> wrong (I tried many different formats here), so
>
> any help on this Problem would be very much appreciated.
>
>
>
>
>
> Some Version Infos:
>
> Oxygen version: 19
>
> Transformer: Saxon 6.5.5
>
> FO-Processor: Apache FOP
>
> Operating System: Windows 10
>
>
>
>
>
> Best Regards
>
> Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


________________________________

This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]