Drawing in PDF

Grant Edwards grante at visi.com
Tue Jun 30 13:19:13 CEST 2009


On 2009-06-30, Eduardo Lenz <lenz at joinville.udesc.br> wrote:
> Em Seg 29 Jun 2009, às 20:39:22, Lawrence D'Oliveiro escreveu:
>> In message <b4daf01a-50e9-4038-9db0-
>>
>> d7fe56d0593f at g19g2000yql.googlegroups.com>, Jun wrote:
>> > ... is there open source solution ?
>>
>> Poppler?
>
> pypdf -- http://pybrary.net/pyPdf/
>
>
> A Pure-Python library built as a PDF toolkit. It is capable of:
>
>     * extracting document information (title, author, ...),
>     * splitting documents page by page,
>     * merging documents page by page,
>     * cropping pages,
>     * merging multiple pages into a single page,
>     * encrypting and decrypting PDF files.

While it may be a pure-python library, the problem is that
AFAICT it doesn't actually solve the problem at hand.  The
requirement is to "draw" on the pages of an existing PDF
document (add annotations).

> By being Pure-Python, it should run on any Python platform
> without any dependencies on external libraries. It can also
> work entirely on StringIO objects rather than file streams,
> allowing for PDF manipulation in memory. It is therefore a
> useful tool for websites that manage or manipulate PDFs.

True, but does it allow you to add text/lines/etc. to a page?

-- 
Grant




More information about the Python-list mailing list