WordPress.org

Ready to get started?Download WordPress

Forums

eShop-invoice
Custom PDF (4 posts)

  1. vitaly0001
    Member
    Posted 1 year ago #

    How to make my own template of PDF file?
    I need to add the other details like bank bill and so on...
    PDF show "?????" instead of Russian letters, how to correct it?

    http://wordpress.org/extend/plugins/eshop-invoice/

  2. thomaslcq
    Member
    Plugin Author

    Posted 1 year ago #

    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

  3. Karsonito
    Member
    Posted 1 year ago #

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

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

  4. thomaslcq
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags