I am working on a PHP application and there is a link by which Invoice Preview can be seen and it is dynamically generated. There will be an option in this preview to convert it into PDF. I am trying to find a php class or script which will easily covert the invoice preview page into PDF without any additional coding efforts. Thanks
FOP was built just for this, and if you use a standard template (hint: use 2, one with a large "PREVIEW" pasted on it, and the proper one without) but it can be a PITA to get working if you havent used it before. Ideally you let them see the preview, then pass in the same page to an RPC or similar request for their actual PDF. FPDF is also "ok" too, but you will need to rework some things; http://www.fpdf.org/ Failing that, PDFlib. http://www.fpdf.org/