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

Roberto Alsina ralsina at netmanagers.com.ar
Mon Aug 24 10:38:11 EDT 2009


On Monday 24 August 2009 11:32:38 Peter wrote:

> > 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...


It was a StringIO which I think uses cStringIO if it's available, and python
2.6.

Anyway, it's not worth the problem even to debug unless you really, really,
really want to avoid creating a tempfile (say, if you are in google app
engine).

--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)


More information about the reportlab-users mailing list