HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting PD4ML JSP taglib: all generated PDF pages are blank

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26169

    First, make sure that the source HTML enclosed between and is not blank. If not, a reason may be as follows:

    JSP is a text-oriented format. But PD4ML JSP taglib outputs binary PDF data. Under particular conditions JSP runtime tries to erroneously apply character encoding conversion to the binary bytes and corrupts the PDF content. As a rule such PDFs may contain multiple pages, but most of them (or all) are blank.

    As a workaround try to add encoding=”default” attribute to

    A special case is Resin application server, in situations when the default OS encoding differs from Latin 1 (ISO-8859-1)

    The server in ServlerOutputStream methods always uses default character encoding set for OS ignoring explicitly given settings.

    To avoid such conversion, add to Resin command line the following parameter:

    -Dfile.encoding=ISO-8859-1

Viewing 1 post (of 1 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.