Jump to content
Sign in to follow this  
GS VISION

PDF with different encoding

Recommended Posts

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 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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');

Share this post


Link to post
Share on other sites

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
   */

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More