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
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
- duplicates
-
XWIKI-3361 PDF export does not take into account the encoding specified in xwiki.cfg
- Closed