Jump to content

PDF-Invoice very large after Upgrade


plumsl

Recommended Posts

Hi,

after Upgrade tu 4.2.1 and moving to another folder (whmcs is still working)

the size of the invoice-file is larger than 500kB (before 70 k).

also the charakters are very frayed/unsharp/unclear/blurred (right word?)

 

What could be the cause/reason?

 

thanks for some ideas!

 

Plumsl

Link to comment
Share on other sites

Problem solved!

 

I use the tcpdf.php (in the /includes -dir) from version 4.1.2

sure, it's quick 'n dirty but it works!

 

nevertheless I'm interested abut the reason.

if somebody has a solution .... ?!

 

plumsl

Link to comment
Share on other sites

  • 2 weeks later...
  • WHMCS CEO

This must be due to the change of font. The previous default font only worked with certain characters and the new font works for a lot more, but is therefore larger. The old font is still included so to use that again, simply open includes/tcpdf.php and replace line 3263:

 

$family = (strtolower($CONFIG["Charset"])=="utf-8") ? "freesans" : "helvetica"; # Pick font based on charset

 

with this:

 

$family = "helvetica";

 

Matt

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

I am using the latest version (4.2) and have the same issues. The font line replacement worked for filesize but the logo image still looks blurry and unprofessional

 

How can we fix the logo from blurring? the source image is perfect its somehow being altered by the invoice

 

Vin

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 1 month later...

WHMCS System Requirements: PHP Version 5.x or later

tcpdf.php is still version 4.6.016_PHP4

I update to version 5.9.055 TCPDF without some problems and now my PDF files not larger end 35 KB

I update because I will try to get it to work with the FPDF and FPDI so I can use a PDF template

Link to comment
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated