[reportlab-users] Reportlab under Zope 3

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Sep 26 10:51:22 EDT 2007


On Wednesday 26 September 2007 03:08, Andy Robinson wrote:

> On 26/09/2007, Michael A Rowley, MD

>

> <michael at westmarionfamilymedicine.com> wrote:

> > Hello all,

> >

> > Does anyone know of a Zope project that uses reportlab to produce

> > documents, specifically one that uses the Zope unittest to test the

> > produced pdf files.

>

> I am not aware of anything.

>

> If you want to test correctness of the generated PDF (e.g. "I expect

> this file to contain 6 pages and the account number text to appear on

> page 6"), we don't actually release our PDF parser as open source, so

> I doubt there are many people actually pulling the files apart and

> verifying the contents in unit tests.


Hi Andy,

you should know about one. I told you that I wrote one for z3c.rml. All my
generated PDF files are tested against an expected set using conversion from
PDF to PNG files. First I thought this would be brittle, but as long as you
use the same tool to generate the PNG, it works remarkably well.

http://svn.zope.org/z3c.rml/trunk/src/z3c/rml/tests/

Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the reportlab-users mailing list