Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: HTML::HTMLDoc -- Including a base64 img

by kcott (Archbishop)
on Apr 08, 2014 at 20:19 UTC ( [id://1081554]=note: print w/replies, xml ) Need Help??


in reply to HTML::HTMLDoc -- Including a base64 img

G'day djlerman,

I ran a few tests:

  • Your HTML (<html>...</html>) by itself renders with an image.
  • Your code, as written, generates PDF without an image: I tried with both piping to xpdf and redirecting to a file and opening that file with two different PDF viewers.
  • I saved the image (from the base64 data) generated in the pure HTML test as a JPEG file and used that filename in the src attribute in your code: the generated PDF still had no image.
  • I also tried replacing the to_string() method with the to_file() method: again, PDF had no image.

There are 22 new/open bugs (raised at various times over the last decade): Active bugs for HTML-HTMLDoc.

The current version (0.10) was written 9 years ago. There was a developer release (0.11_01) 5 years ago. Here's a list of releases.

Maintainance of this module appears to have been abandoned. The author didn't even reply to this (from 5 years ago): Bug #47649 for HTML-HTMLDoc: Question about maintenance for HTML::HTMLDoc.

You can raise a bug report but I wouldn't hold my breath waiting for a fix.

In your situation, I'd probably be looking for an alternative solution that didn't involve this module.

-- Ken

Replies are listed 'Best First'.
Re^2: HTML::HTMLDoc -- Including a base64 img
by djlerman (Sexton) on Apr 10, 2014 at 18:51 UTC

    Thank You!!!

    This is amazingly helpful and I'm sure it will come it handy to others as well.

    ~Donavon

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1081554]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found