Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4716

During a PDF export, if pdf.css does not exist then any style that exists in the PDFClass will not be applied

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.1.1
    • {Unused} Core
    • None
    • Easy

    Description

      To reproduce:

      The style will not be applied until pdf.css exists. The error message in the logs is:

      ...bin/export/Space/DocumentName?format=pdf] WARN impl.PdfExportImpl

      • Failed to apply CSS: character
        org.apache.batik.css.parser.ParseException: character
        at org.apache.batik.css.parser.Scanner.nextToken(Scanner.java:368)
        at org.apache.batik.css.parser.Scanner.next(Scanner.java:222)
        at org.apache.batik.css.parser.Parser.parseStyleSheet(Parser.java:185)
        at info.informatica.doc.style.css.dom.DOMCSSStyleSheet.parseCSSStyleSheet(DOMCSSStyleSheet.java:410)
        at info.informatica.doc.dom4j.XHTMLDocument.addStyleSheet(XHTMLDocument.java:131)
        at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:377)
        at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:332)
        at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:235)
        at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:266)
        at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)
        at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:61)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            nigelpsmith Nigel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: