[KLUG Programming] HTMLDOC pdf dynamic scripting

Patrick McGovern programming@kalamazoolinux.org
Wed, 27 Aug 2003 12:11:21 -0400


I can provide some specific examples tomorrow.
As a base test, I put the following script in my 
document root and opened it with my browser:

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

I am quite sure I got the parse error just inside the "show_form() function with
this code "global $PHP_SELF;".  It would seem that if I can get this code to work,
I will be able to adapt it to what I need.  Can you successfully compile this code?


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


>>> bill@billtron.com 08/27/03 09:27AM >>>
Hello Patrick,

If you can get htmldoc to work from the command line it should be possible to create a web
form and run it.

The pdf-o-matic page below has a link to the source code.  Did you try that?

Otherwise, post your code and the line number of the error, the "T_STRING" error is usually
something simple with an array.

kind regards,

bill

Patrick McGovern wrote:

> 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 
>
> _______________________________________________
> Programming mailing list
> Programming@kalamazoolinux.org 
> http://www.kalamazoolinux.org/mailman/listinfo/programming 

_______________________________________________
Programming mailing list
Programming@kalamazoolinux.org 
http://www.kalamazoolinux.org/mailman/listinfo/programming