I know the feeling :/ Generally speaking, PDF::API2 is powerful but old and of poor quality, while CAM::PDF is clean but slow and lacks features. Specifically, CAM::PDF eagerly loads the whole file in memory before anything else, while more advanced libraries like PDF::API2 take a lazy and more efficient approach.

The truth is, the PDF specification is 1300+ pages and growing. I don't think any of these packages is ever going to implement it fully and correctly, while still providing additional abstraction layers and tests (workload x2) and a comprehensive documentation (workload x3).

PDF::API2 is on the right path as far as code structure goes, but has no tests (assume it's broken ;-) and its meager documentation requires that you know the PDF specs already. On the other hand, the CAM::API2 code is of much higher quality (tests, docs) while less advanced, and the library as a whole is begging for a redesign (106 methods in the one public class, yuck). Volunteers, anyone? :-)


In reply to Re^3: PDF::API2 importpage problem by waba
in thread PDF::API2 importpage problem by leocharre

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.