Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    The thread you refer to has a link to an outdated version of the mpdf extension. 2.3.0 is currently the latest version and can be downloaded here:
    woocommerce-pdf-ips-mpdf.2.3.0.zip

    For an overview of all versions (including the ones with CJK = Chinese, Japanese & Korean support), you can go to the releases page: https://github.com/wpovernight/woocommerce-pdf-ips-mpdf/releases

    Note that because this is a plugin that is not hosted on wordpress.org, you will not automatically receive plugin updates, and we can only provide limited support.

    That said, could you check to see if updating to the latest version resolves the issue with the squares?

    The strings in the totals that are not translated are from WooCommerce directly (rather than from PDF Invoices). What’s your site language? Are these totals translated in the WooCommerce emails your site sends out?

    Thread Starter ateya3d

    (@ateya3d)

    Hello
    Thanks for your help and support

    i have update to the latest version of woocommerce-pdf-ips-mpdf.2.3.0

    my website language is Arabic
    the problem of the strings solved

    but the problem of the product name not solved

    this after the update

    https://i.postimg.cc/RhdY3m5c/2021-10-06-9-55-43.jpg

    Plugin Contributor Ewout

    (@pomegranate)

    What does that look like in HTML mode (adding &output=html to the URL of the PDF)? Are those Arabic characters? Is it possible that a different font is being applied to those links?

    Thread Starter ateya3d

    (@ateya3d)

    Yes it’s URL in Product Name

    the problem in URL Text , it’s the same like product name

    but in URL not success to capture the correct text

    Plugin Contributor Ewout

    (@pomegranate)

    Are you saying the words are the same – it’s just the product name repeated again as a link? There are more square characters (after “[“) that are not a link. Is it possible that a different font is applied to this? If you are a web developer you could go to HTML output, then do right click on the text that is not appearing correctly in the PDF to do “Inspect Element” and check the font that is assigned.

    Thread Starter ateya3d

    (@ateya3d)

    yes as you say correctly

    it’s just the product name repeated again as a link? There are more square characters

    i’m not a web developer

    tell me how can i go to HTML output to inspect it ?

    Plugin Contributor Ewout

    (@pomegranate)

    HTML mode I described in my previous post.

    For inspecting the element:

    1. add &output=html to the URL of the PDF, reload the page
    2. Right click on the text that wasn’t working before (in HTML mode it will probably show fine)
    3. Click “Inspect” (make sure to click precisely on the text!)
    4. There will be an area with a tab “Styles” selected (or “Rules” in Firefox”), you could check if there’s a font-family there, but it’s even better if you switch to the “Computed” tab, and then enter ‘font’ into the Filter search box.

      Please share a screenshot of what you see there.

    Thread Starter ateya3d

    (@ateya3d)

    Thanks for your care
    after i enable &output=html

    i get a correct text

    like this
    https://i.postimg.cc/L6GgZ198/2021-10-06-10-34-22.jpg

    the font used is Cairo from google fonts

    but in PDF appear all not correct

    like this
    https://i.postimg.cc/CM3fR8LL/2021-10-06-10-38-23.jpg

    i have follow this topic
    https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/using-custom-fonts/

    Plugin Contributor Ewout

    (@pomegranate)

    Aha, that makes sense then. You can’t use Google fonts in mpdf, so it can’t find the font. If you remove the font declaration there, it will probably show correctly. Or add a custom font following instructions I posted in your other topic.

    The documentation link you posted above is not applicable to mpdf.

    Thread Starter ateya3d

    (@ateya3d)

    no i host the google font in my server like your instructions

    Plugin Contributor Ewout

    (@pomegranate)

    The documentation link you posted above is not applicable to mpdf.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘translation Problem ,’ is closed to new replies.