Generate report containing pdf or ps figures?
Steve Holden
steve at holdenweb.com
Tue Apr 24 12:01:52 EDT 2007
Cameron Laird wrote:
> In article <132pnp6r4qg0lc2 at corp.supernews.com>,
> Grant Edwards <grante at visi.com> wrote:
>> I need to be able to generate a PDF report which consists
>> mostly of vector images (which I can generate as encapsulated
>> Postscript, PDF, or SVG). What I need is a way to combine
>> these figures into a single PDF document. Right now the
>> reports consist entire of these figures, so I just write the
>> figures out to temp files and then use os.system() to run
>> ghostscript with appropriate options to combine them into a
>> single PDF file.
>>
>> I'd like to be able to add some text and/or place the figures
>> in a manner other than one per page in the output document.
>>
>> I've looked at ReportLab's documentation, but although it
>> appears to be able to use bitmap images (e.g jpeg) it doesn't
>> appear to be able to use vector images (EPS/PDF/SVG).
>>
>> Is there a PDF generation library that can place EPS or
>> PDF figures on a page?
> .
> .
> .
> You're stuck.
>
> If I understand what you're after, you're probably going to
> end up finding a way to leverage Ghostscript. There are a
> lot of ways to move forward in this area, but GS has most of
> 'em beat, despite all its liabilities.
>
> That's my summary. I've done quite a bit in this area, and
> am happy to talk about specifics.
>
> I have two recommendations: see if anything in <URL:
> http://phaseit.net/claird/comp.text.pdf/PDF_converters.html >
> resonates with you; and e-mail the nice folks at <URL:
> http://www.pdf-tools.com/ >.
>
> I've taken the liberty of cross-posting to c.t.p. Python
> alone isn't big enough (yet) to solve your problem.
In fairness to ReportLab I'd like to say that their *commercial*
products can do everything the OP asks for and more besides, but
unfortunately they are mostly targeted at the "enterprise" (read: big
money) market.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://holdenweb.blogspot.com
More information about the Python-list
mailing list