[reportlab-users] Has PageCompression changed from RL12 to RL22?

Tim Roberts timr at probo.com
Mon Oct 27 13:37:50 EDT 2008


Paolo G. Cantore wrote:

>

> Every day we are sending out several thousands of emails with an

> attachment of

> PDF documents generated with Reportlab Toolkit (PageCompression enabled).

>

> When I was trying to upgrade from version 1.20 to 2.2 our customers

> where not

> able to open the documents with Adobe Reader anymore. Only a blank

> page was

> diplayed.

>

> I had to go back to version 1.20 immediately to prevent more complaints.

>

> After a series of tests I found a possible reason. With

> PageCompression enabled

> the whole content of the document was put on a single line (length

> ~28.000 chars).

>

> But in version 1.20 the compressed content is splitted into lines with

> a length

> of 60 characters ending with ^M (x'0d' = carriage return). This worked

> fine

> for all of our customers.


Why does this matter? How are you encoding the file for attachment?
Aren't you using base64?

PDF is a binary format. Quoted-printable might work, but I would think
anything other than base64 was just asking for trouble.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list