From reportlab-users@reportlab.com Sat Nov 1 23:57:24 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sat, 1 Nov 2003 15:57:24 -0800 (PST)
Subject: [reportlab-users] i am asking again about the arabic thing, on the hope that anyone might reply back
In-Reply-To: <20031031221538.95960.qmail@web60003.mail.yahoo.com>
Message-ID: <20031101235724.43142.qmail@web60001.mail.yahoo.com>
--0-206372036-1067731044=:41469
Content-Type: text/plain; charset=us-ascii
hi there,
ok , noone replied my perviuos question, i hope that anyone replies this one.
i tried the code of ttf part in the user guide of reportlab (incase u don't know, the rina ttf), there were no error , and at the same time, no pdf was generated, does anyone know why?
sam ellawindy
ps, this is the code
# we know some glyphs are missing, suppress warnings
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
canvas.setFont(Rina, 32)
canvas.drawString(10, 150, "Some text encoded in UTF-8")
canvas.drawString(10, 100, "In the Rina TT Font!")
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-206372036-1067731044=:41469
Content-Type: text/html; charset=us-ascii
hi there,
ok , noone replied my perviuos question, i hope that anyone replies this one.
i tried the code of ttf part in the user guide of reportlab (incase u don't know, the rina ttf), there were no error , and at the same time, no pdf was generated, does anyone know why?
sam ellawindy
ps, this is the code
# we know some glyphs are missing, suppress warnings
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
canvas.setFont(Rina, 32)
canvas.drawString(10, 150, "Some text encoded in UTF-8")
canvas.drawString(10, 100, "In the Rina TT Font!")
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-206372036-1067731044=:41469--
From reportlab-users@reportlab.com Sun Nov 2 00:03:51 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Sun, 2 Nov 2003 01:03:51 +0100
Subject: [reportlab-users] i am asking again about the arabic thing, on the hope that anyone might reply back
In-Reply-To: <20031101235724.43142.qmail@web60001.mail.yahoo.com>
References: <20031031221538.95960.qmail@web60003.mail.yahoo.com> <20031101235724.43142.qmail@web60001.mail.yahoo.com>
Message-ID: <20031102000351.GD12420@mail.librelogiciel.com>
On Sat, Nov 01, 2003 at 03:57:24PM -0800, sarah el-lawindy wrote:
>
> hi there,
> ok , noone replied my perviuos question, i hope that anyone replies this one.
> i tried the code of ttf part in the user guide of reportlab (incase u don't know, the rina ttf), there were no error , and at the same time, no pdf was generated, does anyone know why?
>
> sam ellawindy
>
> ps, this is the code
>
> # we know some glyphs are missing, suppress warnings
> import reportlab.rl_config
> reportlab.rl_config.warnOnMissingFontGlyphs = 0
> from reportlab.pdfbase import pdfmetrics
> from reportlab.pdfbase.ttfonts import TTFont
> pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
> canvas.setFont(Rina, 32)
> canvas.drawString(10, 150, "Some text encoded in UTF-8")
> canvas.drawString(10, 100, "In the Rina TT Font!")
your code is incomplete.
you should add (from memory) :
from reportlab.pdfgen import canvas
canvas = canvas.Canvas()
... your code here
canvas.showPage()
canvas.save()
hth
Jerome Alet
From reportlab-users@reportlab.com Sun Nov 2 00:15:23 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sat, 1 Nov 2003 16:15:23 -0800 (PST)
Subject: [reportlab-users] i am asking again about the arabic thing, on the hope that anyone might reply back
In-Reply-To: <20031102000351.GD12420@mail.librelogiciel.com>
Message-ID: <20031102001523.15001.qmail@web60005.mail.yahoo.com>
--0-1494415388-1067732123=:14817
Content-Type: text/plain; charset=us-ascii
mr Jerome Alet,
really thank u for ur fast reply, i did ur modification in the code but it did not work 2, any other options.
sam ellawindy
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1494415388-1067732123=:14817
Content-Type: text/html; charset=us-ascii
mr Jerome Alet,
really thank u for ur fast reply, i did ur modification in the code but it did not work 2, any other options.
sam ellawindy
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1494415388-1067732123=:14817--
From reportlab-users@reportlab.com Sun Nov 2 00:29:14 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Sun, 2 Nov 2003 01:29:14 +0100
Subject: [reportlab-users] i am asking again about the arabic thing, on the hope that anyone might reply back
In-Reply-To: <20031102001523.15001.qmail@web60005.mail.yahoo.com>
References: <20031102000351.GD12420@mail.librelogiciel.com> <20031102001523.15001.qmail@web60005.mail.yahoo.com>
Message-ID: <20031102002914.GE12420@mail.librelogiciel.com>
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Sat, Nov 01, 2003 at 04:15:23PM -0800, sarah el-lawindy wrote:
>
> really thank u for ur fast reply, i did ur modification in the
> code but it did not work 2, any other options.
The very simple attached program creates a PDF document called "hello.pdf"
It works. Modify it to add your code.
bye,
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="testprog.py"
from reportlab.pdfgen import canvas
c = canvas.Canvas("hello.pdf")
c.drawString(300, 300, "Hello")
c.showPage()
c.save()
--AqsLC8rIMeq19msA--
From reportlab-users@reportlab.com Sun Nov 2 01:21:59 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sat, 1 Nov 2003 17:21:59 -0800 (PST)
Subject: [reportlab-users] still no working
In-Reply-To: <20031102002914.GE12420@mail.librelogiciel.com>
Message-ID: <20031102012159.55962.qmail@web60001.mail.yahoo.com>
--0-1564262061-1067736119=:53184
Content-Type: text/plain; charset=us-ascii
hi again,
i know that this piece of code works well,it is in the guide and i tried and it worked with, but it did not work with the piece of code i send u before, no error, and no pdfs as well.
what i mean
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas("hello.pdf")
pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
c.setFont(Rina, 32)
c.drawString(10, 150, "Some text encoded in UTF-8")
c.drawString(10, 100, "In the Rina TT Font!")
did not generate a pdf file, although there is no error ..
i hope u got what i mean ..
thanks for ur concern
sam ellawindy
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1564262061-1067736119=:53184
Content-Type: text/html; charset=us-ascii
hi again,
i know that this piece of code works well,it is in the guide and i tried and it worked with, but it did not work with the piece of code i send u before, no error, and no pdfs as well.
what i mean
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas("hello.pdf")
pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
c.setFont(Rina, 32)
c.drawString(10, 150, "Some text encoded in UTF-8")
c.drawString(10, 100, "In the Rina TT Font!")
did not generate a pdf file, although there is no error ..
i hope u got what i mean ..
thanks for ur concern
sam ellawindy
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1564262061-1067736119=:53184--
From reportlab-users@reportlab.com Sun Nov 2 08:22:11 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Sun, 2 Nov 2003 09:22:11 +0100
Subject: [reportlab-users] still no working
In-Reply-To: <20031102012159.55962.qmail@web60001.mail.yahoo.com>
References: <20031102002914.GE12420@mail.librelogiciel.com> <20031102012159.55962.qmail@web60001.mail.yahoo.com>
Message-ID: <20031102082211.GB15507@mail.librelogiciel.com>
On Sat, Nov 01, 2003 at 05:21:59PM -0800, sarah el-lawindy wrote:
>
> hi again,
>
> i know that this piece of code works well,it is in the guide and i tried and it worked with, but it did not work with the piece of code i send u before, no error, and no pdfs as well.
>
> what i mean
>
> import reportlab.rl_config
> reportlab.rl_config.warnOnMissingFontGlyphs = 0
> from reportlab.pdfbase import pdfmetrics
> from reportlab.pdfbase.ttfonts import TTFont
> from reportlab.pdfgen import canvas
> c = canvas.Canvas("hello.pdf")
> pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
> c.setFont(Rina, 32)
> c.drawString(10, 150, "Some text encoded in UTF-8")
> c.drawString(10, 100, "In the Rina TT Font!")
>
> did not generate a pdf file, although there is no error ..
>
> i hope u got what i mean ..
I'm sorry but again the code you are showing miss the c.save() call,
and so no PDF file is generated.
If the above code is the integrality of your code, then add c.save()
at the end and the file will be generated.
Also the setFont call causes an error, because Rina should be enclosed
between quotes.
Also did you put the complete path to the rina.ttf file or copy the
file in your current directory ?
The following works fine here :
--- CUT ---
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas("hello.pdf")
pdfmetrics.registerFont(TTFont('Rina', 'rina.ttf'))
c.setFont("Rina", 32)
c.drawString(10, 150, u"Some text encoded in UTF-8")
c.drawString(10, 100, u"In the Rina TT Font!")
c.showPage()
c.save()
--- CUT ---
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Sun Nov 2 18:47:52 2003
From: reportlab-users@reportlab.com (Dirk Datzert)
Date: Sun, 02 Nov 2003 19:47:52 +0100
Subject: [reportlab-users] BubbleCharts ?
Message-ID: <3FA55158.B377953E@rasselstein-hoesch.de>
Hi all,
I saw in the lineplot.py and axes.py private variables called
_bubblePlot, _bubbleRadius, _bubbleMax.
Can anybody give me a description how-to fill these values ?
I thing that with these variables BubbleCharts are possible ?
Regards,
Dirk
From reportlab-users@reportlab.com Sun Nov 2 20:29:09 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Sun, 2 Nov 2003 20:29:09 +0000
Subject: [reportlab-users] BubbleCharts ?
In-Reply-To: <3FA55158.B377953E@rasselstein-hoesch.de>
References: <3FA55158.B377953E@rasselstein-hoesch.de>
Message-ID:
In article <3FA55158.B377953E@rasselstein-hoesch.de>, Dirk Datzert
writes
>Hi all,
>
>I saw in the lineplot.py and axes.py private variables called
>_bubblePlot, _bubbleRadius, _bubbleMax.
>
>Can anybody give me a description how-to fill these values ?
>I thing that with these variables BubbleCharts are possible ?
>
>Regards,
>Dirk
.....this should get you started Dirk
[ Section: 1/1 File: tbubble.py UUencoded by: Turnpike Integrated Version 5.01 U ]
begin 644 tbubble.py
M(T%U=&]G96YE
This is a multi-part message in MIME format.
--------------090301010501010103030403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi again,
I've got what I thought was a problem with the vertical alignment in the
table, but it seems that it's got more to do with the paragraph.
I've got a small paragraph, usually 1 word, with point size about 24. It
looks fine on it's own, but when I put it in a table with the cells
aligned to the bottom, the text constantly is too low, and 'leaks' into
the cell below, despite the fact that there's plenty of place on the
top. I noticed that if I set the background colour to something like
blue, the space it takes up is far less than the size of the text in it.
And that the top of the text is in vertically in the middle of the
paragraph.
I've added the following styles to the sample sheet:
self.stylesheet.add(styles.ParagraphStyle(name='defaultStyle',
parent=self.stylesheet['Normal'],
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='ticketstyle')
self.stylesheet.add(styles.ParagraphStyle(name='Barcode',
parent=self.stylesheet['Normal'],
fontName = 'Barcode',
fontSize = 18,
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='barcode')
self.stylesheet.add(styles.ParagraphStyle(name='defaultHeaderStyle',
parent=self.stylesheet['Normal'],
fontName = 'Times-Bold',
fontSize=18,
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='ticketheader')
The style I've used for the table:
def LargeTableStyle():
return TableStyle([ #\
('GRID', (0,0), (-1,-1), 0.5, colors.black), \
('VALIGN', (0,0), (-1,-1), 'MIDDLE'), \
])
The code I've used to generate the table:
tableBlock = [[Paragraph(ticketData['ARTICLE'],
self.stylesheet['Barcode']),
Paragraph(ticketData['DESCRIPTION'],self.stylesheet['defaultHeaderStyle'])],
\
[Paragraph(ticketData['ARTICLE'],self.stylesheet['defaultHeaderStyle']),
Paragraph(ticketData['COL'],self.stylesheet['defaultHeaderStyle'])]]
tBlock0 = Table(tableBlock, style=LargeTableStyle(), colWidths
= [8*cm, 8*cm], rowHeights=[10*mm, 10*mm], repeatRows=0)
tBlock0.hAlign = "LEFT"
Story.append(tBlock0)
And I've attached what comes out.
I've got a small question about tables too, mine don't seem to be
calculating the size of the cell properly when I add a paragraph, or,
actually, if I think about it, it may be calculating the size fine, but
it would tie in to the problem I've mentioned above.
Thanks for any help,
Shayan
--------------090301010501010103030403
Content-Type: application/pdf;
name="ticketprint.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="ticketprint.pdf"
CiAgICAgIDxodG1sPgogICAgICA8aGVhZD4KICAgICAgPHRpdGxlPkZhbGtlIFRpY2tldCBN
YW5hZ2VtZW50PC90aXRsZT4KICAgICAgPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBl
IiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9aXNvLTg4NTktMSI+CiAgICAgIDxMSU5L
IFJFTD0ic3R5bGVzaGVldCIgVFlQRT0idGV4dC9jc3MiIEhSRUY9Ii9jc3MvZGVmYXVsdC5j
c3MiPgogICAgICA8TElOSyBSRUw9InN0eWxlc2hlZXQiIFRZUEU9InRleHQvY3NzIiBIUkVG
PSIvY3NzL3BsYWlubGlua3MuY3NzIj4KICAgICAgPC9oZWFkPjxib2R5IGJnY29sb3I9IiNm
ZmZmZmYiPgogICAgICA8aDE+RmFsa2UgVGlja2V0IE1hbmFnZW1lbnQ8L2gxPiVQREYtMS4z
DQolk4yLniBSZXBvcnRMYWIgR2VuZXJhdGVkIFBERiBkb2N1bWVudCBodHRwOi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W5m
byAxMSAwIFINCiAvUm9vdCAxMCAwIFINCiAvU2l6ZSAxNyA+Pg0Kc3RhcnR4cmVmDQo3Mzgy
DQolJUVPRg0KPC9ib2R5PgogICAgICA8L2h0bWw+CiAgICAgIA==
--------------090301010501010103030403--
From reportlab-users@reportlab.com Mon Nov 3 12:06:46 2003
From: reportlab-users@reportlab.com (S Raghavjee)
Date: Mon, 03 Nov 2003 14:06:46 +0200
Subject: [reportlab-users] Paragraph sizing issue and a small table query
Message-ID: <3FA644D6.2030401@mweb.co.za>
This is a multi-part message in MIME format.
--------------070206050001000208080804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi again,
I've got what I thought was a problem with the vertical alignment in the
table, but it seems that it's got more to do with the paragraph.
I've got a small paragraph, usually 1 word, with point size about 24. It
looks fine on it's own, but when I put it in a table with the cells
aligned to the bottom, the text constantly is too low, and 'leaks' into
the cell below, despite the fact that there's plenty of place on the
top. I noticed that if I set the background colour to something like
blue, the space it takes up is far less than the size of the text in it.
And that the top of the text is in vertically in the middle of the
paragraph.
I've added the following styles to the sample sheet:
self.stylesheet.add(styles.ParagraphStyle(name='defaultStyle',
parent=self.stylesheet['Normal'],
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='ticketstyle')
self.stylesheet.add(styles.ParagraphStyle(name='Barcode',
parent=self.stylesheet['Normal'],
fontName = 'Barcode',
fontSize = 18,
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='barcode')
self.stylesheet.add(styles.ParagraphStyle(name='defaultHeaderStyle',
parent=self.stylesheet['Normal'],
fontName = 'Times-Bold',
fontSize=18,
backColor=colors.blue,
alignment=TA_CENTER,
spaceAfter=0),
alias='ticketheader')
The style I've used for the table:
def LargeTableStyle():
return TableStyle([ #\
('GRID', (0,0), (-1,-1), 0.5, colors.black), \
('VALIGN', (0,0), (-1,-1), 'MIDDLE'), \
])
The code I've used to generate the table:
tableBlock = [[Paragraph(ticketData['ARTICLE'],
self.stylesheet['Barcode']),
Paragraph(ticketData['DESCRIPTION'],self.stylesheet['defaultHeaderStyle'])],
\
[Paragraph(ticketData['ARTICLE'],self.stylesheet['defaultHeaderStyle']),
Paragraph(ticketData['COL'],self.stylesheet['defaultHeaderStyle'])]]
tBlock0 = Table(tableBlock, style=LargeTableStyle(), colWidths = [8*cm,
8*cm], rowHeights=[10*mm, 10*mm], repeatRows=0)
tBlock0.hAlign = "LEFT"
Story.append(tBlock0)
And I've attached what comes out.
I've got a small question about tables too, mine don't seem to be
calculating the size of the cell properly when I add a paragraph, or,
actually, if I think about it, it may be calculating the size fine, but
it would tie in to the problem I've mentioned above.
Thanks for any help,
Shayan
--------------070206050001000208080804
Content-Type: application/pdf;
name="ticketprint.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="ticketprint.pdf"
CiAgICAgIDxodG1sPgogICAgICA8aGVhZD4KICAgICAgPHRpdGxlPkZhbGtlIFRpY2tldCBN
YW5hZ2VtZW50PC90aXRsZT4KICAgICAgPG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBl
IiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9aXNvLTg4NTktMSI+CiAgICAgIDxMSU5L
IFJFTD0ic3R5bGVzaGVldCIgVFlQRT0idGV4dC9jc3MiIEhSRUY9Ii9jc3MvZGVmYXVsdC5j
c3MiPgogICAgICA8TElOSyBSRUw9InN0eWxlc2hlZXQiIFRZUEU9InRleHQvY3NzIiBIUkVG
PSIvY3NzL3BsYWlubGlua3MuY3NzIj4KICAgICAgPC9oZWFkPjxib2R5IGJnY29sb3I9IiNm
ZmZmZmYiPgogICAgICA8aDE+RmFsa2UgVGlja2V0IE1hbmFnZW1lbnQ8L2gxPiVQREYtMS4z
DQolk4yLniBSZXBvcnRMYWIgR2VuZXJhdGVkIFBERiBkb2N1bWVudCBodHRwOi8vd3d3LnJl
cG9ydGxhYi5jb20NCiUgJ0Jhc2ljRm9udHMnO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A+Pg0Kc3RhcnR4cmVmDQo3Mzgy
DQolJUVPRg0KPC9ib2R5PgogICAgICA8L2h0bWw+CiAgICAgIA==
--------------070206050001000208080804--
From reportlab-users@reportlab.com Mon Nov 3 14:55:47 2003
From: reportlab-users@reportlab.com (Marc Stober)
Date: Mon, 3 Nov 2003 09:55:47 -0500
Subject: [reportlab-users] RE: Paragraph problem and table trouble
Message-ID: <2546C8F5D3D2D411857F00508BDCA4E80125ECA7@dalbar_mail.dalbar.com>
Hi Shayan,
Maybe you need to specify paragraph leading?
- Marc
> From: Shayan Raghavjee
> Subject: [reportlab-users] Paragraph problem and table trouble
>
> Hi again,
>
> I've got what I thought was a problem with the vertical
> alignment in the
> table, but it seems that it's got more to do with the paragraph.
>
> I've got a small paragraph, usually 1 word, with point size
> about 24. It
> looks fine on it's own, but when I put it in a table with the cells
> aligned to the bottom, the text constantly is too low, and
> 'leaks' into
> the cell below, despite the fact that there's plenty of place on the
> top. [...]
From reportlab-users@reportlab.com Mon Nov 3 23:24:17 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Mon, 3 Nov 2003 15:24:17 -0800 (PST)
Subject: [reportlab-users] it worked :)
In-Reply-To: <20031102082211.GB15507@mail.librelogiciel.com>
Message-ID: <20031103232417.62494.qmail@web60005.mail.yahoo.com>
--0-781349761-1067901857=:62072
Content-Type: text/plain; charset=us-ascii
dear Jerome Alet
i am really thankful for ur help, actually, u r the only one who replied back.
can i ask u another thing ?
i am asking whether u got the classes of pdfbase subpackage or not? another question, have u any knowlege of using eastern fonts and how to make reportlab deal with it?
i know that i ask 2 much, and i hope that u don't get bored from all my question.
thanks in advance
sam ellawindy
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-781349761-1067901857=:62072
Content-Type: text/html; charset=us-ascii
dear Jerome Alet
i am really thankful for ur help, actually, u r the only one who replied back.
can i ask u another thing
?
i am asking whether u got the classes of pdfbase subpackage or not? another question, have u any knowlege of using eastern fonts and how to make reportlab deal with it?
i know that i ask 2 much, and i hope that u don't get bored from all my question.
thanks in advance
sam ellawindy
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-781349761-1067901857=:62072--
From reportlab-users@reportlab.com Mon Nov 3 23:30:16 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Tue, 4 Nov 2003 00:30:16 +0100
Subject: [reportlab-users] it worked :)
In-Reply-To: <20031103232417.62494.qmail@web60005.mail.yahoo.com>
References: <20031102082211.GB15507@mail.librelogiciel.com> <20031103232417.62494.qmail@web60005.mail.yahoo.com>
Message-ID: <20031103233016.GA28300@mail.librelogiciel.com>
On Mon, Nov 03, 2003 at 03:24:17PM -0800, sarah el-lawindy wrote:
>
> dear Jerome Alet
> i am really thankful for ur help, actually, u r the only one who replied back.
You're welcome.
> i am asking whether u got the classes of pdfbase subpackage or
> not?
I don't understand what you want to know. Please could you
explain ?
> another question, have u any knowlege of using eastern fonts
> and how to make reportlab deal with it?
Sorry but I don't know. I only use "western" fonts.
bye
Jerome "I should be in my bed" Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Mon Nov 3 23:40:17 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Mon, 3 Nov 2003 15:40:17 -0800 (PST)
Subject: [reportlab-users] it worked :)
In-Reply-To: <20031103233016.GA28300@mail.librelogiciel.com>
Message-ID: <20031103234017.92058.qmail@web60004.mail.yahoo.com>
--0-1156763375-1067902817=:90838
Content-Type: text/plain; charset=us-ascii
Jerome Alet wrote:
> i am asking whether u got the classes of pdfbase subpackage or
> not?
I don't understand what you want to know. Please could you
explain ?
what i meant is that pdfbase is a subpackage within the reportlab package, right, this subpackage contain some classes, right, i am asking do u know these classes, they r not defined in the user guide of reportlab, that is all.
bye
Jerome "I should be in my bed" Alet
me 2
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1156763375-1067902817=:90838
Content-Type: text/html; charset=us-ascii
Jerome Alet <alet@librelogiciel.com> wrote:
> i am asking whether u got the classes of pdfbase subpackage or
> not?
I don't understand what you want to know. Please could you
explain ?
what i meant is that pdfbase is a subpackage within the reportlab package, right, this subpackage contain some classes, right, i am asking do u know these classes, they r not defined in the user guide of reportlab, that is all.
bye
Jerome "I should be in my bed" Alet
me 2 
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-1156763375-1067902817=:90838--
From reportlab-users@reportlab.com Tue Nov 4 02:06:54 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Mon, 3 Nov 2003 18:06:54 -0800 (PST)
Subject: [reportlab-users] anyone worked before with bidirectional languages
In-Reply-To: <20031103233016.GA28300@mail.librelogiciel.com>
Message-ID: <20031104020654.33284.qmail@web60004.mail.yahoo.com>
--0-525680827-1067911614=:31361
Content-Type: text/plain; charset=us-ascii
hi everyone
did anyone worked before with bidirectional language? more specifically, did anyone work with "FriBiDi" library? if so, could anyone send it to me ...
sam ellawindy
---------------------------------
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-525680827-1067911614=:31361
Content-Type: text/html; charset=us-ascii
hi everyone
did anyone worked before with bidirectional language? more specifically, did anyone work with "FriBiDi" library? if so, could anyone send it to me ...
sam ellawindy
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
--0-525680827-1067911614=:31361--
From reportlab-users@reportlab.com Tue Nov 4 19:36:56 2003
From: reportlab-users@reportlab.com (Dave Rogers)
Date: Tue, 04 Nov 2003 14:36:56 -0500
Subject: [reportlab-users] Printing PDF's
References: <3F8BF261.6070102@sjsoft.com>
Message-ID: <3FA7FFD8.3060706@StockAlerts.com>
Hi,
I use reportlab to generate PDF files.
For some time, to print files in the background (with a Windows
service), I've been using the awful DDE interface to Acrobat which works
for awhile and then fails with no useful error message.
I'm trying to switch to Ghostscript to print my files. However, even
though I've been through many many Ghostscript options, my documents are
getting cut off on the top or the bottom by about 3/8".
I use -sDEVICE=mswinpr2
Here's other options I've tried:
-dFIXEDMEDIA (cuts off top)
-dFIXEDRESOLUTION (cuts off bottom)
-dDEVICEHEIGHTPOINTS= XX (I've tried numbers higher and lower than the
std letter height and it always cuts off the bottom)
I use a Brother MFC 6800 and I cannot find any option to set or reduce
my margins in the printer setup.
Is there a reportlab setting I can change to fix this problem?
If someone knows of a better place I should post this to, please let me
know.
Thanks,
--
Dave Rogers
DaveRogers@StockAlerts.com
http://StockAlerts.com
From reportlab-users@reportlab.com Wed Nov 5 12:45:00 2003
From: reportlab-users@reportlab.com (David Hughes)
Date: Wed, 5 Nov 2003 12:45 +0000 (GMT Standard Time)
Subject: [reportlab-users] Printing PDF's
In-Reply-To: <3FA7FFD8.3060706@StockAlerts.com>
Message-ID:
> Hi,
>
> I use reportlab to generate PDF files.
>
> For some time, to print files in the background (with a Windows
> service), I've been using the awful DDE interface to Acrobat which
> works for awhile and then fails with no useful error message.
>
> I'm trying to switch to Ghostscript to print my files. However, even
> though I've been through many many Ghostscript options, my documents
> are getting cut off on the top or the bottom by about 3/8".
>
> I use -sDEVICE=mswinpr2
>
> Here's other options I've tried:
>
> -dFIXEDMEDIA (cuts off top)
> -dFIXEDRESOLUTION (cuts off bottom)
> -dDEVICEHEIGHTPOINTS= XX (I've tried numbers higher and lower than the
> std letter height and it always cuts off the bottom)
>
> I use a Brother MFC 6800 and I cannot find any option to set or reduce
> my margins in the printer setup.
>
> Is there a reportlab setting I can change to fix this problem?
>
> If someone knows of a better place I should post this to, please let me
> know.
>
> Thanks,
>
> --
> Dave Rogers
> DaveRogers@StockAlerts.com
> http://StockAlerts.com
I don't have a solution, I'm afraid, but and I'm experiencing the same
problem and it is definitely with GhostScript - the same reportlab pdf
file on the same (HP Officejet G95) printer is OK using Acrobat reader,
but loses its footers as you have described. It's something that I must
try to resolve quite soon, and trawling through the various mailing lists
- see http://www.ghostscript.com/mailman/listinfo/
has been on my list for a while. I will report here if I come up with
anything and it would be very helpful if you could do the same.
Regards,
David Hughes
Forestfield Software Ltd
www.forestfield.co.uk
From reportlab-users@reportlab.com Wed Nov 5 12:55:29 2003
From: reportlab-users@reportlab.com (Felix McAllister)
Date: Wed, 05 Nov 2003 12:55:29 +0000
Subject: [reportlab-users] Printing PDF's
Message-ID:
I don't know if this is of any help, but we've had similar problems printing
using Ghostscript. However, we resolved most of these by making sure that
Ghostscript is printing to a postscript printer and not a PCL printer.
(We're using HP LJ 4100). i.e. using the PostScript printer driver for the
HP4100 worked.
Felix.
>From: dfh@forestfield.co.uk (David Hughes)
>Reply-To: reportlab-users@reportlab.com
>To: reportlab-users@reportlab.com
>Subject: Re: [reportlab-users] Printing PDF's
>Date: Wed, 5 Nov 2003 12:45 +0000 (GMT Standard Time)
>
> > Hi,
> >
> > I use reportlab to generate PDF files.
> >
> > For some time, to print files in the background (with a Windows
> > service), I've been using the awful DDE interface to Acrobat which
> > works for awhile and then fails with no useful error message.
> >
> > I'm trying to switch to Ghostscript to print my files. However, even
> > though I've been through many many Ghostscript options, my documents
> > are getting cut off on the top or the bottom by about 3/8".
> >
> > I use -sDEVICE=mswinpr2
> >
> > Here's other options I've tried:
> >
> > -dFIXEDMEDIA (cuts off top)
> > -dFIXEDRESOLUTION (cuts off bottom)
> > -dDEVICEHEIGHTPOINTS= XX (I've tried numbers higher and lower than the
> > std letter height and it always cuts off the bottom)
> >
> > I use a Brother MFC 6800 and I cannot find any option to set or reduce
> > my margins in the printer setup.
> >
> > Is there a reportlab setting I can change to fix this problem?
> >
> > If someone knows of a better place I should post this to, please let me
> > know.
> >
> > Thanks,
> >
> > --
> > Dave Rogers
> > DaveRogers@StockAlerts.com
> > http://StockAlerts.com
>
>I don't have a solution, I'm afraid, but and I'm experiencing the same
>problem and it is definitely with GhostScript - the same reportlab pdf
>file on the same (HP Officejet G95) printer is OK using Acrobat reader,
>but loses its footers as you have described. It's something that I must
>try to resolve quite soon, and trawling through the various mailing lists
> - see http://www.ghostscript.com/mailman/listinfo/
>has been on my list for a while. I will report here if I come up with
>anything and it would be very helpful if you could do the same.
>
>Regards,
>
>David Hughes
>Forestfield Software Ltd
>www.forestfield.co.uk
>
>_______________________________________________
>reportlab-users mailing list
>reportlab-users@reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
From reportlab-users@reportlab.com Wed Nov 5 21:41:09 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Wed, 5 Nov 2003 13:41:09 -0800 (PST)
Subject: [reportlab-users] any help plz ....
In-Reply-To: <20031103233016.GA28300@mail.librelogiciel.com>
Message-ID: <20031105214109.1510.qmail@web60001.mail.yahoo.com>
--0-890125540-1068068469=:94914
Content-Type: text/plain; charset=us-ascii
dear Jerome Alet
hi , i know u got very bored from my very very primitaive questions, but i really need any help.
ok, do u know anything about unicode thing? i tried to write a unicode string, but the compiler gave me a error, "not a valid UTF-8 string" an then i tried another one (i got it from the mailing list archive), but gave another error " something (i can't remeber) then ordinal 128" . so do u know the solution for this ?
i hope that u reply back ...
sam ellawindy
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-890125540-1068068469=:94914
Content-Type: text/html; charset=us-ascii
dear Jerome Alet
hi , i know u got very bored from my very very primitaive questions, but i really need any help.
ok, do u know anything about unicode thing? i tried to write a unicode string, but the compiler gave me a error, "not a valid UTF-8 string" an then i tried another one (i got it from the mailing list archive), but gave another error " something (i can't remeber) then ordinal 128" . so do u know the solution for this ?
i hope that u reply back ...
sam ellawindy
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-890125540-1068068469=:94914--
From reportlab-users@reportlab.com Wed Nov 5 21:49:14 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Wed, 5 Nov 2003 22:49:14 +0100
Subject: [reportlab-users] any help plz ....
In-Reply-To: <20031105214109.1510.qmail@web60001.mail.yahoo.com>
References: <20031103233016.GA28300@mail.librelogiciel.com> <20031105214109.1510.qmail@web60001.mail.yahoo.com>
Message-ID: <20031105214914.GD13937@mail.librelogiciel.com>
On Wed, Nov 05, 2003 at 01:41:09PM -0800, sarah el-lawindy wrote:
>
> dear Jerome Alet
Well, I hope I'm not alone on this list ;-)
> hi , i know u got very bored from my very very primitaive questions, but i really need any help.
> ok, do u know anything about unicode thing? i tried to write a unicode string, but the compiler gave me a error, "not a valid UTF-8 string" an then i tried another one (i got it from the mailing list archive), but gave another error " something (i can't remeber) then ordinal 128" . so do u know the solution for this ?
> i hope that u reply back ...
This is a string encoding error.
You should read the Python documentation about unicode, because I'm far
from being a specialist on this subject.
All I know is that you have to convert your strings to or from
unicode.
Hoping this helps anyway...
bye
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Wed Nov 5 22:15:11 2003
From: reportlab-users@reportlab.com (Marius Gedminas)
Date: Thu, 6 Nov 2003 00:15:11 +0200
Subject: [reportlab-users] any help plz ....
In-Reply-To: <20031105214109.1510.qmail@web60001.mail.yahoo.com>
References: <20031103233016.GA28300@mail.librelogiciel.com> <20031105214109.1510.qmail@web60001.mail.yahoo.com>
Message-ID: <20031105221511.GE32092@gintaras>
--KlAEzMkarCnErv5Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Nov 05, 2003 at 01:41:09PM -0800, sarah el-lawindy wrote:
> dear Jerome Alet
> hi , i know u got very bored from my very very primitaive
> questions, but i really need any help.
> ok, do u know anything about unicode thing? i tried to write a
> unicode string, but the compiler gave me a error, "not a valid UTF-8
> string" an then i tried another one (i got it from the mailing list
> archive), but gave another error " something (i can't remeber) then
> ordinal 128" . so do u know the solution for this ?
If you showed your code, it would be easier to see were the problem is.
This should work:
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
# Change this to where Arial.ttf lives
fontdir =3D '/usr/share/fonts/truetype/'
pdfmetrics.registerFont(TTFont('MyArial', fontdir + 'Arial.ttf'))
# If I try to use just 'Arial', I get this error from reportlab
# 1.18debian-1.1:
# ValueError: _tt2ps_map[('arial', 1, 0)]=3D=3DArial-Bold already, not Ar=
ial
from reportlab.pdfgen.canvas import Canvas
canvas =3D Canvas('foo.pdf')
canvas.setFont('MyArial', 12)
canvas.drawString(100, 700, u"Test: \u010A\u010B".encode("UTF-8"))
canvas.save()
Marius Gedminas
--=20
I spent a lot of time in the Java world. I'm so glad I'm on Planet
Python now :-)
-- Steve Alexander
--KlAEzMkarCnErv5Q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/qXZvkVdEXeem148RAtEnAJ9mOvQYjXb7ppuEmM/mxlTM4OoBxwCeN4Hb
8oAuyDj1vfTupy0kkUmaYQ4=
=Ri1w
-----END PGP SIGNATURE-----
--KlAEzMkarCnErv5Q--
From reportlab-users@reportlab.com Wed Nov 5 22:17:17 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Wed, 5 Nov 2003 22:17:17 +0000
Subject: [reportlab-users] any help plz ....
In-Reply-To: <20031105214109.1510.qmail@web60001.mail.yahoo.com>
References: <20031103233016.GA28300@mail.librelogiciel.com>
<20031105214109.1510.qmail@web60001.mail.yahoo.com>
Message-ID:
In article <20031105214109.1510.qmail@web60001.mail.yahoo.com>, sarah
el-lawindy writes
>
> dear Jerome Alet
> hi , i know u got very bored from my very very primitaive
> questions, but i really need any help.
> ok, do u know anything about unicode thing? i tried to write a
> unicode string, but the compiler gave me a error, "not a valid
> UTF-8 string" an then i tried another one (i got it from the
> mailing list archive), but gave another error " something (i can't
> remeber) then ordinal 128" . so do u know the solution for this ?
> i hope that u reply back ...
> sam ellawindy
>
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
There is a unicode convert function in test/test_pdfbase_ttfonts.py. The
current ttfonts.py only understands utf8.
--
Robin Becker
From reportlab-users@reportlab.com Thu Nov 6 14:17:41 2003
From: reportlab-users@reportlab.com (Marc Stober)
Date: Thu, 6 Nov 2003 09:17:41 -0500
Subject: [reportlab-users] RE: any help plz .... (sarah el-lawindy)
Message-ID: <2546C8F5D3D2D411857F00508BDCA4E80125F23A@dalbar_mail.dalbar.com>
You can easily convert your Unicode string to UTF as such:
If this is your string:
st = u'hello'
Use this when you call the ReportLab functions:
st.encode('utf-8')
For example:
story.add(Paragraph(st.encode('utf-8'), style)) # do this
Instead of:
story.add(Paragraph(st, style)) # don't do this
Did you ever get a copy of a Right-To-Left function for ReportLab? Do you
know I could download it? I don't really need it for my work, but I did
Hebrew typesetting once at another job (by typing backward!) so I'm just
curious to see it.
- Marc
From reportlab-users@reportlab.com Thu Nov 6 17:28:01 2003
From: reportlab-users@reportlab.com (Tim Roberts)
Date: Thu, 06 Nov 2003 09:28:01 -0800
Subject: [reportlab-users] Printing PDF's
In-Reply-To: <20031106070918.086EA24F05@two.pairlist.net>
Message-ID: <200311061728.hA6HS1H14266@probo.probo.com>
On Wed, 05 Nov 2003 12:55:29 +0000, "Felix McAllister"
wrote:
>
>I don't know if this is of any help, but we've had similar problems printing
>using Ghostscript. However, we resolved most of these by making sure that
>Ghostscript is printing to a postscript printer and not a PCL printer.
>(We're using HP LJ 4100). i.e. using the PostScript printer driver for the
>HP4100 worked.
Here's one thing to check.
GhostScript comes from Europe, and defaults to A4 paper. If you're in the
United States, you are almost certainly using 8.5" x 11" paper, which is
shorter and fatter than A4. Printing a page formatted for A4 onto 8.5x11
paper will result in truncated footers.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
From reportlab-users@reportlab.com Fri Nov 7 06:08:03 2003
From: reportlab-users@reportlab.com (Dave Rogers)
Date: Fri, 07 Nov 2003 01:08:03 -0500
Subject: [reportlab-users] Printing PDF's
References: <200311061728.hA6HS1H14266@probo.probo.com>
Message-ID: <3FAB36C3.8090104@StockAlerts.com>
--------------030803030202060008020209
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Tim,
Tim Roberts wrote:
>On Wed, 05 Nov 2003 12:55:29 +0000, "Felix McAllister"
> wrote:
>
>
>>I don't know if this is of any help, but we've had similar problems printing
>>using Ghostscript. However, we resolved most of these by making sure that
>>Ghostscript is printing to a postscript printer and not a PCL printer.
>>(We're using HP LJ 4100). i.e. using the PostScript printer driver for the
>>HP4100 worked.
>>
>>
>
>Here's one thing to check.
>
>GhostScript comes from Europe, and defaults to A4 paper. If you're in the
>United States, you are almost certainly using 8.5" x 11" paper, which is
>shorter and fatter than A4. Printing a page formatted for A4 onto 8.5x11
>paper will result in truncated footers.
>
You had me excited for a minute but as I was going through my
GhostScript 7.04 docs, I found this:
Ghostscript is distributed configured to use U.S. letter paper as its
default page size. There are two ways to select other paper sizes from
the command line: ...
I may try to tell it to use letter anyway, but it doesn't look good.
>--
>- Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
>
>
>_______________________________________________
>reportlab-users mailing list
>reportlab-users@reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
>
--
Dave Rogers
DaveRogers@StockAlerts.com
http://StockAlerts.com
--------------030803030202060008020209
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Tim,
Tim Roberts wrote:
On Wed, 05 Nov 2003 12:55:29 +0000, "Felix McAllister"
<felix_mcallister@hotmail.com> wrote:
I don't know if this is of any help, but we've had similar problems printing
using Ghostscript. However, we resolved most of these by making sure that
Ghostscript is printing to a postscript printer and not a PCL printer.
(We're using HP LJ 4100). i.e. using the PostScript printer driver for the
HP4100 worked.
Here's one thing to check.
GhostScript comes from Europe, and defaults to A4 paper. If you're in the
United States, you are almost certainly using 8.5" x 11" paper, which is
shorter and fatter than A4. Printing a page formatted for A4 onto 8.5x11
paper will result in truncated footers.
You had me excited for a minute but as I was going through my GhostScript
7.04 docs, I found this:
Ghostscript is distributed configured to use U.S. letter paper as its default
page size. There are two ways to select other paper sizes from the command
line: ...
I may try to tell it to use letter anyway, but it doesn't look good.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
--
Dave Rogers
DaveRogers@StockAlerts.com
http://StockAlerts.com
--------------030803030202060008020209--
From reportlab-users@reportlab.com Fri Nov 7 14:07:19 2003
From: reportlab-users@reportlab.com (Thomas =?iso-8859-15?q?Schr=F6der?=)
Date: Fri, 7 Nov 2003 15:07:19 +0100
Subject: [reportlab-users] Re: unicode [was: any help plz ...]
In-Reply-To: <20031106070918.73D8324DD0@two.pairlist.net>
References: <20031106070918.73D8324DD0@two.pairlist.net>
Message-ID: <200311071507.19846.Thomas.Schroeder@red-sofa.de>
Hi
Some fundamental things about unicode could be found here
http://www.joelonsoftware.com/articles/Unicode.html
happy coding
tom
Am Donnerstag, 6. November 2003 08:09 schrieb=20
reportlab-users-request@reportlab.com:
> From: sarah el-lawindy
> To: reportlab-users@reportlab.com
> Subject: [reportlab-users] any help plz ....
> Reply-To: reportlab-users@reportlab.com
>
> --0-890125540-1068068469=3D:94914
> Content-Type: text/plain; charset=3Dus-ascii
>
>
> dear Jerome Alet
> hi , i know u got very bored from my very very primitaive questions, b=
ut
> i really need any help. ok, do u know anything about unicode thing? i
> tried to write a unicode string, but the compiler gave me a error, "not a
> valid UTF-8 string" an then i tried another one (i got it from the mailing
> list archive), but gave another error " something (i can't remeber) then
> ordinal 128" . so do u know the solution for this ? i hope that u reply
> back ...
> sam ellawindy
=2D-=20
Thomas Schr=F6der
Im H=E4cklinger Dorfe 7a
21335 L=FCneburg
Germany
Phone: +49-177-3318 361
eMail: Thomas.Schroeder@red-sofa.de
From reportlab-users@reportlab.com Sat Nov 8 22:17:07 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Sat, 8 Nov 2003 22:17:07 +0000
Subject: [reportlab-users] Re: Subtle bug in pyRXP
In-Reply-To: <20031108191211.GA27328@antares.math.rwth-aachen.de>
References: <20031108191211.GA27328@antares.math.rwth-aachen.de>
Message-ID: <$SOOzLAjtWr$Ewai@jessikat.fsnet.co.uk>
....I spoke too soon about the work needed to make pyRXP threadsafe.
We seem to have a global Stderr which is used to collect error
information. Logically each parser instance should have its own 'Stderr'
so we can see errors properly. I suspect that's too big a set of changes
to make without some more thought.
Even if I manage that I still haven't thought about the GIL stuff that
we would need to make things thread safe for Python. At the very least I
need to do Py_BEGIN_ALLOW_THREADS Py_END_ALLOW_THREADS around the main
work and take care of the callbacks. Presumably the threadstate would
need to be stored in each parser.
--
Robin Becker
From reportlab-users@reportlab.com Sun Nov 9 00:52:38 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Sun, 9 Nov 2003 00:52:38 -0000
Subject: [reportlab-users] Tracing and Debugging support in Platypus
Message-ID:
I've been working on debug support for RML2PDF and, as a
consequence, for Platypus. I have a checkin ready but would
love some second opinions on this...
The problems:
(1) An error occurs during doc.build (the platypus main loop).
But your story was built dynamically out of objects from
other places. You want a reasonable way to put in trace info, so
you can find out how far the story got and which object is causing
trouble. (e.g. an impossible layout constraint or some null
data in a table cell, but you don't know which of a zillion
tables...)
(2) Your story was assembled from lots of code in lots of
modules (in our case, often preprocessors assembling chunks
of XML from different "source files"). You have the option
to add info on where things came from when coding. You'd like to
track runtime errors back to the original source files and line
numbers, or database records, or whatever.
Outline solution:
1. Define a little 'TraceInfo' object which can hold extra
info about original source files and line numbers; and could
bbe subclassed to hold anything you want (like, maybe a
record ID from a database). Every flowable has an attribute
_traceInfo which is None by default.
2. the Platypus main loop gets a try/except handler.
If an error occurs handling a flowable, AND it has
a _traceInfo object, it intercepts the error; grabs
the message; and lets the traceInfo object append a second line
to the traceback message with the extra info; then re-raises the
error.
In our own RML product I can now run in a debug mode and
get tracebacks telling me the line and character number of the
tag which caused the error.
However, all this solution does is trap errors. I wonder if
it would be even better to allow some kind of logger, and
give flowables a chance to write to it? So, you could
run in a debug mode and create a file showing where your
code got to before it died. We could perhaps even save
a text version of the story in a log file in a standard
way on the way through.
Ideas/requests most welcome.
- Andy
From reportlab-users@reportlab.com Sun Nov 9 01:09:33 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sat, 8 Nov 2003 17:09:33 -0800 (PST)
Subject: [reportlab-users] Still Needing Help - BIG one REALLY
In-Reply-To:
Message-ID: <20031109010933.37210.qmail@web60001.mail.yahoo.com>
--0-1666654126-1068340173=:35668
Content-Type: text/plain; charset=us-ascii
hi guys,
i tried the stuff u told me about it worked well , but ... i am using an arabic font, so when i open the pdf , it contin arabic characters but not the ones i wrote, so anyone faced this thing before ???.
i though of changing the locale of my OS but it did not work, i also tried to change the default encoding in the site.py, it did not work either.
ANY Suggestions ...
sam ellawindy
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1666654126-1068340173=:35668
Content-Type: text/html; charset=us-ascii
hi guys,
i tried the stuff u told me about it worked well , but ... i am using an arabic font, so when i open the pdf , it contin arabic characters but not the ones i wrote, so anyone faced this thing before ???.
i though of changing the locale of my OS but it did not work, i also tried to change the default encoding in the site.py, it did not work either.
ANY Suggestions ...
sam ellawindy
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1666654126-1068340173=:35668--
From reportlab-users@reportlab.com Sun Nov 9 01:40:33 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Sun, 9 Nov 2003 01:40:33 +0000
Subject: [reportlab-users] Tracing and Debugging support in Platypus
In-Reply-To:
References:
Message-ID: <+9S+4IARsZr$EwIH@jessikat.fsnet.co.uk>
.... I tried this before with an automatic mechanism for getting file
and lineno info at instance creation time if nothing was supplied. A
difficulty is deciding where the identity is defined.
The difficulty is always that programs can define many flowables at the
same point. In the rml2pdf case we often preprocess with preppy or with
some other programmatic mechanism. It's often hard to decide where to
label things. I create a good label and then later reuse the code and
find the outer usage is hidden by the inner label. Perhaps adding to the
call chain would be a way to do things compatible with the traceback
itself.
As for logging I think that should be a separate issue.
--
Robin Becker
From reportlab-users@reportlab.com Sun Nov 9 08:55:43 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Sun, 9 Nov 2003 08:55:43 -0000
Subject: [reportlab-users] Tracing and Debugging support in Platypus
In-Reply-To: <+9S+4IARsZr$EwIH@jessikat.fsnet.co.uk>
Message-ID:
> .... I tried this before with an automatic mechanism for getting file
> and lineno info at instance creation time if nothing was supplied. A
> difficulty is deciding where the identity is defined.
Yes. My plan is just to let the programmer of the app explicitly
add the line info, or any other info they want. It doesn't help
to know that a Table instance caused the trouble. It does
help to know that it was the table containing the photograph
of Customer #14326 in your database, which someone saved
400 pixels wide instead of 100.
Let's generalize it a bit. If your flowable has a TraceInfo
object attached, the TraceInfo object gets a chance to inspect
and modify the Exception object being handled.
Then, with RML, we add source file and line number. With something
else, you add whatever you want by subclassing it.
> As for logging I think that should be a separate issue.
Yup. I guess we could pass in a logger object as optional keyword
to go(). I like hte logging interface, but it means we need
to define a really cut down logger class in reportlab.lib for
people below 2.3
- Andy
From reportlab-users@reportlab.com Sun Nov 9 10:16:16 2003
From: reportlab-users@reportlab.com (Dinu Gherman)
Date: Sun, 9 Nov 2003 11:16:16 +0100
Subject: [reportlab-users] Chart axes bugs
Message-ID:
Being still confused about where to post bugs, I'll post one here...
Very briefly:
1. graphics.charts.axes.ValueAxis has no "visibleLabels" property
(like CategoryAxis)
2. so-called Boolean properties don't seem to support the Python
Boolean type (True/False)
Dinu
--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." (Benjamin Franklin)
From reportlab-users@reportlab.com Sun Nov 9 10:24:22 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Sun, 9 Nov 2003 10:24:22 +0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To:
References:
Message-ID:
In article ,
Dinu Gherman writes
>Being still confused about where to post bugs, I'll post one here...
>Very briefly:
>
>1. graphics.charts.axes.ValueAxis has no "visibleLabels" property
> (like CategoryAxis)
>2. so-called Boolean properties don't seem to support the Python
> Boolean type (True/False)
>
>Dinu
>
>--
....that's because Python is unstable :) The code is robust. As for the
visibleLabels attribute I'll have a look today.
--
Robin Becker
From reportlab-users@reportlab.com Sun Nov 9 14:47:00 2003
From: reportlab-users@reportlab.com (Dinu Gherman)
Date: Sun, 9 Nov 2003 15:47:00 +0100
Subject: [reportlab-users] Chart axes bugs
In-Reply-To:
Message-ID: <935030F3-12C3-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Robin Becker:
>> 1. graphics.charts.axes.ValueAxis has no "visibleLabels" property
>> (like CategoryAxis)
>> 2. so-called Boolean properties don't seem to support the Python
>> Boolean type (True/False)
>>
> ....that's because Python is unstable :) The code is robust. As for the
> visibleLabels attribute I'll have a look today.
Lots of stuff can be moved into _AxisG, whatever that G stands for.
Stable or not, in the context of Python 2.x lib.validators.isBoolean
is not appropriate anymore, then, is it?
The chart stuff seems like having made a big entropy jump, where
things like _makeLines could probably entirely be replaced with
grids. I think it looks more and more like VisualBasic... ;-)
Dinu
--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"I never apologize for the United States of America, I don't care what
the facts are." (George Bush, Sr.)
From reportlab-users@reportlab.com Mon Nov 10 00:08:29 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sun, 9 Nov 2003 16:08:29 -0800 (PST)
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031109010933.37210.qmail@web60001.mail.yahoo.com>
Message-ID: <20031110000829.25804.qmail@web60006.mail.yahoo.com>
--0-2055006651-1068422909=:23848
Content-Type: text/plain; charset=us-ascii
hi guys,
i tried the stuff u told me about it worked well , but ... i am using an arabic font, so when i open the pdf , it contin arabic characters but not the ones i wrote, so anyone faced this thing before ???.
i though of changing the locale of my OS but it did not work, i also tried to change the default encoding in the site.py, it did not work either.
ANY Suggestions ...
sam ellawindy
do i need to work with iso-8856????????
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-2055006651-1068422909=:23848
Content-Type: text/html; charset=us-ascii
hi guys,
i tried the stuff u told me about it worked well , but ... i am using an arabic font, so when i open the pdf , it contin arabic characters but not the ones i wrote, so anyone faced this thing before ???.
i though of changing the locale of my OS but it did not work, i also tried to change the default encoding in the site.py, it did not work either.
ANY Suggestions ...
sam ellawindy
do i need to work with iso-8856????????
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-2055006651-1068422909=:23848--
From reportlab-users@reportlab.com Mon Nov 10 03:00:04 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Mon, 10 Nov 2003 03:00:04 -0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To: <935030F3-12C3-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Message-ID:
> Stable or not, in the context of Python 2.x lib.validators.isBoolean
> is not appropriate anymore, then, is it?
I think you mean "2.3" not "2.x". Changing the code
to return True or False would break earlier versions or need
a messy conditional import. And we're trying to make lots
of things work under jython (=2.1) these days, so if you want us
to use cutting edge features in core code then I suggest you
help Samuele Pedroni to catch up with Guido :-)
Anyway, these functions partly
exist to help when people are setting properties in GUIs,
xml files or web forms. The fact that the language permits
the symbol 'True' in source code has little to do with
what we are doing: accepting strings the user might commonly
type like "yes/no" or "True/False" and converting to a
(2.1 compatible notion of a) boolean.
- Andy
From reportlab-users@reportlab.com Mon Nov 10 02:51:01 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Mon, 10 Nov 2003 02:51:01 -0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To: <935030F3-12C3-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Message-ID:
> The chart stuff seems like having made a big entropy jump, where
> things like _makeLines could probably entirely be replaced with
> grids.
Lots of stuff could be replaced, but it is stable and works.
I think the main deficiency is really that it does not
have enough documentation on which properties are there
for what. I'm much more interested now in trying to
position ourselves for a more drastic rewrite which might
merge lots of disparate areas, than for refactoring the
existing charts.
Of course, "position ourselves" basically means getting
ReportLab a bit bigger to the point where we can devote
the needed resources to this kind of development, and do
really good "version 2" rewrites of things based on what
we know now. But we're doing well on that front now, with
3 more full time staff than we had in the summer all learning
their way around. Hey, we might even have the resources
to write a test case or two and set up a bug tracker in
2004 some time :-)
> I think it looks more and more like VisualBasic... ;-)
I will take that as a compliment. If by that you mean lots
of property assignment statements like
drawing.chart.xAxis.gridLines.blah.blah = 'spam'
then there's a sound reason for this, and in fact for
why VB code often looks like it does. If you are making a framework
to be edited by GUIs or with preprty editors - and we do have a
basic visual editor in our commercial toolkit, albeit not one your
mother could use - then pretty soon you realize that "everything must
be exposed as a property".
In the long run, ideally, entire document workflows should
be able to be constructed semi-visually in GUIs, which
means setting properties and adding things to their parents.
This might mean making our whole framework look like Visual
Basic. Or like XML. Or whatever else is fashionable at the
time I guess ;-)
- Andy
From reportlab-users@reportlab.com Mon Nov 10 08:15:03 2003
From: reportlab-users@reportlab.com (Henning von Bargen)
Date: Mon, 10 Nov 2003 09:15:03 +0100
Subject: [reportlab-users] Re: Tracing and Debugging support in Platypus
Message-ID: <71674BEFF0E2D41196F500600811AA6B5BADA1@TUP-BO1-EXC>
> From: "Andy Robinson"
> To:
> Subject: RE: [reportlab-users] Tracing and Debugging support in Platypus
> Date: Sun, 9 Nov 2003 08:55:43 -0000
> Reply-To: reportlab-users@reportlab.com
>
> > .... I tried this before with an automatic mechanism for getting file
> > and lineno info at instance creation time if nothing was supplied. A
> > difficulty is deciding where the identity is defined.
>
> Yes. My plan is just to let the programmer of the app explicitly
> add the line info, or any other info they want. It doesn't help
> to know that a Table instance caused the trouble. It does
> help to know that it was the table containing the photograph
> of Customer #14326 in your database, which someone saved
> 400 pixels wide instead of 100.
>
>
> Let's generalize it a bit. If your flowable has a TraceInfo
> object attached, the TraceInfo object gets a chance to inspect
> and modify the Exception object being handled.
>
> Then, with RML, we add source file and line number. With something
> else, you add whatever you want by subclassing it.
>
> > As for logging I think that should be a separate issue.
>
> Yup. I guess we could pass in a logger object as optional keyword
> to go(). I like hte logging interface, but it means we need
> to define a really cut down logger class in reportlab.lib for
> people below 2.3
>
> - Andy
I like your idea. It's very close to what I suggested a few weeks ago.
And right now I have an infinite loop while generating a report from DB
data,
where such a TraceInfo object could definitely help.
Henning
From reportlab-users@reportlab.com Fri Nov 7 15:22:11 2003
From: reportlab-users@reportlab.com (Dirk Hesse)
Date: Fri, 7 Nov 2003 16:22:11 +0100
Subject: [reportlab-users] Two stacked charts on one column
Message-ID: <002c01c3a542$ebdd0160$6a02a8c0@ixware>
This is a multi-part message in MIME format.
------=_NextPart_000_0029_01C3A54B.4C575D30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello all
I want to draw a stacked Chart like this example from the =
graphicsguide_reference.pdf :
=20
def sampleStacked1():
"Simple bar chart using symbol attribute."
drawing =3D Drawing(400, 200)
data =3D dataSample5
bc =3D VerticalBarChart()
bc.categoryAxis.style =3D 'stacked'
bc.x =3D 50
bc.y =3D 50
bc.height =3D 125
bc.width =3D 300
bc.data =3D data
bc.strokeColor =3D colors.black
bc.barWidth =3D 10
bc.groupSpacing =3D 15
bc.valueAxis.valueMin =3D 0
bc.categoryAxis.labels.boxAnchor =3D 'e'
bc.categoryAxis.categoryNames =3D ['Ying', 'Yang']
from reportlab.graphics.widgets.grids import ShadedRect
bc.bars.symbol =3D ShadedRect()
bc.bars.symbol.fillColorStart =3D colors.red
bc.bars.symbol.fillColorEnd =3D colors.white
bc.bars.symbol.orientation =3D 'vertical'
bc.bars.symbol.cylinderMode =3D 1
bc.bars.symbol.strokeWidth =3D 0
bc.bars[1].symbol =3D ShadedRect()
bc.bars[1].symbol.fillColorStart =3D colors.magenta
bc.bars[1].symbol.fillColorEnd =3D colors.white
bc.bars[1].symbol.orientation =3D 'vertical'
bc.bars[1].symbol.cylinderMode =3D 1
bc.bars[1].symbol.strokeWidth =3D 0
bc.bars[2].symbol =3D ShadedRect()
bc.bars[2].symbol.fillColorStart =3D colors.green
bc.bars[2].symbol.fillColorEnd =3D colors.white
bc.bars[2].symbol.orientation =3D 'vertical'
bc.bars[2].symbol.cylinderMode =3D 1
bc.bars[2].symbol.strokeWidth =3D 0
bc.bars[3].symbol =3D ShadedRect()
bc.bars[3].symbol.fillColorStart =3D colors.blue
bc.bars[3].symbol.fillColorEnd =3D colors.white
bc.bars[3].symbol.orientation =3D 'vertical'
bc.bars[3].symbol.cylinderMode =3D 1
bc.bars[3].symbol.strokeWidth =3D 0
drawing.add(bc)
return drawing
But Is there any Possiblilty to draw 2 stacked Charts on one =
column/day??
Thanks D. Hesse
------=_NextPart_000_0029_01C3A54B.4C575D30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello all
I want to draw a stacked Chart like =
this example=20
from the graphicsguide_reference.pdf :
def =
sampleStacked1():
"Simple bar chart using =
symbol=20
attribute."
drawing =3D Drawing(400, =
200)
data =3D =
dataSample5
bc =3D =
VerticalBarChart()
bc.categoryAxis.style =3D=20
'stacked'
bc.x =3D 50
bc.y =3D 50
bc.height =3D 125
bc.width =3D 300
bc.data =3D data
bc.strokeColor =3D =
colors.black
bc.barWidth =3D =
10
bc.groupSpacing =3D =
15
bc.valueAxis.valueMin =3D =
0
bc.categoryAxis.labels.boxAnchor =3D=20
'e'
bc.categoryAxis.categoryNames =3D ['Ying',=20
'Yang']
from =
reportlab.graphics.widgets.grids=20
import ShadedRect
bc.bars.symbol =3D =
ShadedRect()
bc.bars.symbol.fillColorStart =3D=20
colors.red
bc.bars.symbol.fillColorEnd =
=3D=20
colors.white
bc.bars.symbol.orientation =
=3D=20
'vertical'
bc.bars.symbol.cylinderMode =
=3D 1
bc.bars.symbol.strokeWidth =
=3D 0
bc.bars[1].symbol =3D=20
ShadedRect()
bc.bars[1].symbol.fillColorStart =3D=20
colors.magenta
bc.bars[1].symbol.fillColorEnd =3D=20
colors.white
bc.bars[1].symbol.orientation =3D=20
'vertical'
bc.bars[1].symbol.cylinderMode =3D=20
1
bc.bars[1].symbol.strokeWidth =3D=20
0
bc.bars[2].symbol =3D=20
ShadedRect()
bc.bars[2].symbol.fillColorStart =3D=20
colors.green
bc.bars[2].symbol.fillColorEnd =3D=20
colors.white
bc.bars[2].symbol.orientation =3D=20
'vertical'
bc.bars[2].symbol.cylinderMode =3D=20
1
bc.bars[2].symbol.strokeWidth =3D=20
0
bc.bars[3].symbol =3D=20
ShadedRect()
bc.bars[3].symbol.fillColorStart =3D=20
colors.blue
bc.bars[3].symbol.fillColorEnd =3D=20
colors.white
bc.bars[3].symbol.orientation =3D=20
'vertical'
bc.bars[3].symbol.cylinderMode =3D=20
1
bc.bars[3].symbol.strokeWidth =3D=20
0
drawing.add(bc)
return=20
drawing
But Is there any Possiblilty to =
draw 2 stacked=20
Charts on one column/day??
Thanks D. Hesse
------=_NextPart_000_0029_01C3A54B.4C575D30--
From reportlab-users@reportlab.com Mon Nov 10 09:35:50 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Mon, 10 Nov 2003 09:35:50 -0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To:
Message-ID:
> Being still confused about where to post bugs,
Let's be accurate. You are not 'confused' where
to post them, you are 'annoyed' where to post them.
You know this is the correct place because I have told
you about 4 times.
- Andy
From reportlab-users@reportlab.com Mon Nov 10 10:12:28 2003
From: reportlab-users@reportlab.com (Dinu Gherman)
Date: Mon, 10 Nov 2003 11:12:28 +0100
Subject: [reportlab-users] Chart axes bugs
In-Reply-To:
Message-ID: <634464B6-1366-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Andy Robinson:
> I think you mean "2.3" not "2.x". Changing the code
> to return True or False would break earlier versions or need
> a messy conditional import. And we're trying to make lots
> of things work under jython (=2.1) these days, so if you want us
> to use cutting edge features in core code then I suggest you
> help Samuele Pedroni to catch up with Guido :-)
My, pretty wrong, point was rather that you cannot write now:
chart.valueAxis.visible = False
because lib.validators.isBoolean doesn't know about True/False,
while, in fact, the Gods of Python have hacked Booleans just
enough such that using them with validators.isBoolean does ma-
gically work:
>>> from reportlab.lib.validators import isBoolean
>>> isBoolean(False)
1
>>> isBoolean(True)
1
Remember, always test your claim before making it, when possible!
OTOH, it still is the kind of background magic discouraged by the
Zen of Python. ;-)
> If by that you mean lots of property assignment statements like
>
> drawing.chart.xAxis.gridLines.blah.blah = 'spam'
>
> then there's a sound reason for this, and in fact for
> why VB code often looks like it does. If you are making a framework
> to be edited by GUIs or with preprty editors - and we do have a
> basic visual editor in our commercial toolkit, albeit not one your
> mother could use - then pretty soon you realize that "everything must
> be exposed as a property".
That's ok iff things are decomposed in some "natural" way which
favours reuse, e.g. I'd prefer
chart.valueAxis.grid.strokeColor
chart.valueAxis.grid.visible
over the current
chart.valueAxis.gridStrokeColor
chart.valueAxis.visibleGrid
because it would further simplify composition and increase flexi-
bility which is what we both seem to value.
> Let's be accurate. You are not 'confused' where
> to post them, you are 'annoyed' where to post them.
Thanks for the clarification. ;-)
Dinu
--
Dinu C. Gherman
......................................................................
"He who can read but does not read good books has no advantage over
the ones who can't read." (Mark Twain)
From reportlab-users@reportlab.com Mon Nov 10 13:44:46 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Mon, 10 Nov 2003 13:44:46 -0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To: <634464B6-1366-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Message-ID:
>
> >>> from reportlab.lib.validators import isBoolean
> >>> isBoolean(False)
> 1
> >>> isBoolean(True)
> 1
>
OK, this is a fair point and sorry not to grasp it.
It seems someone has checked in the version-conditional
fix this morning anyway - probably Robin? - so it should
work now.
- Andy
From reportlab-users@reportlab.com Mon Nov 10 16:49:36 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Mon, 10 Nov 2003 16:49:36 +0000
Subject: [reportlab-users] Chart axes bugs
In-Reply-To:
References: <634464B6-1366-11D8-A8BA-00039345C610@darwin.in-berlin.de>
Message-ID:
In article , Andy
Robinson writes
>>
>> >>> from reportlab.lib.validators import isBoolean
>> >>> isBoolean(False)
>> 1
>> >>> isBoolean(True)
>> 1
>>
>OK, this is a fair point and sorry not to grasp it.
>It seems someone has checked in the version-conditional
>fix this morning anyway - probably Robin? - so it should
>work now.
>
>- Andy
I did it yesterday. Funnily I don't get the above I see the following
PythonWin 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)]
on win32.Portions Copyright 1994-2001 Mark Hammond
(mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further
copyright information.
>>> from reportlab.lib.validators import isBoolean
>>> isBoolean(1)
True
>>> isBoolean(True)
True
>>> isBoolean(False)
True
>>> isBoolean('YES')
1
>>> isBoolean('no')
1
>>>
That's because I reused the original normalize.
I think I need to fix so all the return values are boolean at least from
isBoolean.
--
Robin Becker
From reportlab-users@reportlab.com Mon Nov 10 22:50:01 2003
From: reportlab-users@reportlab.com (Marius Gedminas)
Date: Tue, 11 Nov 2003 00:50:01 +0200
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031110000829.25804.qmail@web60006.mail.yahoo.com>
References: <20031109010933.37210.qmail@web60001.mail.yahoo.com> <20031110000829.25804.qmail@web60006.mail.yahoo.com>
Message-ID: <20031110225001.GB32585@gintaras>
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Nov 09, 2003 at 04:08:29PM -0800, sarah el-lawindy wrote:
> hi guys,
> i tried the stuff u told me about it worked well , but ... i am using
> an arabic font, so when i open the pdf , it contin arabic characters
> but not the ones i wrote, so anyone faced this thing before ???.=20
I'd guess not.
> i though of changing the locale of my OS but it did not work, i also
> tried to change the default encoding in the site.py, it did not work
> either.
These things should not matter.
> ANY Suggestions ...
Could you show the code you use that does not work for you? Otherwise
it's very hard to understand what the problem might be.
> sam ellawindy
>=20
> do i need to work with iso-8856????????
I do not think so.
Marius Gedminas
--=20
C is a language that combines all the elegance and power of assembly langua=
ge
with all the readability and maintainability of assembly language.
--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/sBYZkVdEXeem148RAtDVAJ92Ln1+s/E3xPLE0kOSc4ohC1AQdgCfSbS+
PNxLgK+QzhiNVpJpTEhNTmY=
=z7a4
-----END PGP SIGNATURE-----
--vkogqOf2sHV7VnPd--
From reportlab-users@reportlab.com Mon Nov 10 22:50:01 2003
From: reportlab-users@reportlab.com (Marius Gedminas)
Date: Tue, 11 Nov 2003 00:50:01 +0200
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031110000829.25804.qmail@web60006.mail.yahoo.com>
References: <20031109010933.37210.qmail@web60001.mail.yahoo.com> <20031110000829.25804.qmail@web60006.mail.yahoo.com>
Message-ID: <20031110225001.GB32585@gintaras>
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, Nov 09, 2003 at 04:08:29PM -0800, sarah el-lawindy wrote:
> hi guys,
> i tried the stuff u told me about it worked well , but ... i am using
> an arabic font, so when i open the pdf , it contin arabic characters
> but not the ones i wrote, so anyone faced this thing before ???.=20
I'd guess not.
> i though of changing the locale of my OS but it did not work, i also
> tried to change the default encoding in the site.py, it did not work
> either.
These things should not matter.
> ANY Suggestions ...
Could you show the code you use that does not work for you? Otherwise
it's very hard to understand what the problem might be.
> sam ellawindy
>=20
> do i need to work with iso-8856????????
I do not think so.
Marius Gedminas
--=20
C is a language that combines all the elegance and power of assembly langua=
ge
with all the readability and maintainability of assembly language.
--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/sBYZkVdEXeem148RAtDVAJ92Ln1+s/E3xPLE0kOSc4ohC1AQdgCfSbS+
PNxLgK+QzhiNVpJpTEhNTmY=
=z7a4
-----END PGP SIGNATURE-----
--vkogqOf2sHV7VnPd--
From reportlab-users@reportlab.com Mon Nov 10 11:01:44 2003
From: reportlab-users@reportlab.com (DOMSS Master)
Date: Mon, 10 Nov 2003 06:01:44 -0500 (EST)
Subject: [reportlab-users] [DOMSS] DOMSS Mailing Service
Message-ID: <6668874.1068462387453.JavaMail.Administrator@Server-1>
DOMSS Mailing Service
|
 |
|
|
|
|
|
|
|
|
|
Mailing List Guide |
Mailing list is a service which sends you information via e-mail.
By joining these lists, you can share information, newsletters and
comments with others about Daewoo Machine Tools.
|
|
Copyright 2003. DHI&M Ltd. All rights reserved
|
|
|
From reportlab-users@reportlab.com Mon Nov 10 16:11:23 2003
From: reportlab-users@reportlab.com (Michael Geddert)
Date: Mon, 10 Nov 2003 17:11:23 +0100
Subject: [reportlab-users] Pantone/HKS in RLTK ?
Message-ID: <3FAFB8AB.2010800@arche.de>
Hi,
Is it possible to set Fonts on a given Canvas-Object using
Pantone/HKS-Color-Schemes ?
I was pointed to "spotcolors" (ok, I found 'spotname' lib/colors.py),
but it seems I'm unable to figure this out on my own. :(
Thx & Regards,
Michael
From reportlab-users@reportlab.com Tue Nov 11 09:55:42 2003
From: reportlab-users@reportlab.com (Henning von Bargen)
Date: Tue, 11 Nov 2003 10:55:42 +0100
Subject: [reportlab-users] Infinite Loop in tables
Message-ID: <71674BEFF0E2D41196F500600811AA6B5BADAA@TUP-BO1-EXC>
Hi,
I have encountered the following problem using Tables in a production
environment:
If the header line plus the first data line do not fit entirely on the page,
an infinite loop occurs.
This is likely to happen when generating tables with DB data
where some cells contain long strings, for example a descriptive text.
This is causing performance problems on the application server.
As a last resort, I have modified the _splitRows method for Table
so that it raises an exception when this happens and availHeight > 5cm.
Is there any option that allows to split the CELLS inside the row
so that the first part of the row will be printed on the current page
and the rest will overflow to the next row?
Henning
From reportlab-users@reportlab.com Tue Nov 11 10:02:49 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Tue, 11 Nov 2003 10:02:49 +0000
Subject: [reportlab-users] Pantone/HKS in RLTK ?
In-Reply-To: <3FAFB8AB.2010800@arche.de>
References: <3FAFB8AB.2010800@arche.de>
Message-ID:
In article <3FAFB8AB.2010800@arche.de>, Michael Geddert
writes
>Hi,
>
>Is it possible to set Fonts on a given Canvas-Object using
>Pantone/HKS-Color-Schemes ?
>
>I was pointed to "spotcolors" (ok, I found 'spotname' lib/colors.py),
>but it seems I'm unable to figure this out on my own. :(
>
>Thx & Regards,
>
>Michael
....Spotnames are currently only of use in some contexts particularly
postscript. We have a separating eps renderer that allows printers to
split up into different inks correctly. It is possible to do separations
in PDF with separation dictionaries and pages represented N times (once
for each ink), but we don't currently have any way to do that.
However, a first step along that road would be to know the individual
colours up front.
We currently have only RGB & CMYK colour spaces. There are many Pantone
colours and each has its own approximant in CMYK or RGB.
--
Robin Becker
From reportlab-users@reportlab.com Tue Nov 11 11:11:14 2003
From: reportlab-users@reportlab.com (Oliver Bleutgen)
Date: Tue, 11 Nov 2003 12:11:14 +0100
Subject: [reportlab-users] Pantone/HKS in RLTK ?
In-Reply-To:
References: <3FAFB8AB.2010800@arche.de>
Message-ID: <3FB0C3D2.4000407@gmx.net>
Robin Becker wrote:
> In article <3FAFB8AB.2010800@arche.de>, Michael Geddert
> writes
>
>>Hi,
>>
>>Is it possible to set Fonts on a given Canvas-Object using
>>Pantone/HKS-Color-Schemes ?
>>
>>I was pointed to "spotcolors" (ok, I found 'spotname' lib/colors.py),
>>but it seems I'm unable to figure this out on my own. :(
>>
>>Thx & Regards,
>>
>>Michael
>
> ....Spotnames are currently only of use in some contexts particularly
> postscript. We have a separating eps renderer that allows printers to
> split up into different inks correctly. It is possible to do separations
> in PDF with separation dictionaries and pages represented N times (once
> for each ink), but we don't currently have any way to do that.
>
> However, a first step along that road would be to know the individual
> colours up front.
>
> We currently have only RGB & CMYK colour spaces. There are many Pantone
> colours and each has its own approximant in CMYK or RGB.
Well the problem with pantone/HKS colors is that they contain also such things
as Silver, Gold etc., "special colors" for which a good quality approximation
is not possible with the CMYK printing process.
One way to solve this is to make a seperate document containing only these "special colors".
cheers,
oliver
From reportlab-users@reportlab.com Tue Nov 11 11:52:12 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Tue, 11 Nov 2003 11:52:12 +0000
Subject: [reportlab-users] Infinite Loop in tables
In-Reply-To: <71674BEFF0E2D41196F500600811AA6B5BADAA@TUP-BO1-EXC>
References: <71674BEFF0E2D41196F500600811AA6B5BADAA@TUP-BO1-EXC>
Message-ID:
In article <71674BEFF0E2D41196F500600811AA6B5BADAA@TUP-BO1-EXC>, Henning
von Bargen writes
>Hi,
>
>I have encountered the following problem using Tables in a production
>environment:
>
>If the header line plus the first data line do not fit entirely on the page,
>an infinite loop occurs.
>
>This is likely to happen when generating tables with DB data
>where some cells contain long strings, for example a descriptive text.
>
>This is causing performance problems on the application server.
>As a last resort, I have modified the _splitRows method for Table
>so that it raises an exception when this happens and availHeight > 5cm.
>
>Is there any option that allows to split the CELLS inside the row
>so that the first part of the row will be printed on the current page
>and the rest will overflow to the next row?
>
>Henning
.... This is hard, the flowable wrap, split and draw methods don't know
the container size so it's hard to know when a split is absolutely
required (or detect the overflow). To take the hard case, what does it
mean when the header lines are longer than the page.
It ought to be possible to detect the infinite loop though by other
means.
--
Robin Becker
From reportlab-users@reportlab.com Tue Nov 11 12:25:11 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Tue, 11 Nov 2003 12:25:11 -0000
Subject: [reportlab-users] Pantone/HKS in RLTK ?
In-Reply-To: <3FAFB8AB.2010800@arche.de>
Message-ID:
> Hi,
>
> Is it possible to set Fonts on a given Canvas-Object using
> Pantone/HKS-Color-Schemes ?
>
No. Currently we only output CMYK and RGB color info in our
PDF docs, and there is a whole separate area of the PDf spec to do
with declaring Color Spaces that we just do not deal with.
Our Color objects allow you to attach extra data, but
the canvas does not do anything with it; the spot attribute you saw
is however used by our Diagra product when making color separating
EPS, but not for PDF.
Color-separable PDF is a big subject; if someone wants to
contribute that feature it would be great, but probably quite a big job
involving proper testing with a range of print architectures,
and it would rapidly drift into supporting bleed and knockout as well. If
we did it ourselves (and there is no scheduled work on this), it would
probably go into the commercial parts of our framework. And there
are plenty of PDF post-processing tools that do it already AFAIK.
Sorry we can't help more just now:-)
- Andy
From reportlab-users@reportlab.com Tue Nov 11 12:26:58 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Tue, 11 Nov 2003 12:26:58 -0000
Subject: [reportlab-users] Infinite Loop in tables
In-Reply-To: <71674BEFF0E2D41196F500600811AA6B5BADAA@TUP-BO1-EXC>
Message-ID:
> If the header line plus the first data line do not fit entirely
> on the page,
> an infinite loop occurs.
That's a bug. Thanks. We have an algorithm saying "if you can't
fit ANYTHING on a page, raise an error" but it is not smart
enough to know about the tables.
>
> This is likely to happen when generating tables with DB data
> where some cells contain long strings, for example a descriptive text.
>
> This is causing performance problems on the application server.
> As a last resort, I have modified the _splitRows method for Table
> so that it raises an exception when this happens and availHeight > 5cm.
>
> Is there any option that allows to split the CELLS inside the row
> so that the first part of the row will be printed on the current page
> and the rest will overflow to the next row?
>
Not yet, no. Ideas are welcome though. I wonder if the outer
loop needs special knowledge of tables, or some 'container'
API?
- Andy
From reportlab-users@reportlab.com Tue Nov 11 21:36:03 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Tue, 11 Nov 2003 13:36:03 -0800 (PST)
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031110225001.GB32585@gintaras>
Message-ID: <20031111213603.31696.qmail@web60001.mail.yahoo.com>
--0-1954263328-1068586563=:30363
Content-Type: text/plain; charset=us-ascii
Marius Gedminas ,
thanks for replying. here is the code i wrote:
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas('t.pdf')
pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))
from reportlab.lib.fonts import addMapping
addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')
c.setFont('ArabicRiyadh', 32)
TEST = u'ÊÇáÈí'
#temp = unicode("ÊÇáÈíþ", "ISO-8859-13")
c.drawString(100, 700,TEST.encode('utf-8'))
c.save()
the output was not ÊÇáÈí' at all, it another word.
by the way, i am uisng adode acrobat ME , and i used another viewer but the same thing took place.
i tried sending the ttf file to u, but the coz of its size, the modrator of the group send me a notification back.
thanks in advance,
sam ellawindy
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1954263328-1068586563=:30363
Content-Type: text/html; charset=us-ascii
Marius Gedminas ,
thanks for replying. here is the code i wrote:
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas('t.pdf')
pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))
from reportlab.lib.fonts import addMapping
addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')
c.setFont('ArabicRiyadh', 32)
TEST = u'ÊÇáÈí'
#temp = unicode("ÊÇáÈíþ", "ISO-8859-13")
c.drawString(100, 700,TEST.encode('utf-8'))
c.save()
the output was not ÊÇáÈí' at all, it another word.
by the way, i am uisng adode acrobat ME , and i used another viewer but the same thing took place.
i tried sending the ttf file to u, but the coz of its size, the modrator of the group send me a notification back.
thanks in advance,
sam ellawindy
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1954263328-1068586563=:30363--
From reportlab-users@reportlab.com Tue Nov 11 22:39:07 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Tue, 11 Nov 2003 22:39:07 -0000
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031111213603.31696.qmail@web60001.mail.yahoo.com>
Message-ID:
This is a multi-part message in MIME format.
------=_NextPart_000_0039_01C3A8A4.9DD7E2E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sarah,
Thanks for sending this sample code and the font; now
perhaps we can help.
Attached messages are held until one of us approves them. I just
approved it so it should arrive in a few minutes; usually this happens
in the mornings UK time.
Do you have an example of a real, small PDF document containing
this? e.g. could you type the same word in Notepad or Word
and distill it to PDF, then send us that? This would let some of us
look inside the file to see how things are stored.
Thanks,
Andy Robinson
-----Original Message-----
From: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com]On Behalf Of sarah el-lawindy
Sent: 11 November 2003 21:36
To: reportlab-users@reportlab.com
Subject: Re: [reportlab-users] Come on, i am so messed up and i need
anything from u
Marius Gedminas ,
thanks for replying. here is the code i wrote:
import reportlab.rl_config
reportlab.rl_config.warnOnMissingFontGlyphs = 0
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfgen import canvas
c = canvas.Canvas('t.pdf')
pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))
from reportlab.lib.fonts import addMapping
addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')
c.setFont('ArabicRiyadh', 32)
TEST = u'JGaHm'
#temp = unicode("JGaHm~", "ISO-8859-13")
c.drawString(100, 700,TEST.encode('utf-8'))
c.save()
the output was not JGaHm' at all, it another word.
by the way, i am uisng adode acrobat ME , and i used another viewer but
the same thing took place.
i tried sending the ttf file to u, but the coz of its size, the modrator
of the group send me a notification back.
thanks in advance,
sam ellawindy
----------------------------------------------------------------------------
--
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
------=_NextPart_000_0039_01C3A8A4.9DD7E2E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Sarah,
Thanks=20
for sending this sample code and the font; now
perhaps we can help.
Attached messages are held until one of us approves them. =
I=20
just
approved it so it should arrive in a few minutes; usually this=20
happens
in the=20
mornings UK time.
Do you=20
have an example of a real, small PDF document =
containing
this? e.g. could you type the same word in Notepad or=20
Word
and=20
distill it to PDF, then send us that? This would let some of=20
us
look=20
inside the file to see how things are stored.
Thanks,
Andy=20
Robinson
Marius Gedminas ,
=
thanks for=20
replying. here is the code i wrote:
import =
reportlab.rl_config
=20
reportlab.rl_config.warnOnMissingFontGlyphs =3D 0 =
from=20
reportlab.pdfbase import pdfmetrics
from=20
reportlab.pdfbase.ttfonts import TTFont
from=20
reportlab.pdfgen import canvas
c =3D=20
canvas.Canvas('t.pdf')
=20
pdfmetrics.registerFont(TTFont('ArabicRiyadh',=20
'ArabicRiyadh.ttf'))
from reportlab.lib.fonts =
import=20
addMapping
addMapping('ArabicRiyadh', 0, 0,=20
'ArabicRiyadh')
c.setFont('ArabicRiyadh',=20
32)
TEST =3D u'JGaHm'
=
#temp =3D=20
unicode("JGaHm~", "ISO-8859-13")
=
c.drawString(100,=20
700,TEST.encode('utf-8'))
c.save()
the output was not JGaHm' at all, it another word.
by the way, =
i am=20
uisng adode acrobat ME , and i used another viewer but the same =
thing=20
took place.
i tried sending the ttf file to u, but the coz of its =
size, the=20
modrator of the group send me a notification back.
thanks in=20
advance,
sam ellawindy
Do you Yahoo!?
Protect=20
your identity with Yahoo! Mail =
AddressGuard
------=_NextPart_000_0039_01C3A8A4.9DD7E2E0--
From reportlab-users@reportlab.com Wed Nov 12 13:43:02 2003
From: reportlab-users@reportlab.com (Marc Stober)
Date: Wed, 12 Nov 2003 08:43:02 -0500
Subject: [reportlab-users] RE: Tracing and Debugging support in Platypus
Message-ID: <2546C8F5D3D2D411857F00508BDCA4E80125F929@dalbar_mail.dalbar.com>
Hi Andy -
What you proposed for tracing info sounds great. Maybe we could just add an
option that lets you catch an error, trace/log it, skip over that flowable
(maybe print a big X or something in the space as a placeholder) and
continue printing. My philosophy is it's better to be able to show the
report to the boss with one page missing, than have all but one page working
and nothing to show for it. This could also provide a way to visually see
the problem. Of course, there would have to be a way to turn this off for
web-based system where reports are sent directly to the end user.
- Marc
From reportlab-users@reportlab.com Wed Nov 12 11:16:33 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Wed, 12 Nov 2003 11:16:33 +0000
Subject: [reportlab-users] ttfonts in renderPM
Message-ID:
I have had some success in adding TTF support to renderPM. The current
state of play is that if freetype2 is available and made known to
setup.py we can compile _renderPM to support truetype.
It works as follows.
1) register the font in the normal way using
pdfmetrics.registerFont(ttfonts.TTFont(fontName, ttf_filename))
2) use it.
String(x, y, text, fontName=fontName, fontSize = fontSize)
Internals
=========
We are currently still using the original mechanism and also freetype to
get the curves for drawing fonts. So when setFont is called on a
_renderPM.gstate the search is as follows
check to see if any gt1 parsed font is known if yes then use it
if pdfmetrics fonts dictionary has a font[name]:
if font[name]._ft_face exists: use that for freetype
elif font[name]._ttf_data exists:
font[name]._ft_face = FT_New_Memory_Face(.....)
else:
fail
return use the _ft_face as the current font.
If the above fails we are currently allowing an attempt at using
pdfmetrics.getFont(fontName) to locate a suitable font.
this currently will only search for T1 fonts. If a font is found in this
last gasp we then assume it's T1 and use _renderPM.makeT1Font(fontName,f
.face.findT1File(),f.encoding.vector) to get it known. getFont could be
extended to dynamically load other fonts, but we would then need to
avoid the makeT1Font if the discovered font wasn't of the required kind.
If the above succeeds we set the gstate's font to be either a gt1 font
or a freetype face. We have to keep extra state to allow the curve
generation mechanism to distinguish between the different font kinds.
Problems
========
One problem with the above is that we have two mechanisms for font
curves, we could use a modified scheme to use FT for type 1 as well.
Another problem is that even registered T1 fonts require us to check
Future
======
There's no particular preference for TTF in the above. If we start using
OTF then it can be adapted easily to do that as well.
The current scheme is not caching glyphs/curves so it is probably not
very time efficient. It does cache the face (using the _ft_face
attribute).
--
Robin Becker
From reportlab-users@reportlab.com Wed Nov 12 15:07:09 2003
From: reportlab-users@reportlab.com (Richard Austin)
Date: Wed, 12 Nov 2003 15:07:09 -0000
Subject: [reportlab-users] Testing
Message-ID:
Testing.
From reportlab-users@reportlab.com Thu Nov 13 09:07:48 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Thu, 13 Nov 2003 09:07:48 +0000
Subject: [reportlab-users] testing
Message-ID: <1AosXKAkn0s$EwDs@jessikat.fsnet.co.uk>
This is a test message to see if the list is alive.
--
Robin Becker
From reportlab-users@reportlab.com Thu Nov 13 19:28:10 2003
From: reportlab-users@reportlab.com (Marius Gedminas)
Date: Thu, 13 Nov 2003 21:28:10 +0200
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To: <20031111213603.31696.qmail@web60001.mail.yahoo.com>
References: <20031110225001.GB32585@gintaras> <20031111213603.31696.qmail@web60001.mail.yahoo.com>
Message-ID: <20031113192810.GD4789@gintaras>
--cHMo6Wbp1wrKhbfi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Nov 11, 2003 at 01:36:03PM -0800, sarah el-lawindy wrote:
> Marius Gedminas ,
> thanks for replying. here is the code i wrote:
>=20
> import reportlab.rl_config
> reportlab.rl_config.warnOnMissingFontGlyphs =3D 0=20
> from reportlab.pdfbase import pdfmetrics
> from reportlab.pdfbase.ttfonts import TTFont
> from reportlab.pdfgen import canvas
> c =3D canvas.Canvas('t.pdf')
> pdfmetrics.registerFont(TTFont('ArabicRiyadh', 'ArabicRiyadh.ttf'))
> from reportlab.lib.fonts import addMapping
> addMapping('ArabicRiyadh', 0, 0, 'ArabicRiyadh')
> c.setFont('ArabicRiyadh', 32)
This line is suspect:
> TEST =3D u'?????'
This can work only if you use Python 2.3 and have an appropriate
character coding specified near the top of the file.
As a first step, could you replace real characters with Unicode escapes,
e.g.
TEST =3D u'\u1234\u5678\u9ABC'
Find out the real Unicode numbers for the characters you use; I cannot
do that because I only see ASCII question mark characters in your
email.
If it works, you can try
TEST =3D unicode('?????', 'encoding-used-for-arabic-text')
Substitute the appropriate encoding up there, I do not know which one is
usually used for Arabic.
Marius Gedminas
--=20
I am right now in the process of reading the Xft source code (the suspense =
near
the end of Chapter 7 is unbearable) [...]
-- Juliusz Chroboczek
--cHMo6Wbp1wrKhbfi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/s9tKkVdEXeem148RAk1jAJ99/QHEguy2BkLnKCy62ohX3JPBjQCePswn
aA6MTXl63X9Uj9BfS3Bvcmo=
=26oy
-----END PGP SIGNATURE-----
--cHMo6Wbp1wrKhbfi--
From reportlab-users@reportlab.com Fri Nov 14 00:54:34 2003
From: reportlab-users@reportlab.com (Andy Robinson)
Date: Fri, 14 Nov 2003 00:54:34 -0000
Subject: [reportlab-users] RE: Tracing and Debugging support in Platypus
In-Reply-To: <2546C8F5D3D2D411857F00508BDCA4E80125F929@dalbar_mail.dalbar.com>
Message-ID:
> Hi Andy -
>
> What you proposed for tracing info sounds great. Maybe we could
> just add an
> option that lets you catch an error, trace/log it, skip over that flowable
> (maybe print a big X or something in the space as a placeholder) and
> continue printing. My philosophy is it's better to be able to show the
> report to the boss with one page missing, than have all but one
> page working
> and nothing to show for it. This could also provide a way to visually see
> the problem. Of course, there would have to be a way to turn this off for
> web-based system where reports are sent directly to the end user.
This makes sense. I will try to add some errorHandlingMode to
doctemplate's handleFlowable method on the next pass. Probably
at the weekend.
- Andy
From reportlab-users@reportlab.com Sat Nov 15 11:08:47 2003
From: reportlab-users@reportlab.com (Andreas Jung)
Date: Sat, 15 Nov 2003 12:08:47 +0100
Subject: [reportlab-users] Image() hangs
Message-ID: <2147483647.1068898127@[192.168.0.101]>
I installed latest Reportlab and latest PIL release on Linux and MacOSX.
When I run the gfe.py script from the Demos section then everything works
fine. When I add "Elements.append(Image('some.jpg'))" then process
hangs (I waited for 5 minutes). This behaviour is reproducable under Linux
and MacOSX. Any ideas?
-aj
From reportlab-users@reportlab.com Sat Nov 15 11:12:27 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Sat, 15 Nov 2003 12:12:27 +0100
Subject: [reportlab-users] Image() hangs
In-Reply-To: <2147483647.1068898127@[192.168.0.101]>
References: <2147483647.1068898127@[192.168.0.101]>
Message-ID: <20031115111227.GA18852@mail.librelogiciel.com>
On Sat, Nov 15, 2003 at 12:08:47PM +0100, Andreas Jung wrote:
> I installed latest Reportlab and latest PIL release on Linux and MacOSX.
> When I run the gfe.py script from the Demos section then everything works
> fine. When I add "Elements.append(Image('some.jpg'))" then process
> hangs (I waited for 5 minutes). This behaviour is reproducable under Linux
> and MacOSX. Any ideas?
Always with the same picture or not ?
I've already seen PIL fail miserably (but not hang) with some images
which were correct in other tools.
bye,
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Sat Nov 15 11:17:19 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Sat, 15 Nov 2003 12:17:19 +0100
Subject: [reportlab-users] Image() hangs
In-Reply-To: <20031115111227.GA18852@mail.librelogiciel.com>
References: <2147483647.1068898127@[192.168.0.101]> <20031115111227.GA18852@mail.librelogiciel.com>
Message-ID: <20031115111718.GA19085@mail.librelogiciel.com>
On Sat, Nov 15, 2003 at 12:12:27PM +0100, Jerome Alet wrote:
> On Sat, Nov 15, 2003 at 12:08:47PM +0100, Andreas Jung wrote:
> > I installed latest Reportlab and latest PIL release on Linux and MacOSX.
> > When I run the gfe.py script from the Demos section then everything works
> > fine. When I add "Elements.append(Image('some.jpg'))" then process
> > hangs (I waited for 5 minutes). This behaviour is reproducable under Linux
> > and MacOSX. Any ideas?
>
> I've already seen PIL fail miserably (but not hang) with some images
> which were correct in other tools.
I just remember that jpeg images are dealed with internally in RL.
sorry
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Sat Nov 15 11:25:21 2003
From: reportlab-users@reportlab.com (Robin Becker)
Date: Sat, 15 Nov 2003 11:25:21 +0000
Subject: [reportlab-users] Image() hangs
In-Reply-To: <2147483647.1068898127@[192.168.0.101]>
References: <2147483647.1068898127@[192.168.0.101]>
Message-ID:
In article <2147483647.1068898127@[192.168.0.101]>, Andreas Jung
writes
>I installed latest Reportlab and latest PIL release on Linux and MacOSX.
>When I run the gfe.py script from the Demos section then everything works
>fine. When I add "Elements.append(Image('some.jpg'))" then process
>hangs (I waited for 5 minutes). This behaviour is reproducable under Linux
>and MacOSX. Any ideas?
>
>-aj
>_______________________________________________
>reportlab-users mailing list
>reportlab-users@reportlab.com
>http://two.pairlist.net/mailman/listinfo/reportlab-users
>
well I tried this in windows
Elements.append(Image(r'\code\reportlab\graphics\pmout\renderPM0.jpg'))
where that jpg is part of the output of the test built into renderPM.py
and it seems to work for me. I put the image in the first element
however. Does this happen only for jpegs? Have you tried a gif or png?
--
Robin Becker
From reportlab-users@reportlab.com Sun Nov 16 09:12:16 2003
From: reportlab-users@reportlab.com (sarah el-lawindy)
Date: Sun, 16 Nov 2003 01:12:16 -0800 (PST)
Subject: [reportlab-users] Come on, i am so messed up and i need anything from u
In-Reply-To:
Message-ID: <20031116091216.28125.qmail@web60001.mail.yahoo.com>
--0-1233591207-1068973936=:26055
Content-Type: text/plain; charset=us-ascii
Sir,
i forget telling u something , a warning was araised during compilation :
sys:1: DeprecationWarning: Non-ASCII character '\xca' in file wxApp1.py on line 42, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
C:\PYTHON23\lib\reportlab\pdfbase\ttfonts.py:309: FutureWarning: x<Sir,
i forget telling u something , a warning was araised during compilation :
sys:1: DeprecationWarning: Non-ASCII character '\xca' in file wxApp1.py on line 42, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
C:\PYTHON23\lib\reportlab\pdfbase\ttfonts.py:309: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up
####where line 42 is the unicode string i want to write in the pdf file
so i fetched the given URL (pep-0263), from it , i understood that if we want to use a certain encoding, then the whole src code of the python should use the same encoding.
i assumed then that we need to change 1st the file encoding and then we could use the one that is used in arabic (normally, the arabic encoding used with windows is - AR8MSWIN1256)(p.s. the platform used is win98 )
i got 2 questions then:
1. whether i got that document wrong or right?
2. if i got it right, how to change the source code file encoding?
thanks u for ur concern,
sarah ellawindy
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-1233591207-1068973936=:26055--
From reportlab-users@reportlab.com Sat Nov 15 11:20:28 2003
From: reportlab-users@reportlab.com (Andreas Jung)
Date: Sat, 15 Nov 2003 12:20:28 +0100
Subject: [reportlab-users] Image() hangs
In-Reply-To: <20031115111227.GA18852@mail.librelogiciel.com>
References: <2147483647.1068898127@[192.168.0.101]>
<20031115111227.GA18852@mail.librelogiciel.com>
Message-ID: <2147483647.1068898828@[192.168.0.101]>
--On Samstag, 15. November 2003 12:12 Uhr +0100 Jerome Alet
wrote:
> On Sat, Nov 15, 2003 at 12:08:47PM +0100, Andreas Jung wrote:
>> I installed latest Reportlab and latest PIL release on Linux and MacOSX.
>> When I run the gfe.py script from the Demos section then everything works
>> fine. When I add "Elements.append(Image('some.jpg'))" then process
>> hangs (I waited for 5 minutes). This behaviour is reproducable under
>> Linux and MacOSX. Any ideas?
>
> Always with the same picture or not ?
>
Also with different pictures.
Andreas
From reportlab-users@reportlab.com Sat Nov 15 15:31:05 2003
From: reportlab-users@reportlab.com (Dinu Gherman)
Date: Sat, 15 Nov 2003 16:31:05 +0100
Subject: [reportlab-users] Image() hangs
In-Reply-To: <20031115111227.GA18852@mail.librelogiciel.com>
Message-ID:
Jerome Alet:
> I've already seen PIL fail miserably (but not hang) with some images
> which were correct in other tools.
Especially TIFFs...
Dinu
--
Dinu C. Gherman - http://python.net/~gherman
......................................................................
"As long as people believe in absurdities, they will continue to
commit atrocities." (Voltaire)
From reportlab-users@reportlab.com Tue Nov 18 17:06:58 2003
From: reportlab-users@reportlab.com (Ben Mitchell)
Date: Tue, 18 Nov 2003 09:06:58 -0800
Subject: [reportlab-users] Document Security
In-Reply-To:
References:
Message-ID: <1069175218.3fba51b235b91@www.mitchellfamily.com>
Hi Folks,
I'm new to the list and to ReportLab, and I've read through the documentation
but couldn't find much in the way of references to securing the PDFs I generate.
If I don't want people to be able to extract / copy / past the text I put into
the PDFs I'm generating, is there a good way to do that? I know I've seen PDFs
in the past that worked this way - just not sure what the process would be for
creating one.
Thanks in advance!
-Ben
From reportlab-users@reportlab.com Tue Nov 18 17:17:54 2003
From: reportlab-users@reportlab.com (Jerome Alet)
Date: Tue, 18 Nov 2003 18:17:54 +0100
Subject: [reportlab-users] Document Security
In-Reply-To: <1069175218.3fba51b235b91@www.mitchellfamily.com>
References: <1069175218.3fba51b235b91@www.mitchellfamily.com>
Message-ID: <20031118171754.GA11514@mail.librelogiciel.com>
Hi,
On Tue, Nov 18, 2003 at 09:06:58AM -0800, Ben Mitchell wrote:
>
> I'm new to the list and to ReportLab, and I've read through the documentation
> but couldn't find much in the way of references to securing the PDFs I generate.
I guess ReportLab's commercial products can handle this.
bye
Jerome Alet
--
"A non-free program is a predatory social system that keeps people
in a state of domination and division, and uses the spoils to
dominate more." - RMS
From reportlab-users@reportlab.com Wed Nov 19 08:34:17 2003
From: reportlab-users@reportlab.com (John Leach)
Date: Wed, 19 Nov 2003 19:34:17 +1100
Subject: [reportlab-users] Advice on switching from XSL-FO (FOP) to ReportLabs
In-Reply-To:
References:
Message-ID: <200311191934.17259.reportlab@osware.net>
> We're in the middle of developing a large ERP system, a big component of
> which is a reporting module.
I hope that's in Python - that would be lovely. Never had time to finish the
one I started.
> We're currently evaluating other free and open-source tools. We've played
> around with the ReportLabs demos and are impressed, especially with the
> speed of execution, so we're asking if anyone familiar with the ReportLabs
> toolkit could give us some advice/pointers.
I use the wonderful ReportLab to produce invoice/purchase orders etc out of
legacy systems like SAP etc. The thing that I notice is how very different
these documents can be between companies - some want multiple copies, some
want watermarks, etc, etc. So the approach I have adopted is that I have a
GUI that allows the header/footer/detail lines/continuation headers/footers
to be designed on screen - and this then generates a script which can be
tweaked manually using a text editor according to the particular requirements
of the user. Others no doubt have different approaches.
I've never thought it possible to have a GUI that does everything that people
are going to need in a specialsied business document.
BTW I highly recommend ReportLab.
John Leach
http://osware.net
From reportlab-users@reportlab.com Wed Nov 19 17:40:53 2003
From: reportlab-users@reportlab.com (Tim Roberts)
Date: Wed, 19 Nov 2003 09:40:53 -0800
Subject: [reportlab-users] Document Security
In-Reply-To: <20031119070627.821F024E56@two.pairlist.net>
Message-ID: <200311191740.hAJHeqH05648@probo.probo.com>
On Tue, 18 Nov 2003 09:06:58 -0800, Ben Mitchell
wrote:
>
>If I don't want people to be able to extract / copy / past the text I put into
>the PDFs I'm generating, is there a good way to do that?
No.
>I know I've seen PDFs in the past that worked this way - just not sure
>what the process would be for creating one.
Your goal is silly. As long as I have a PDF, I can print your document
and scan it with an OCR reader. I can use the PrintScreen key to take a
snapshot to a bitmap and use an OCR reader. The visually-impaired will
curse you for breaking their screen readers.
Preventing cut-and-paste gives you a false sense of security.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
From reportlab-users@reportlab.com Thu Nov 20 15:19:23 2003
From: reportlab-users@reportlab.com (Ben Mitchell)
Date: Thu, 20 Nov 2003 07:19:23 -0800
Subject: [reportlab-users] Document Security
In-Reply-To: <200311191740.hAJHeqH05648@probo.probo.com>
References: <200311191740.hAJHeqH05648@probo.probo.com>
Message-ID:
Hey Tim, thanks for the helpful post.
Just so you know, you can also use any of the many encrypted-PDF
crackers out there to remove the restrictions altogether. Probably a
lot faster than your current OCR approach. (Though there is that whole
federal criminal offense thing you've gotta worry about with the DMCA
and all.)
Anyway, it turns out that most people don't have the skills and
motivation that someone of your obvious ability does Tim, and they tend
to give up pretty easy.
It also turns out that I have no delusions about the depth of security
generated by such restrictions (but hey, thanks again for assuming the
worst of me). Instead, I'm looking to raise the bar a tiny bit to cut
down on secondary distribution of my content in a presentation other
than the original PDF, which will contain all kinds of good faith
reminders that you shouldn't be distributing the thing around in the
first place, and some personally identifiable information about the
document's purchaser to ensure that he's reluctant to release it into
the wild. A motivated individual can obviously thwart this if he
cares, but if the documents are priced reasonably in the first place,
the incentive is low.
So for anyone interested in an ANSWER (rather than useless posts
telling me I'm dumb) I've found one.
iText (open source from www.lowagie.com) has as part of its
distribution a command-line Java utility (which I've now tested on
Linux, Mac OS X and Windows without problems) called encrypt_pdf.
It takes as input an existing PDF filename, an output filename,
passwords to apply, and a bitmask indicating how you'd like the
standard PDF security parameters applied, and creates a new PDF as