html2ps/html2pdf installation notes

# html2ps/pdf installation notes

Back to table of contents

To install HTML2PS, follow these simple steps:

1. Unpack zip package contents to some directory on your web server
2. Edit config.inc.php to suit your needs; most probably you'll need to update values of GS_PATH and TYPE1_FONTS_REPOSITORY constants
3. Ensure script files and directories have correct permissions:
   - All files and folders should be readable by webserver user account
   - Directories 'out','tmp' and 'cache' should be writeable by webserver user account
   - If you're going to use FPDF output method, please copy .ttf files from your Windows distribution (or any other source) to fonts subdirectory! Due the size of TrueType fonts files, they're not distibuted with the scripts, but still needed by some output methods.

Important: if you're upgrading from older script version, remove all files from 'cache' subdirectory!

# Warning:

The default distribution includes several sample script files and script web interface; they may be easily used for DoS attack on your server! It is highly recommended that you remove 'sample' and 'demo' subdirectories from publicly available script installation.