• Resolved kbadeo

    (@kbadeo)


    plugin is the latest version, HTML output is ok. PDF output generates error:

    Fatal error: Uncaught Error: Unsupported operand types in /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/font_metrics.cls.php:262 Stack trace: #0 /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/font_metrics.cls.php(363): Font_Metrics::load_font_families() #1 /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/autoload.inc.php(22): include_once(‘/srv/users/serv…’) #2 [internal function]: DOMPDF_autoload(‘Font_Metrics’) #3 /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/stylesheet.cls.php(1271): spl_autoload_call(‘Font_Metrics’) #4 /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/stylesheet.cls.php(1115): Stylesheet->_parse_font_face(‘font-family: ‘O…’) #5 /srv/users/serverpilot/apps/s in /srv/users/serverpilot/apps/shop/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/font_metrics.cls.php on line 262

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

    (@pomegranate)

    Hi! Are you using a custom font?

    Thread Starter kbadeo

    (@kbadeo)

    Hi,

    Thanks for the quick response. Yes we are using a custom font as we need support for the Indian Rupee symbol. You think that’s what is causing the error?

    Plugin Contributor Ewout

    (@pomegranate)

    Yes, very likely. Rupee symbol is supported through the plugin already, you only need to enable the ‘Extended currency symbol support’ option in the Template settings tab. If this doesn’t show the Rupee symbol let me know which one you use (since there are several different rupee symbols)!

    Ewout

    Thread Starter kbadeo

    (@kbadeo)

    Hi,

    here is our site:https://shop.mylittlemoppet.com/family-nutrition/ you could see here the symbol we use.

    We use this custom font though because other fonts could not display this symbol. Is there a way to get around this? HTML output seems to work fine only the PDF output throws an error.

    Thanks,
    Karl

    Plugin Contributor Ewout

    (@pomegranate)

    Try with the default font (Simple template) and then ‘Extended currency symbol support’ enabled in the PDF Invoice Template settings tab.

    Before:
    Before enabling extended currency support
    After:
    After enabling extended currency support

    Ewout

    Plugin Contributor Ewout

    (@pomegranate)

    By the way, you should still be able to use a custom font (TTF), just make sure you follow the instructions: Using custom fonts. The fact that it works in the browser is not a good indication for whether the font was applied correctly, simply because fonts in PDF work very differently from browser fonts (it’s all processed server side for one thing).

    Ewout

    • This reply was modified 8 years ago by Ewout.
    Thread Starter kbadeo

    (@kbadeo)

    Thank you! I will check this out!

    Thread Starter kbadeo

    (@kbadeo)

    just for the record we are using the simple premium template

    Thread Starter kbadeo

    (@kbadeo)

    Hi Ewout,

    followed the steps to make a custom template and add custom fonts but still getting a blank screen. any thoughts?

    Thanks,
    Karl

    Plugin Contributor Ewout

    (@pomegranate)

    Send me an email ([email protected]) with your license key or order number and I’ll do my best to help – as a paying user you’re entitled to priority support ??
    If you could include a copy of the custom template that’d help too!

    Ewout

    Thread Starter kbadeo

    (@kbadeo)

    Hi Ewout,

    I dont own the site, Im just the web guy and the site was already setup when I got the job so I’m not sure if we got the premium plugin. I think it is the free one but with the premium templates extension: https://screencast.com/t/TaTEXm8h

    based on the screen shot please advise if we could get premium support or not. thanks.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! I can’t tell from the screenshot whether the license is still valid, but looking at the version (2.1.12), that’s probably the case. Send us an email with the custom template and I’ll take a look at it. Question: did you also try the extended currency support with the default Simple (or Simple Premium) template?

    Ewout

    Thread Starter kbadeo

    (@kbadeo)

    Hi, Yes I tried the simple template with extended currency support and still have the same problem. I will send you the custom template. Thanks.

    Plugin Contributor Ewout

    (@pomegranate)

    Just tested with the information you sent me and it all works now (with the Simple and Premium templates) ??

    Have a great day!
    Ewout

    • This reply was modified 8 years ago by Ewout.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘blank page when generating PDF’ is closed to new replies.