Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

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

You're right, the documentation for Text::PDF is a bit terse. Word has it that it doesn't do as well writing PDF's as it does reading them. If you wanted to try, there were two modules build on top of Text::PDF -- Text::PDF::API and PDF::API2. Unfortunatly, the docs for both of them aren't much better, but one of those might "click" better for you.

However, after searching through some previous posts on the subject, here is a post by perlmonkey explaining that he had a lot of luck with PDF::Create. While it's version is 0.01, it seemed to work quite well for him. Also, the docs for that module on CPAN seem to be a bit better, they give some decent examples of how you'd write a pdf out.. and if those aren't enough, the post by perlmonkey I linked to above also contains an example of how you'd write a PDF document with PDF::Create.

Hope that helps!
-Eric

In reply to Re: Text::PDF documentation??? by andreychek
in thread Text::PDF documentation??? by k2

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 studying the Monastery: (5)
As of 2024-04-25 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found