Jumat, 05 September 2008

PDF with PHP & Ghostcript

This article was written with the aim of facilitating the conversion of the HTML format to the format of PDF. Setelah tried various solution sorts, the writer found that by using Ghostscript, you will save a lot of your time compared with used PDFLib or FPDF and the like. Before beginning, please luangkan your time to provide programs that were needed as follows:

* Apache & PHP (with GD Extension) you could use the XAMPP package any version that could you download in http://www.apachefriends.org to facilitate the process of the installation.

* Ghostscript Arahkan browser you to the address http://pages.cs.wisc.edu/~ghost/and download the newest version. When this article was written, the newest version to windows was 8,61 whereas for Linux was 8,62. To Linux usually Ghostscript already diinstalasi in a default manner by distro that was used by you.

* html2ps to PHP Be script PHP that was used as the mediator between PHP and Ghostscript. You could mendownload this script in the address http://www.tufat.com/s html2ps html2pdf.htm

Tidak ada komentar: