Blame | Letzte Änderung | Log anzeigen | RSS feed
SYSTEM REQUIREMENTSRequired:- PHP 4.1.0 or newer (PHP 5 supported too)- native _OR_ Active-Link DOM XML extension installedRecommended:- 'gzlib' PHP extension- 'iconv' PHP extensionIn order to view generated postscript files, you'll need some PS-handling softwareinstalled on the client computer. Ghostscript (7.05 or newer) and GSView are goodexamples. Also, you can convert posctscript files to PDF using Adobe Acrobat Distiller.Additionally, following requirements should be met to convert generated PS toPDF server-side:- 'ghostscript' package (version 7.05 or newer)- 'ghostscript-fonts' package- PHP 'exec' function should be enabled (so, PDF conversion will not work inphp 'safe mode')FONTS--- Using non-standard fonts in PostScript (Ghostscript)First of all, you'll need TrueType-compatible Ghostscript (most of them do)--- Using non-standard fonts in PostScript (Adobe Acrobat)--- Using non-standard fonts in PDFIf you're using server-side Postscript to PDF conversionFor the details regarding installation of TrueType fonts with Ghostscript see:http://www.cs.wisc.edu/~ghost/doc/gnu/7.05/Fonts.htmJAVASCRIPT & DHTMLNo, not supported.PHP EXTENSIONS ISSUESNative PHP XML extesions is HIGHLY recommended. Active-Link extensionlack several important features, which can cause processing to failon miscellanous HTML samples.ADOBE ACROBAT COMPATIBILITY ISSUESThe script is configured to work with the Ghostscript out-of-the-box.As GS and Adobe Acrobat use different font names, you'll need tochange .html2ps.config to match them.IMAGE ISSUESIn general, image processing is the weakest part of the script; all imagesare processed in pure PHP, makingCOMPRESSION ISSUESBy default, script tries to compress generated Poscript. Compressed Postscriptis 4-5 times less in volume than uncompressed, and most Postscript-related softwareunderstands it.You'll need gzlib PHP extension installed to generate compressed postscript.Script detects the presence of gzlib at run-time, so you do not need to changeanything in configuration files or specify any additional parameters to usecompression ability.Unfortunately, Adobe Acrobat Distiller does not support compressed postscript.In this case, you have only the following options:1. Uncompress the file manually (all modern achivers do - WinZip, WinRar, 7-Zip etc) andfeed it to the Distiller.Pro: Smaller file size - less traffic and download time.Contra: you'll need to do by your hands, wasting your time.