[KLUG Programming] HTMLDOC pdf dynamic scripting

Patrick McGovern programming@kalamazoolinux.org
Wed, 27 Aug 2003 09:06:20 -0400


Does anyone have any perl or php scripts that will create htmldoc pdf files dynamically?

I can easily use htmldoc to create pdf's from the command line.  I need to use an html 
page to allow the user to create a pdf file of a directory of files or a single html file.
The html page would pass a "get" request via a form method to the perl or php script. 
I want to send the perl or php script the directory name of html files (documents/*)
or just the html file name (document.html).

So what I need is the html form code that will pass the dir/file name and the perl or 
php code that will create the pdf and send it to the browser.  I can't get the php 
example to work, I get a php parse error "T_STRING".  The perl examples may 
work if I can get the cgi and html form syntax correct. The following are some
links to some script examples:

http://www.wdvl.com/Authoring/Languages/Perl/PerlfortheWeb/enter_perl.html

http://www.easysw.com/htmldoc/pdf-o-matic.php

http://www.easysw.com/htmldoc/pdf-o-matic.php?source

http://www.easysw.com/htmldoc/htmldoc.html





-----------------------------------------------
Patrick Mc Govern
Gordon Food Service
IS SCM Developer
616-717-7733
pmcgover@gfs.com