[pmwiki-users] GeneratePDF recipe limitation

Kathryn Andersen kat_lists at katspace.homelinux.org
Wed Sep 6 03:31:44 CDT 2006

I am using GeneratePDF http://www.pmwiki.org/wiki/Cookbook/GeneratePDF
on our Wiki at work.  I didn't use PublishPDF because it seems much more
difficult to set up, since we run behind a firewall and thus would have
to set up our own server, and I tried and I gave up.  Using the
generatepdf.php plus installing htmldoc was much simpler.

Unfortunately, I've just discovered a limitation with generatepdf -- it
doesn't handle images.  If there is an image on the page, it isn't
included in the generated PDF.

Since htmldoc itself handles images correctly when you pass it a URL, I
took a gander at the generatepdf.php file and... it seems that it grabs
the HTML, puts it in a temporary file, and passes that to htmldoc.
Which of course loses the images.

Since htmldoc can take a URL as an argument, would there be some way of
making it work that way?

I tried just doing

        header("Content-type: application/pdf");
        passthru("$HtmlToPdfCmd $PageUrl");

but it didn't work.

Since it was written by PM, I thought I'd send an appeal here.  Is there
any way of making this recipe deal with images correctly?

Kathryn Andersen
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe

More information about the pmwiki-users mailing list