[reportlab-users] Problem printing with lulu.com

Robin Becker robin at reportlab.com
Wed Apr 14 07:23:00 EDT 2010


On 14/04/2010 12:09, Roberto Alsina wrote:

> On Wednesday 14 April 2010 07:44:31 Roberto Alsina wrote:

>> Ignore this, I am obviously using times-roman font there :-(

>

> Ok, a real test case now. If you use a table, Times-Roman pops up in the

> output. If you don't, there's only Helvetica.

>

>

>

> #!/usr/bin/env python

> # -*- coding: utf-8 -*-

>

> from reportlab.platypus import SimpleDocTemplate, Paragraph

> from reportlab.platypus.tables import *

> from reportlab.lib.styles import getSampleStyleSheet

>

> def go():

> Story=[]

> doc = SimpleDocTemplate("phello.pdf")

>

> cell=[Paragraph('A',ParagraphStyle(name='Normal',

> fontName='Helvetica',

> fontSize=10,

> leading=12)),]

> # This story has only Helvetica

> #Story=cell

> # This one has helvetica and Times-Roman

> Story=cell+[Table([[cell]])]

> doc.build(Story)

>

> go()

........
I'll take a look this afternoon. I guess style inheritance might cause the
problem or perhaps there's some default set in the Table style.
--
Robin Becker


More information about the reportlab-users mailing list