I'm not sure of where the best place is to post this but here goes:
I am looking for some advice on printing. I have a Postgres/PHP app set up that has to (among many other things) print invoices. I am not sure what is the best way to handle formatting-related issues like printing from PHP. Right now, I just have it set up so that you print the invoice from the browser print button, and I have attempted to set CSS styles etc. to make it format properly.
Of course, given that I am not so good with CSS, I am having serious format/font compatibilty issues what with Mac vs. PC and different printers and such. I am having a big problem formatting soemthing properly such that when you fold the paper the address will end up showing in the little clear envelope window as well.
My question is, can anyone give me advice on what my strategy should be? Should I, for instance, try to generate a PDF of my invoice instead of messing with CSS and making it print from browser? Or generate some other kind of doc? Is it even possible to generate Word/PDF/whatever other doc from PHP and if so can someone point me in the right direction?
Any comments or advice would be welcomed enthusiastically.
Thanks,
Elise
Advice on printing formatted stuff...
Moderator: General Moderators