Jump to content

PDF invoice blank in Google Chrome and Gmail


Recommended Posts

Hi!

 

I am setting up my order process in my Prestahop store and I have already placed some fake orders by myself. For example when I change order status from "Awaiting bank wire payment" to "Payment accepted" PDF invoice is created. If I download file and open it with Foxit Reader, everything is OK (please see attachment1).

 

But strange thing happens when I want to open same file directly in Google Chrome or in Gmail as a attachment. Same PDF file is blank (attachment2). 

 

post-866331-0-80885000-1426609684_thumb.jpg

post-866331-0-54692600-1426609685_thumb.jpg

 

 

Best regards,

Sandon

Link to comment
Share on other sites

I am Chrome and Gmail user myself and I usually open PDF files with default viewer. I would say circa 30% of internet users use Chrome and Gmail as well. So my concern is that 30% of my customers will think that I have sent them invoice without any data.

 

So this is generally know problem of Prestashop? 

Link to comment
Share on other sites

  • 3 weeks later...

in file

 

classes\pdf\PDFGenerator.php

 

    public $font_by_lang = array(
        'ja' => 'cid0jp',
        'bg' => 'freeserif',
        'ru' => 'freeserif',
        'uk' => 'freeserif',
        'mk' => 'freeserif',
        'el' => 'freeserif',
        'en' => 'dejavusans',        
        'vn' => 'dejavusans',
        'pl' => 'freeserif',
        'ar' => 'dejavusans',
        'fa' => 'dejavusans',
        'ur' => 'dejavusans',
        'az' => 'dejavusans',
        'ca' => 'dejavusans',
        'gl' => 'dejavusans',
        'hr' => 'dejavusans',
        'sr' => 'dejavusans',
        'si' => 'dejavusans',
        'cs' => 'dejavusans',
        'sk' => 'dejavusans',
        'ka' => 'dejavusans',
        'he' => 'dejavusans',
        'lo' => 'dejavusans',
        'lv' => 'dejavusans',
        'tr' => 'dejavusans',
        'ko' => 'cid0kr',
        'zh' => 'cid0cs',
        'tw' => 'cid0cs',
        'th' => 'freeserif'
        );

 

change your language to "freeserif"

Edited by netark2 (see edit history)
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...