any generated PDFs are being emailed as attachments at over 512k, the first one I sent out was just 15k I think, is this common?, how do I alter it?
All of my PDFs are 512k or larger depending on the data on them. Have you added anything to the invoice like a pic/logo, some extra html code for comments, and/or paypal link. The link to my template is below and I also posted my code changes as well for those who need it.
I use http://www.simpleinvoices.org/wiki/template_-_no_labels
The issue I use to have was when they got to be 900k+ due to a NAT reflection I had with my network setup. This cause my logo to be replaced with a blank square and my paypal link didnt work. Also PDF generation was noticeably slow before i fixed this.
You need to edit the file /library/pdf/config.inc.php. Change the line
define('FONT_EMBEDDING_MODE', 'config');
to
define('FONT_EMBEDDING_MODE', 'none');
Check that it doesn't mess up your invoice layout (it shouldn't if not not using any unusual fonts). When I did this, my invoice size dropped to about 80k.
cool i will try that myself im just so us to seeing 500k especially coming from 900k+
committing the change and...
OMG that's awesome it worked like a charm. here i thought that was normal behavior. thanks a lot this is great for the bandwidth conscious. Yeah im seeing 60k files. =)
Thanks will try this soon
Great, worked fine, down to about 15-20k now, much more pro looking. thanks
@james1960
It works great lol :-} Now size is 12k and quality is the same. Thanks a lot.