AW: [docbook-apps] Including local Image in pdf output
This did the trick. Thanks for all your responses!! -Ursprüngliche Nachricht- Von: Jirka Kosek [mailto:ji...@kosek.cz] Gesendet: Mittwoch, 20. Dezember 2017 15:19 An: Nothen, Christian; docbook-apps@lists.oasis-open.org Betreff: Re: [docbook-apps] Including local Image in pdf output On 20.12.2017 14:27, Nothen, Christian wrote: > 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. What error message you have received? If you have to include drive letter into URL, you usually need to use more slashes to separate it from the protocol, e.g. file:///n:/test.png -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing -- Bringing you XML Prague conferencehttp://xmlprague.cz --
RE: [docbook-apps] Including local Image in pdf output
Hi, >mailto:peter.desjardins...@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, Christianwrote: > 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) > > > > > > > select="'file:/N:/test.png'"/> > > > > > > > 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-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@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.
Re: [docbook-apps] Including local Image in pdf output
On 20.12.2017 14:27, Nothen, Christian wrote: > 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. What error message you have received? If you have to include drive letter into URL, you usually need to use more slashes to separate it from the protocol, e.g. file:///n:/test.png -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing -- Bringing you XML Prague conferencehttp://xmlprague.cz -- signature.asc Description: OpenPGP digital signature
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, Christianwrote: > 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) > > > > > > > select="'file:/N:/test.png'"/> > > > > > > > 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-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Including local Image in pdf output
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) 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