In my PHP application, I have to allow the user to take the printout of invoices and reports.
Two options that I found are:
- display the report/invoice in a html page with no fancy stuff and properly ordered and thus user could print the page from the browser itself
- compose a PDF(dynamically) for the invoice/report and allow the user to download it and then print it.
Among them, which one is the better option ? Any pros and cons ?
Or any better solutions that you know ?
Thanks in advance..