Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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


In reply to Re: HTML::HTMLDoc -- Including a base64 img by kcott
in thread HTML::HTMLDoc -- Including a base64 img by djlerman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found