WordPress.org

Support

Custom PDF

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author thomaslcq

    @thomaslcq

    Vitaly,

    Hummmm.. I forced the PDF to be using “fr”ench language, so you need to duplicate the template, create your own, and edit invoice.php. Look at the end of the code, there is a line instanciating the HTML2PDF class, and the “fr” is passed as argument. You might need to check Html2PDF documentation to know which charset to input.

    let me know how it goes

    Thomas

    PDF show “?????” instead of Russian letters, how to correct it?

    vitaly0001, it seams You save file in incorrect encoding. It should be UTF-8.

    Plugin Author thomaslcq

    @thomaslcq

    indeed, you can try, in invoice.php

    Line125: $html2pdf = new HTML2PDF(‘P’, ‘A4’, ‘fr’);

    replace by:

    Line125: $html2pdf = new HTML2PDF(‘P’, ‘A4’, ‘fr’,true,’UTF-8′);

    maybe also change “fr” to Russian… and check that some Cyrillic font is present in the html2pdf.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom PDF’ is closed to new replies.
Skip to toolbar