PDF Cover Blank After Replacing Cover svg
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 53
- Joined: Sat May 22, 2021 6:04 pm
PDF Cover Blank After Replacing Cover svg
Post by patjporter »
Hello,
I used Oxygen Styles Basket to create my template and styles. I uploaded an svg to the Styles Basket for the cover.
When I downloaded the template and css, the image was named cover.svg.
I then realized I needed to edit it. I don't have an svg editor on my Windows PC so I e-mailed the cover.svg file to myself and opened it in Adobe Illustrator on my Mac. I added a company logo to the bottom of the svg, saved it, e-mailed it back to myself and then deleted the original cover.svg file in the resources folder and saved the revised cover.svg file in the resources folder.
When I ran the next PDF using HTML5 and CSS, the cover was blank...all white.
I then tried to re-upload the package to Styles Basket so I could change the cover graphic, but it failed with a message saying there needed to be a styles.css in the root, which there was.
Why would the transform fail to find the svg when the new filename was exactly the same and the path in the styles css remained unchanged?
Any suggestions on how to replace the original cover.svg with the revised cover.svg?
Thanks!
Pat
I used Oxygen Styles Basket to create my template and styles. I uploaded an svg to the Styles Basket for the cover.
When I downloaded the template and css, the image was named cover.svg.
I then realized I needed to edit it. I don't have an svg editor on my Windows PC so I e-mailed the cover.svg file to myself and opened it in Adobe Illustrator on my Mac. I added a company logo to the bottom of the svg, saved it, e-mailed it back to myself and then deleted the original cover.svg file in the resources folder and saved the revised cover.svg file in the resources folder.
When I ran the next PDF using HTML5 and CSS, the cover was blank...all white.
I then tried to re-upload the package to Styles Basket so I could change the cover graphic, but it failed with a message saying there needed to be a styles.css in the root, which there was.
Why would the transform fail to find the svg when the new filename was exactly the same and the path in the styles css remained unchanged?
Any suggestions on how to replace the original cover.svg with the revised cover.svg?
Thanks!
Pat
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: PDF Cover Blank After Replacing Cover svg
Post by julien_lacour »
Hello,
I tried on my side but I cannot reproduce the blank cover issue, I edited the cover.svg file and put it back inside the styles.zip file and the generated PDF contained the modified image. I also tried to unzip the publishing template and replaced the cover there, after changing my scenario to point to the unzipped styles.opt file and the result was the same.
When you re-upload the styles.zip into Oxygen Styles Basket, make sure the structure looks like this:
You can email us your styles.zip archive at support@oxygenxml.com if you still cannot use it back in Oxygen Styles Basket.
Regards,
Julien
I tried on my side but I cannot reproduce the blank cover issue, I edited the cover.svg file and put it back inside the styles.zip file and the generated PDF contained the modified image. I also tried to unzip the publishing template and replaced the cover there, after changing my scenario to point to the unzipped styles.opt file and the result was the same.
When you re-upload the styles.zip into Oxygen Styles Basket, make sure the structure looks like this:
Code: Select all
styles.zip
preview
resources
cover.svg
checksum
styles.css
styles.opt
Regards,
Julien
-
- Posts: 53
- Joined: Sat May 22, 2021 6:04 pm
Re: PDF Cover Blank After Replacing Cover svg
Post by patjporter »
Hi Julien, thank you for trying to replicate the issue. Based on your response I figured it might be some kind of aliasing issue. So, I started over with the original ,png file, made the edits that I wanted, saved it as a different name, dropped it in the resources folder and edited the file name in styles.css and it worked fine.
I appreciate your time on this...my document is looking very professional now thanks to all of your and others' assistance! I really appreciate it and apologize for all the questions...but I have been really learning a lot!
Pat
I appreciate your time on this...my document is looking very professional now thanks to all of your and others' assistance! I really appreciate it and apologize for all the questions...but I have been really learning a lot!
Pat
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