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

PDF Export with UTF-8 xwiki encoding doesn't work (no content)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.4.1
    • None
    • LINUX
    • UTF-8 pdf

    Description

      The PDF export create a PDF file with empty content when XWIKI is configure in xwiki.cfg with xwiki.encoding=UTF-8 .
      To solve my problem, in class com.xpn.xwiki.pdf.impl.PdfExportImpl method exportHtml.java ; i replace :

      exportXHtml(applyCSS(convertToStrictXHtml(html.getBytes(), context), context), out, type, context);

      with

      //AF PATCH ENCODING
      //exportXHtml(applyCSS(convertToStrictXHtml(html.getBytes(), context), context), out, type, context);
      try

      { exportXHtml(applyCSS(convertToStrictXHtml(html.getBytes(context.getWiki().getEncoding()), context), context), out, type, context); }

      catch (UnsupportedEncodingException e)

      { e.printStackTrace(); throw new XWikiException(); }

      I think the problem is here... but i let youfixed this bug.

      Ask me if you need more informations.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              jurevert Julien Revert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: