Sandon Posted March 17, 2015 Share Posted March 17, 2015 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). Best regards, Sandon Link to comment Share on other sites More sharing options...
Sandon Posted March 18, 2015 Author Share Posted March 18, 2015 Anyone? Link to comment Share on other sites More sharing options...
tuk66 Posted March 19, 2015 Share Posted March 19, 2015 Install Adobe Reader and always open PDF files there. Link to comment Share on other sites More sharing options...
Sandon Posted March 20, 2015 Author Share Posted March 20, 2015 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 More sharing options...
tuk66 Posted March 20, 2015 Share Posted March 20, 2015 PrestaShop relies on TCPDF library. Link to comment Share on other sites More sharing options...
web-port.pl Posted April 7, 2015 Share Posted April 7, 2015 (edited) 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 April 7, 2015 by netark2 (see edit history) 2 Link to comment Share on other sites More sharing options...
Sandon Posted April 7, 2015 Author Share Posted April 7, 2015 @netark2 Thank you for helping! It's working now. Link to comment Share on other sites More sharing options...
web-port.pl Posted April 7, 2015 Share Posted April 7, 2015 remember only "freeserif" or change the font in class tcpdf but "freeserif" it's universal. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now