Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

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

I tried PDF::API2, CAM::PDF, and PDF::Reuse to implement an option for my existing PDF writer software to solve the task of embedding other PDFs into the file that is produced.

PDF::API2 and PDF::Reuse have problems with newer PDF versions, as stated above in this thread.
My results with CAM::PDF are good; now I am looking for a modification of this module to embed pages from other documents into pages of the generated document instead of replacing them.

Besides, PDF::Reuse should be modified to be object oriented, or at least to not export all its functions by default. It relies on internal global variables what should by taken into account when processing several files. It's well written, though.

I as well consider using ghostscript; maybe it helps downgrading newer PDFs as it helps breaking document protection - another problem you might encounter trying to append external PDFs to files your scripts create.

The PDF writer software I use is authored by myself and pretty lengthy as I basically implemented a browser in Perl, reading HTML templates, creating SQL queries from these, downloading data and images from the database (using HTTP/mod_plsql) and doing all the box layout calculation. PDF generation is finally done with PDFlib.
(Nowadays, I might favor using XSL:FO instead of doing all the calculation myself - too long a way to go.)

So post processing of PDF files maybe challenging, or require commercial software to handle them if you can't allow for PDF version limitations.


In reply to Re: State of the art of PDFs in Perl by Anonymous Monk
in thread State of the art of PDFs in Perl by mcdave

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 romping around the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found