[reportlab-users] Problem with embedded font, help needed

Peter peter at maubp.freeserve.co.uk
Mon Aug 24 10:32:38 EDT 2009


On Mon, Aug 24, 2009 at 3:17 PM, Roberto
Alsina<ralsina at netmanagers.com.ar> wrote:

>

> On Sunday 23 August 2009 19:32:48 Roberto Alsina wrote:

>> Hello, this is slightly offtopic because I can't reproduce this problem

>> using only reportlab, but I am at my wits end and this is the only list I

>> know with people who know about PDF files :-(

>>

>> Basically: on some RARE occasions, which I can't isolate yet,

>> sphinx+rst2pdf will produce, via reportlab, a PDF with a font that's not

>> embedded correctly, and then the file has no visible text in it.

>

> After three days of losing hair, I fixed it. And it **may** be useful for

> someone else in the future:

>

> DO NOT TRY TO SAVE A PDF TO A STRINGIO.

>

> It looks like it works, it gives no errors, and then it **may** strip the high

> bits of some pieces of the file, breaking it in unpredictable ways.

>

> That's all :-)


Was that using StringIO or cStringIO? It might also be Python version
or even OS dependent...

Peter


More information about the reportlab-users mailing list