[pmwiki-users] GeneratePDF recipe limitation

Hsing-Foo Wang hsingfoo at gmail.com
Wed Sep 6 08:10:24 CDT 2006


Oops, I was refering to PmWiki2PDF, sorry.

-HF


On 9/6/06, Hsing-Foo Wang <hsingfoo at gmail.com> wrote:
> Kathryn,
>
> Not a real answer but maybe it will boost up your hope. I encountered
> the same issue about a year ago. I do not control that setup anymore,
> but I managed to get pictures working. By hart I believe I had to hack
> a simple thing into the sourcecode, and I blieve this 'hack' was
> mentioned on the pmwiki recipe pages somewhere.
>
> HTH
>
> -HF
>
>
> On 9/6/06, Kathryn Andersen <kat_lists at katspace.homelinux.org> wrote:
> > 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
> >
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >
>




More information about the pmwiki-users mailing list