[pmwiki-users] GeneratePDF recipe limitation
Patrick R. Michaud
pmichaud at pobox.com
Fri Sep 22 11:02:39 CDT 2006
On Fri, Sep 22, 2006 at 02:55:11PM +1000, Kathryn Andersen wrote:
> On Thu, Sep 07, 2006 at 08:53:47PM -0500, Patrick R. Michaud wrote:
> > On Wed, Sep 06, 2006 at 06:31:44PM +1000, Kathryn Andersen wrote:
> > > 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.
> > I've updated the recipe, see
> > http://www.pmwiki.org/wiki/Cookbook/GeneratePDF
> > http://www.pmwiki.org/wiki/Cookbook/GeneratePDF?action=pdf
> > Essentially there are some additional arguments that need to be
> > passed to htmldoc to get it to work, and an environment variable
> > needs to be set.
> What environment variable?
> Comparaing the two, it just looks as if the arguments to htmldoc have
> changed, and that's all.
Oops! It looks as though I forgot to update the attachment in the
Cookbook, it's added now.
> Okay, I think I've found a clue or two. The image files in question are
> *uploaded* images (with Attach:). The examples being used in, say, the
> GeneratePDF page, were all absolute http:// image links.
> But with Attached images, the URL depends on the $PubDirUrl and
> $UploadUrlFmt values -- which in my case were relative, not absolute.
Ahhhh, I see. Yes, when I change the image on Cookbook.GeneratePDF
to use Attach:, it fails on pmwiki.org as well.
Hmm. Seems like there ought to be an option to htmldoc
to tell it the base url for any relative urls it finds in the
input, but I can't seem to find one.
More information about the pmwiki-users