[reportlab-users] PDFs generated by ReportLab not printing

King Simon-NFHD78 simon.king at motorola.com
Thu May 28 05:30:01 EDT 2009


Robin Becker wrote:

> King Simon-NFHD78 wrote:

> ........

> > Hi Robin,

> >

> > I can't get Acrobat Reader 9 on Linux (Ubuntu 8.10) to

> convert the 'Some

> > text in Arial Unicode MS' PDF to Postscript using "acroread

> > -toPostScript <my_pdf_file>" - it just displays the

> filename followed by

> > a colon, with no error message, and generates no postscript

> file. The

> > same command on a completely different PDF generated a

> PostScript file

> > as expected.

> >

> > Do you have a copy of Acrobat Reader on Linux that you can

> check this

> > with?

> >

> > Thanks,

> >

> > Simon

> >.......

> my colleague tried and got problems with your test pdf. We

> tried with some of

> our other pdfs using vera.ttf etc and those work.

>

> I tried the conversion on win xp and that also fails.

>

> Can you post the script that was used to make the pdf?


Phew - I was beginning to think that I was going mad. Here's the script:

#------------

from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
pdfmetrics.registerFont(TTFont('Arial Unicode MS', 'ARIALUNI.ttf'))

c = canvas.Canvas('arialtest.pdf')
c.setFont('Arial Unicode MS', 32)
c.drawString(10, 150, u"Some text in Arial Unicode MS")
c.showPage()
c.save()

#------------


I think the PDF I posted was generated with ReportLab 2.2, but I've
tested it with 2.3 and the problem still remains.

Simon


More information about the reportlab-users mailing list