News:

Support the VirtueMart project and become a member

Main Menu

Invoice is very big, > 1 mB

Started by perenboom, January 20, 2014, 10:09:07 AM

Previous topic - Next topic

perenboom

I am busy building a shop using Virtuemart.
When I place a fake order, I receive the invoice in the mail.
Strange enough the invoice is bigger then 1 mB!

Has somebody got the idea how I can reduce this to e.g. 250 kB?

jenkinhill

My invoices vary between 12Kb and 27Kb depending on the store image. Are you using a large image file?

http://forum.virtuemart.net/index.php?topic=79799.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

perenboom

There are 2 logo's use on the invoice: the shop logo: 91 kB and the shipper logo 2,24 kB.
So in total, together with some tekst, it should be like 125 kB which is acceptable for my. But not more than 1 mB.

My own invoices (I have a company) are never bigger than 250 kB (and that's a big one).

Solutions, anyone?

AH

I think you might find that even a small sized logo stored by TCPDF will create a larger than expected file
Regards
A

Joomla 4.4.5
php 8.1

reinhold

Do you use a unicode font in the config of the invoice?
TCPDF (the library used to create the PDF) always includes the full font, even if only one or two characters are actually used. Unicode fonts can be quite large...

perenboom

I have tried all 3 possibilities but with no result.
I can't imaging that I am the only one with this problem!?!