Relative path to image from Cover Page for PDF
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 14
- Joined: Fri Nov 24, 2017 10:07 am
Relative path to image from Cover Page for PDF
Hi,
In our PDFs for every product we have different product logo on the cover page. How can I give relative path to these images so that whenever I generate
PDF out the correct logo is picked? I can save the product logo in a graphics folder which is inside the source folder which contains my DITAmap.
Can you help with a solution, with detailed steps please? I am using oXygen Editor 19.1.
Best regards,
Sangeeta
In our PDFs for every product we have different product logo on the cover page. How can I give relative path to these images so that whenever I generate
PDF out the correct logo is picked? I can save the product logo in a graphics folder which is inside the source folder which contains my DITAmap.
Can you help with a solution, with detailed steps please? I am using oXygen Editor 19.1.
Best regards,
Sangeeta
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Relative path to image from Cover Page for PDF
Hi,
For completion I'm linking to the answer you received on the same post you made on the DITA Users List:
https://groups.yahoo.com/neo/groups/dit ... ages/43525
Regards,
Radu
For completion I'm linking to the answer you received on the same post you made on the DITA Users List:
https://groups.yahoo.com/neo/groups/dit ... ages/43525
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Fri Nov 24, 2017 10:07 am
Re: Relative path to image from Cover Page for PDF
Hi Radu,
The png file is in graphics folder, which is parallel to the DITAMAP.
graphics/product.logo.png
The graphic is not displayed in the PDF output. I made the following changes to my files. Can you please let me if I am missing something?
In the diatmap, I add the following:
Added the following in front-matterxsl:
Added the following in front-matter-attr.xsl
Best regards,
Sangeeta
The png file is in graphics folder, which is parallel to the DITAMAP.
graphics/product.logo.png
The graphic is not displayed in the PDF output. I made the following changes to my files. Can you please let me if I am missing something?
In the diatmap, I add the following:
Code: Select all
<bookmeta>
<data name="cover-image" href="graphics/product_logo.png" format="png"/>
</bookmeta>
Code: Select all
<frontmatter>
<topicref href="graphics/product_logo.png" format="png" processing-role="resource-only"
toc="no"/>
</frontmatter>
Code: Select all
<fo:block xsl:use-attribute-sets="__frontmatter__title">
<fo:block-container xsl:use-attribute-sets="__frontmatter__logo__container">
<fo:block xsl:use-attribute-sets="__frontmatter__logo_product">
<xsl:value-of select="//*[contains(@class,' frontmatter/topicref ')]"/>
<fo:external-graphic src="url({(//data[@name='cover-image'])[1]/@href})"/>
</fo:block>
</fo:block-container>
Code: Select all
<xsl:attribute-set name="__frontmatter__logo__container">
</xsl:attribute-set>
<xsl:attribute-set name="__frontmatter__logo_product">
</xsl:attribute-set>
Sangeeta
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Relative path to image from Cover Page for PDF
Hi Sangeeta,
I answered you on the DITA Users list. I would prefer you not post duplicate questions in multiple places, so if you ask on the DITA Users List you can try to avoid posting the same question on the Oxygen forum, I am registered on the DITA Users List and if time allows I can try to help there with advice.
Regards,
Radu
I answered you on the DITA Users list. I would prefer you not post duplicate questions in multiple places, so if you ask on the DITA Users List you can try to avoid posting the same question on the Oxygen forum, I am registered on the DITA Users List and if time allows I can try to help there with advice.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Fri Nov 24, 2017 10:07 am
Re: Relative path to image from Cover Page for PDF
Hi Radu,
We are evaluating oXygen for our team of 50 writers. I am in the process of ironing out some details, so sometimes require fast answers. That is why I post in multiple locations, whichever gives me faster answers
. Thank you so much for answering and helping me with resolution to my queries.
On this I had one question on language support. I see that Korean, Chinese traditional, Brazilian, and so on, these languages are not listed in the xml:lang field. So can we add these languages to open and publish PDFs and Help centers in these languages?
If yes, can you please help me with the procedure to do that?
Best regards,
Sangeeta
We are evaluating oXygen for our team of 50 writers. I am in the process of ironing out some details, so sometimes require fast answers. That is why I post in multiple locations, whichever gives me faster answers

On this I had one question on language support. I see that Korean, Chinese traditional, Brazilian, and so on, these languages are not listed in the xml:lang field. So can we add these languages to open and publish PDFs and Help centers in these languages?
If yes, can you please help me with the procedure to do that?
Best regards,
Sangeeta
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Relative path to image from Cover Page for PDF
Hi Sangeeta,
I recently created a blog post on the Oxygen XML Blog about DITA and translations. Looking at your reply, I realized I forgot to add information about how to add a new language to the DITA Open Toolkit. So I just added a section to it called Publishing your Translated Content:
http://blog.oxygenxml.com/2018/05/trans ... oject.html
Even if Oxygen does not propose those possible xml:lang values, it does not mean that the DITA OT does not have support for them.
For example the list with all languages supported for PDF is here:
http://www.dita-ot.org/2.0/readme/DITA- ... n-pdf.html
and it includes Simplified Chinese.
Regards,
Radu
I recently created a blog post on the Oxygen XML Blog about DITA and translations. Looking at your reply, I realized I forgot to add information about how to add a new language to the DITA Open Toolkit. So I just added a section to it called Publishing your Translated Content:
http://blog.oxygenxml.com/2018/05/trans ... oject.html
Even if Oxygen does not propose those possible xml:lang values, it does not mean that the DITA OT does not have support for them.
For example the list with all languages supported for PDF is here:
http://www.dita-ot.org/2.0/readme/DITA- ... n-pdf.html
and it includes Simplified Chinese.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
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