GS VISION Posted September 25, 2009 Share Posted September 25, 2009 I changed the font of the generated PDF files to verdana with encoding cp-1251 and it works perfectly but when I try go generate PDF Invoices or delivery slips via admin panel I get FPDF error: Undefined font: verdana B Link to comment Share on other sites More sharing options...
radders Posted September 25, 2009 Share Posted September 25, 2009 You say it works perfectly but if it doesn't generate invoices or delivery slips what does it actually do perfectly?Did you add the font to the PDF class? Link to comment Share on other sites More sharing options...
GS VISION Posted September 25, 2009 Author Share Posted September 25, 2009 it generates front end PDF files but doesn`t generate admin panel pdf`s where should it be added? Link to comment Share on other sites More sharing options...
radders Posted September 25, 2009 Share Posted September 25, 2009 Surprised it works on the front-end! I would try adding it to classes/PDF.php around line 86. private static $_fpdf_core_fonts = array('courier', 'helvetica', 'helveticab', 'helveticabi', 'helveticai', 'symbol', 'times', 'timesb', 'timesbi', 'timesi', 'zapfdingbats'); Link to comment Share on other sites More sharing options...
GS VISION Posted September 25, 2009 Author Share Posted September 25, 2009 what is line 86 function header? I`ll try this Link to comment Share on other sites More sharing options...
radders Posted September 26, 2009 Share Posted September 26, 2009 Just search the file for that line and try adding your font into it. Link to comment Share on other sites More sharing options...
GS VISION Posted September 26, 2009 Author Share Posted September 26, 2009 man I don`t seem to find it i added it here: /** @var array Special PDF params such encoding and font */ private static $_pdfparams = array(); private static $_fpdf_core_fonts = array('courier', 'helvetica', 'helveticab', 'helveticabi', 'helveticai', 'symbol', 'times', 'timesb', 'timesbi', 'timesi', 'zapfdingbats', 'verdana', 'verdanab'); /** * Constructor */ Link to comment Share on other sites More sharing options...
radders Posted September 26, 2009 Share Posted September 26, 2009 Actually I am using an old version - 1.2.2Maybe they have changed the file in the new version Link to comment Share on other sites More sharing options...
GS VISION Posted September 26, 2009 Author Share Posted September 26, 2009 i use 1.2.3 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