PDF Cover Image in SVG format
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 6
- Joined: Fri Sep 06, 2019 10:58 am
PDF Cover Image in SVG format
I'm trying to add an SVG image to the cover of PDF output.
My SVG document contains a PNG image, text, and other vector graphics:
<defs>
<image width="34" height="34" id="logo" href="logo.png"/>
</defs>
<rect x="0" y="0" width="100%" height="100%" rx="10" ry="10"
stroke: #005000;
stroke-width: 3;"/>
<text x="45%" y="95%" color="#FFFFAA" font-size="0.7cm"> Sample </text>
<use id="logo" href="#logo" ransform="matrix(0.6,0,0,0.599,147,138)"/>
It's not working until I remove the PNG image.
Is there anyway to keep the PNG image, text, and vector graphics in a PDF cover?
My SVG document contains a PNG image, text, and other vector graphics:
<defs>
<image width="34" height="34" id="logo" href="logo.png"/>
</defs>
<rect x="0" y="0" width="100%" height="100%" rx="10" ry="10"
stroke: #005000;
stroke-width: 3;"/>
<text x="45%" y="95%" color="#FFFFAA" font-size="0.7cm"> Sample </text>
<use id="logo" href="#logo" ransform="matrix(0.6,0,0,0.599,147,138)"/>
It's not working until I remove the PNG image.
Is there anyway to keep the PNG image, text, and vector graphics in a PDF cover?
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: PDF Cover Image in SVG format
Post by julien_lacour »
Hello,
Could you try to do the following in your SVG file
Julien
Could you try to do the following in your SVG file
- Declare xmlns:xlink="http://www.w3.org/1999/xlink" in <svg> elemnt
- Modify the href="logo.png" attribute to xlink:href="logo.png"
Julien
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