| 1 |
lars |
1 |
SYSTEM REQUIREMENTS
|
|
|
2 |
|
|
|
3 |
Required:
|
|
|
4 |
- PHP 4.1.0 or newer (PHP 5 supported too)
|
|
|
5 |
- native _OR_ Active-Link DOM XML extension installed
|
|
|
6 |
|
|
|
7 |
Recommended:
|
|
|
8 |
- 'gzlib' PHP extension
|
|
|
9 |
- 'iconv' PHP extension
|
|
|
10 |
|
|
|
11 |
In order to view generated postscript files, you'll need some PS-handling software
|
|
|
12 |
installed on the client computer. Ghostscript (7.05 or newer) and GSView are good
|
|
|
13 |
examples. Also, you can convert posctscript files to PDF using Adobe Acrobat Distiller.
|
|
|
14 |
|
|
|
15 |
Additionally, following requirements should be met to convert generated PS to
|
|
|
16 |
PDF server-side:
|
|
|
17 |
- 'ghostscript' package (version 7.05 or newer)
|
|
|
18 |
- 'ghostscript-fonts' package
|
|
|
19 |
- PHP 'exec' function should be enabled (so, PDF conversion will not work in
|
|
|
20 |
php 'safe mode')
|
|
|
21 |
|
|
|
22 |
FONTS
|
|
|
23 |
|
|
|
24 |
--- Using non-standard fonts in PostScript (Ghostscript)
|
|
|
25 |
|
|
|
26 |
First of all, you'll need TrueType-compatible Ghostscript (most of them do)
|
|
|
27 |
|
|
|
28 |
--- Using non-standard fonts in PostScript (Adobe Acrobat)
|
|
|
29 |
--- Using non-standard fonts in PDF
|
|
|
30 |
If you're using server-side Postscript to PDF conversion
|
|
|
31 |
|
|
|
32 |
For the details regarding installation of TrueType fonts with Ghostscript see:
|
|
|
33 |
http://www.cs.wisc.edu/~ghost/doc/gnu/7.05/Fonts.htm
|
|
|
34 |
|
|
|
35 |
JAVASCRIPT & DHTML
|
|
|
36 |
|
|
|
37 |
No, not supported.
|
|
|
38 |
|
|
|
39 |
PHP EXTENSIONS ISSUES
|
|
|
40 |
|
|
|
41 |
Native PHP XML extesions is HIGHLY recommended. Active-Link extension
|
|
|
42 |
lack several important features, which can cause processing to fail
|
|
|
43 |
on miscellanous HTML samples.
|
|
|
44 |
|
|
|
45 |
ADOBE ACROBAT COMPATIBILITY ISSUES
|
|
|
46 |
|
|
|
47 |
The script is configured to work with the Ghostscript out-of-the-box.
|
|
|
48 |
As GS and Adobe Acrobat use different font names, you'll need to
|
|
|
49 |
change .html2ps.config to match them.
|
|
|
50 |
|
|
|
51 |
IMAGE ISSUES
|
|
|
52 |
|
|
|
53 |
In general, image processing is the weakest part of the script; all images
|
|
|
54 |
are processed in pure PHP, making
|
|
|
55 |
|
|
|
56 |
COMPRESSION ISSUES
|
|
|
57 |
|
|
|
58 |
By default, script tries to compress generated Poscript. Compressed Postscript
|
|
|
59 |
is 4-5 times less in volume than uncompressed, and most Postscript-related software
|
|
|
60 |
understands it.
|
|
|
61 |
|
|
|
62 |
You'll need gzlib PHP extension installed to generate compressed postscript.
|
|
|
63 |
Script detects the presence of gzlib at run-time, so you do not need to change
|
|
|
64 |
anything in configuration files or specify any additional parameters to use
|
|
|
65 |
compression ability.
|
|
|
66 |
|
|
|
67 |
Unfortunately, Adobe Acrobat Distiller does not support compressed postscript.
|
|
|
68 |
In this case, you have only the following options:
|
|
|
69 |
1. Uncompress the file manually (all modern achivers do - WinZip, WinRar, 7-Zip etc) and
|
|
|
70 |
feed it to the Distiller.
|
|
|
71 |
Pro: Smaller file size - less traffic and download time.
|
|
|
72 |
Contra: you'll need to do by your hands, wasting your time.
|