How to embed PDF files in Docbook when output format is also PDF
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Mon Mar 27, 2017 7:58 pm
How to embed PDF files in Docbook when output format is also PDF
Hey,
I am trying to generate a PDF version of my Docbook. This document includes lots of text, but also several figures.
In order to make those figures look sharp in the PDF output file, the figures are also included as PDF format.
This works perfectly fine, when I am generating HTML output, but when the output format is PDF the figures are just not shown. Why?
I am including the figures as shown below:
<inlinemediaobject>
<imageobject>
<imagedata fileref="./figure.pdf"/>
</imageobject>
</inlinemediaobject>
And when I add the attribute format="PDF" to the imagedata, OxygenXML is even complaining and states that this is not a valid value for format.
I am trying to generate a PDF version of my Docbook. This document includes lots of text, but also several figures.
In order to make those figures look sharp in the PDF output file, the figures are also included as PDF format.
This works perfectly fine, when I am generating HTML output, but when the output format is PDF the figures are just not shown. Why?
I am including the figures as shown below:
<inlinemediaobject>
<imageobject>
<imagedata fileref="./figure.pdf"/>
</imageobject>
</inlinemediaobject>
And when I add the attribute format="PDF" to the imagedata, OxygenXML is even complaining and states that this is not a valid value for format.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to embed PDF files in Docbook when output format is also PDF
Hi,
Are you using Docbook 4 or 5?
So you are referencing PDF images in the Docbook documents.
There are three aspects here:
1) Rendering the PDF image in the Author visual editing mode when the Docbook XML document is opened in Oxygen.
In order for this to work you would need to follow these steps:
https://www.oxygenxml.com/doc/versions/ ... ?hl=pdfbox
You also mention this problem:
If not, maybe you can put together a small sample project exhibiting the problem and send it to support@oxygenxml.com
2) Rendering the PDF image in the published HTML output. From what I tested this does not work by default, you mentioned that it works for you so maybe you have some HTML output customizations for this.
3) Rendering the PDF image in the published PDF output. By default the PDF processor used by Oxygen to produce the PDF (Apache FOP) does not have support for PDF images but you can add support to it.
Please read this topic:
https://www.oxygenxml.com/doc/versions/ ... aries.html
Regards,
Radu
Are you using Docbook 4 or 5?
So you are referencing PDF images in the Docbook documents.
There are three aspects here:
1) Rendering the PDF image in the Author visual editing mode when the Docbook XML document is opened in Oxygen.
In order for this to work you would need to follow these steps:
https://www.oxygenxml.com/doc/versions/ ... ?hl=pdfbox
You also mention this problem:
I cannot reproduce this validation error, do you possibly have some custom Schematron rules specific for your project?And when I add the attribute format="PDF" to the imagedata, OxygenXML is even complaining and states that this is not a valid value for format.
If not, maybe you can put together a small sample project exhibiting the problem and send it to support@oxygenxml.com
2) Rendering the PDF image in the published HTML output. From what I tested this does not work by default, you mentioned that it works for you so maybe you have some HTML output customizations for this.
3) Rendering the PDF image in the published PDF output. By default the PDF processor used by Oxygen to produce the PDF (Apache FOP) does not have support for PDF images but you can add support to it.
Please read this topic:
https://www.oxygenxml.com/doc/versions/ ... aries.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service