Description:
Allows you to download an entire thread in PDF format, viewable in any PDF viewer such as Adobe Acrobat or Foxit Reader.
Details:
Previously, there was a modification that performed this task however that modification is no longer supported and the backend used was seriously out-of-date and suffered from quite a few bugs. I've gone ahead and created this modification around an entirely different backend, one which works quickly and flawlessly.
Notes:
Please note, these prerequesits may already be installed on your system. If you're unsure, simply install the modification and upon usage it will inform you if something is missing.
If you happen to be fortunate enough to be using Debian, the above requirements can be installed with the following packages:
Code:
# apt-get install html2ps
Code:
# apt-get install gs-common
[hr]-[/hr] Usage:
Under "Thread Tools", simply select "Download as PDF" which will be located under "Show Printable Version". Easy, eh?
[hr]-[/hr] Installation:
Download and unzip the pdfthread101.zip archive.
Upload necessary files to their respective locations.
Import the product-pdfthread.xml via the Product Manager.
???
Profit!
Notes:
All template modifications are made automatically. They attach to pretty common text locations, so modified styles shouldn't* be a problem.
[hr]-[/hr] Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really.
Version History:
1.0.1 - Initial release, here's to hoping...
Currently Known Bugs:
None
* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I was receiving errors due to the safe mode being activated, so I wrote to my hosting company and got this response:
Quote:
Hello,
If you need Register Globals ON then you can upload
a custom php.ini file in your scripts directory to
negate this change (this means your scripts will be
vulnerable to being exploited). You can find a custom
php.ini file at the URL below with Register Globals
turned ON. Simply upload it to your scripts directory
and name it php.ini to override the change on the
server.
php.ini should be upload to the same dir where php script is placed. It
doesn't affect subdirectories.
I thought that this might help other people who are getting errors. I am attaching the php.ini file to this post. You can edit it in any text editor (I don't recommend notepad - use a better one like notepad2). Remove the .txt extension and upload it to your server.
I have installed both the softwares in my server, and fixed the path in your class file, still I get the below error. Can you guide me how to fix this?
Quote:
HTML_ToPDF Error: there was a problem running the ps2pdf command. Error code returned: 127. setDebug() for more information