From robin at reportlab.com Tue Sep 1 05:13:19 2009 From: robin at reportlab.com (Robin Becker) Date: Tue, 01 Sep 2009 10:13:19 +0100 Subject: [reportlab-users] Canvas background In-Reply-To: <1251561382.7424.8.camel@aspire> References: <1251561382.7424.8.camel@aspire> Message-ID: <4A9CE5AF.2070902@chamonix.reportlab.co.uk> Harry Waye wrote: > Hello, > > I'm trying to merge (using pyPdf) a template pdf with a pdf generated > from rml with trml2pdf. The rml generated pdf appears to have a white > background, thus obscures the template pdf on merging. I would like it > to be transparent. > so far as I know reportlab draws only where it's told to. So I don't think there should be any overall page background. If trml2pdf is really tiny rml then it may be something that tiny rml does. > Is this something that can be specified in rml? Is there any way I can > import the template pdf on generation? I noticed there was an include > pdf tag in the rml user guide, but I get the feeling that it places the > included pdf on top. Is there anything else I can do? > The include tag is used to include content. Including a background PDF in rml is something we do all the time, but we do use pageCatcher in rml2pdf to do that. Order of operations is important so backgrounds are included first. > Is placing a background colour on the pdf an attempt to stop me doing > such things, and to push be to PageCatcher? ;-) > Not by us at least. -- Robin Becker From robin at reportlab.com Tue Sep 1 05:24:50 2009 From: robin at reportlab.com (Robin Becker) Date: Tue, 01 Sep 2009 10:24:50 +0100 Subject: [reportlab-users] BUG: Indenters not allowed in table cells? In-Reply-To: <200908281533.23146.ralsina@netmanagers.com.ar> References: <200908281533.23146.ralsina@netmanagers.com.ar> Message-ID: <4A9CE862.5030409@chamonix.reportlab.co.uk> Roberto Alsina wrote: > I had a problem doing this in rst2pdf, but I am now thinking this may be a > reportlab limitation. If I use an Indenter flowable in a cell, I get an > exception about Indenters not having a width. > > This is with RL 2.3 ....... I think this is a limitation. Indenters and other action flowables were intended to act on frames which are fixed size. Unfortunately for fairly obvious reasons we don't create a frame for each cell at wrap or draw time; originally cells were expected to contain strings, then strings or paragraphs then strings or lists of flowables. Unfortunately that leads to problems when we have action flowables like next frame or page break or in this case indenter. It's arguable that we ought to allow almost arbitrary levels of complexity in every container like object; why should we disallow multi column text in a cell? Pragmatism says no to that idealism. -- Robin Becker From hwaye at microwayes.net Tue Sep 1 05:51:42 2009 From: hwaye at microwayes.net (Harry Waye) Date: Tue, 01 Sep 2009 10:51:42 +0100 Subject: [reportlab-users] Canvas background In-Reply-To: <4A9CE5AF.2070902@chamonix.reportlab.co.uk> References: <1251561382.7424.8.camel@aspire> <4A9CE5AF.2070902@chamonix.reportlab.co.uk> Message-ID: <1251798703.2608.13.camel@aspire> Thanks for the info. I'll have a look at what trml2pdf is doing with the background, and see if it supports passing of the include tag. If I get desperate I'll have a look at pageCatcher, do you have a none broken link. My brief google search and mailing list links produced only dead ones. A donations system for pageCatcher (as opposed to purchase) would be appreciated. On Tue, 2009-09-01 at 10:13 +0100, Robin Becker wrote: > Harry Waye wrote: > > Hello, > > > > I'm trying to merge (using pyPdf) a template pdf with a pdf generated > > from rml with trml2pdf. The rml generated pdf appears to have a white > > background, thus obscures the template pdf on merging. I would like it > > to be transparent. > > > > so far as I know reportlab draws only where it's told to. So I don't think there > should be any overall page background. If trml2pdf is really tiny rml then it > may be something that tiny rml does. > > > Is this something that can be specified in rml? Is there any way I can > > import the template pdf on generation? I noticed there was an include > > pdf tag in the rml user guide, but I get the feeling that it places the > > included pdf on top. Is there anything else I can do? > > > > The include tag is used to include content. Including a background PDF in rml is > something we do all the time, but we do use pageCatcher in rml2pdf to do that. > Order of operations is important so backgrounds are included first. > > > Is placing a background colour on the pdf an attempt to stop me doing > > such things, and to push be to PageCatcher? ;-) > > > Not by us at least. From Jason.Brower at kone.com Tue Sep 1 06:27:13 2009 From: Jason.Brower at kone.com (Brower Jason) Date: Tue, 1 Sep 2009 12:27:13 +0200 Subject: [reportlab-users] Appending PDF's to each other... Message-ID: <7BEADC998EA85041A0170E2F5F726D2F014C02BA@EUDEXC01.KONENET.COM> It may be a little off topic but, I have very large amounts of data that are processed to create a report. When I am gathering data it not only takes a lot of memory but a lot of time. My solution seems that I create a system similar to pagination. I load 8 large parts of the report to make up 1 page of data and then save the pdf. I then repeat that until I have all the parts done for the PDF. Then when they are all done and save to a specific location I append them and offer them as a download that the client can click on. So, any ideas on software in Linux that could do this Appending PDF documents feature on a server application? --- Regards, Jason Brower -------------- next part -------------- An HTML attachment was scrubbed... URL: From ralsina at netmanagers.com.ar Tue Sep 1 06:24:26 2009 From: ralsina at netmanagers.com.ar (Roberto Alsina) Date: Tue, 1 Sep 2009 07:24:26 -0300 Subject: [reportlab-users] BUG: Indenters not allowed in table cells? In-Reply-To: <4A9CE862.5030409@chamonix.reportlab.co.uk> References: <200908281533.23146.ralsina@netmanagers.com.ar> <4A9CE862.5030409@chamonix.reportlab.co.uk> Message-ID: <200909010724.26774.ralsina@netmanagers.com.ar> On Tuesday 01 September 2009 06:24:50 Robin Becker wrote: > I think this is a limitation. Indenters and other action flowables were > intended to act on frames which are fixed size. Unfortunately for fairly > obvious reasons we don't create a frame for each cell at wrap or draw time; > originally cells were expected to contain strings, then strings or > paragraphs then strings or lists of flowables. Unfortunately that leads to > problems when we have action flowables like next frame or page break or in > this case indenter. > > It's arguable that we ought to allow almost arbitrary levels of complexity > in every container like object; why should we disallow multi column text in > a cell? > > Pragmatism says no to that idealism. Ok, worked around it by nesting tables. -- ("\''/").__..-''"`-. . Roberto Alsina `9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i).' ((!.' according to alexa.com (27/5/2007) From gherman at darwin.in-berlin.de Tue Sep 1 06:35:04 2009 From: gherman at darwin.in-berlin.de (Dinu Gherman) Date: Tue, 1 Sep 2009 12:35:04 +0200 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <7BEADC998EA85041A0170E2F5F726D2F014C02BA@EUDEXC01.KONENET.COM> References: <7BEADC998EA85041A0170E2F5F726D2F014C02BA@EUDEXC01.KONENET.COM> Message-ID: <96E6FB20-DEC8-4776-9BE1-F5D9EA40E111@darwin.in-berlin.de> Brower Jason: > It may be a little off topic but, > > I have very large amounts of data that are processed to create a > report. When I am gathering data it not only takes a lot of memory > but a lot of time. > > My solution seems that I create a system similar to pagination. I > load 8 large parts of the report to make up 1 page of data and then > save the pdf. I then repeat that until I have all the parts done > for the PDF. > > Then when they are all done and save to a specific location I append > them and offer them as a download that the client can click on. > > So, any ideas on software in Linux that could do this Appending PDF > documents feature on a server application? > PyPDF is probably the answer. Look also into some projects of mine using it with or without reportlab, like: http://pypi.python.org/pypi/pdfnup http://pypi.python.org/pypi/pdfgrid Regards, Dinu ...................................................................... Follow me on Twitter: http://twitter.com/dinugherman From Jason.Brower at kone.com Tue Sep 1 07:05:40 2009 From: Jason.Brower at kone.com (Brower Jason) Date: Tue, 1 Sep 2009 13:05:40 +0200 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <96E6FB20-DEC8-4776-9BE1-F5D9EA40E111@darwin.in-berlin.de> Message-ID: <7BEADC998EA85041A0170E2F5F726D2F014C032A@EUDEXC01.KONENET.COM> Nice; that was perfect, thanks! --- Regards, Jason Brower -----Original Message----- From: reportlab-users-bounces at reportlab.com [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Dinu Gherman Sent: 01/09/2009 13:35 To: Support list for users of Reportlab software Subject: Re: [reportlab-users] Appending PDF's to each other... Brower Jason: > It may be a little off topic but, > > I have very large amounts of data that are processed to create a > report. When I am gathering data it not only takes a lot of memory > but a lot of time. > > My solution seems that I create a system similar to pagination. I > load 8 large parts of the report to make up 1 page of data and then > save the pdf. I then repeat that until I have all the parts done > for the PDF. > > Then when they are all done and save to a specific location I append > them and offer them as a download that the client can click on. > > So, any ideas on software in Linux that could do this Appending PDF > documents feature on a server application? > PyPDF is probably the answer. Look also into some projects of mine using it with or without reportlab, like: http://pypi.python.org/pypi/pdfnup http://pypi.python.org/pypi/pdfgrid Regards, Dinu ...................................................................... Follow me on Twitter: http://twitter.com/dinugherman _______________________________________________ reportlab-users mailing list reportlab-users at reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users From dkuhlman at rexx.com Tue Sep 1 19:07:38 2009 From: dkuhlman at rexx.com (Dave Kuhlman) Date: Tue, 1 Sep 2009 16:07:38 -0700 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <7BEADC998EA85041A0170E2F5F726D2F014C02BA@EUDEXC01.KONENET.COM> References: <7BEADC998EA85041A0170E2F5F726D2F014C02BA@EUDEXC01.KONENET.COM> Message-ID: <20090901230738.GB62232@cutter.rexx.com> On Tue, Sep 01, 2009 at 12:27:13PM +0200, Brower Jason wrote: > > It may be a little off topic but, > > I have very large amounts of data that are processed to create a > report. When I am gathering data it not only takes a lot of memory > but a lot of time. > > My solution seems that I create a system similar to pagination. I > load 8 large parts of the report to make up 1 page of data and then > save the pdf. I then repeat that until I have all the parts done for > the PDF. > > Then when they are all done and save to a specific location I append > them and offer them as a download that the client can click on. > > So, any ideas on software in Linux that could do this Appending PDF > documents feature on a server application? You might want to look at pdftk. On my Ubuntu GNU/Linux system, it's installable with apt-get. Here is a description: #=================================================== Description: useful tool for manipulating PDF documents If PDF is electronic paper, then pdftk is an electronic stapler-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: * Merge PDF documents * Split PDF pages into a new document * Decrypt input as necessary (password required) * Encrypt output as desired * Fill PDF Forms with FDF Data and/or Flatten Forms * Apply a Background Watermark * Report PDF on metrics, including metadata and bookmarks * Update PDF Metadata * Attach Files to PDF Pages or the PDF Document * Unpack PDF Attachments * Burst a PDF document into single pages * Uncompress and re-compress page streams * Repair corrupted PDF (where possible) #=================================================== - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman From Jason.Brower at kone.com Wed Sep 2 02:03:13 2009 From: Jason.Brower at kone.com (Brower Jason) Date: Wed, 2 Sep 2009 08:03:13 +0200 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <20090901230738.GB62232@cutter.rexx.com> Message-ID: <7BEADC998EA85041A0170E2F5F726D2F014C092C@EUDEXC01.KONENET.COM> Thank you, that is also useful to use. Regards, Jason Brower -----Original Message----- From: reportlab-users-bounces at reportlab.com [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of Dave Kuhlman Sent: 02/09/2009 2:08 To: Support list for users of Reportlab software Subject: Re: [reportlab-users] Appending PDF's to each other... On Tue, Sep 01, 2009 at 12:27:13PM +0200, Brower Jason wrote: > > It may be a little off topic but, > > I have very large amounts of data that are processed to create a > report. When I am gathering data it not only takes a lot of memory > but a lot of time. > > My solution seems that I create a system similar to pagination. I > load 8 large parts of the report to make up 1 page of data and then > save the pdf. I then repeat that until I have all the parts done for > the PDF. > > Then when they are all done and save to a specific location I append > them and offer them as a download that the client can click on. > > So, any ideas on software in Linux that could do this Appending PDF > documents feature on a server application? You might want to look at pdftk. On my Ubuntu GNU/Linux system, it's installable with apt-get. Here is a description: #=================================================== Description: useful tool for manipulating PDF documents If PDF is electronic paper, then pdftk is an electronic stapler-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: * Merge PDF documents * Split PDF pages into a new document * Decrypt input as necessary (password required) * Encrypt output as desired * Fill PDF Forms with FDF Data and/or Flatten Forms * Apply a Background Watermark * Report PDF on metrics, including metadata and bookmarks * Update PDF Metadata * Attach Files to PDF Pages or the PDF Document * Unpack PDF Attachments * Burst a PDF document into single pages * Uncompress and re-compress page streams * Repair corrupted PDF (where possible) #=================================================== - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman _______________________________________________ reportlab-users mailing list reportlab-users at reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users From uwe at oss4u.com Wed Sep 2 02:32:44 2009 From: uwe at oss4u.com (Uwe C. Schroeder) Date: Tue, 1 Sep 2009 23:32:44 -0700 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <7BEADC998EA85041A0170E2F5F726D2F014C092C@EUDEXC01.KONENET.COM> References: <7BEADC998EA85041A0170E2F5F726D2F014C092C@EUDEXC01.KONENET.COM> Message-ID: <200909012332.44597.uwe@oss4u.com> On Tuesday 01 September 2009, Brower Jason wrote: > Thank you, that is also useful to use. > Regards, > Jason Brower > I use pyPDF to concatenate a multitude of static PDF's and reportlab generated PDF's. Works like a charm and the code is just a couple of lines. HTH Uwe From richard at ootbcomputers.com Wed Sep 2 03:35:23 2009 From: richard at ootbcomputers.com (Richard S) Date: Wed, 2 Sep 2009 00:35:23 -0700 (PDT) Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <200909012332.44597.uwe@oss4u.com> Message-ID: <20826382.18461251876923316.JavaMail.root@mailer> How do you concatenate static pdf's with pyPDF? TIA Uwe, Richard ----- Original Message ----- From: "Uwe C. Schroeder" To: reportlab-users at reportlab.com Cc: "Brower Jason" Sent: Tuesday, September 1, 2009 11:32:44 PM GMT -08:00 US/Canada Pacific Subject: Re: [reportlab-users] Appending PDF's to each other... On Tuesday 01 September 2009, Brower Jason wrote: > Thank you, that is also useful to use. > Regards, > Jason Brower > I use pyPDF to concatenate a multitude of static PDF's and reportlab generated PDF's. Works like a charm and the code is just a couple of lines. HTH Uwe _______________________________________________ reportlab-users mailing list reportlab-users at reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From gherman at darwin.in-berlin.de Wed Sep 2 04:19:04 2009 From: gherman at darwin.in-berlin.de (Dinu Gherman) Date: Wed, 2 Sep 2009 10:19:04 +0200 Subject: [reportlab-users] Appending PDF's to each other... In-Reply-To: <20826382.18461251876923316.JavaMail.root@mailer> References: <20826382.18461251876923316.JavaMail.root@mailer> Message-ID: Richard S: > How do you concatenate static pdf's with pyPDF? See http://pybrary.net/pyPdf Dinu ...................................................................... Follow me on Twitter: http://twitter.com/dinugherman From laurent.caron.3 at free.fr Fri Sep 4 03:33:17 2009 From: laurent.caron.3 at free.fr (leau2001) Date: Fri, 4 Sep 2009 09:33:17 +0200 (CEST) Subject: [reportlab-users] Reportlab and Django - Beginner - landscape A4 In-Reply-To: <134725190.6020591252049309481.JavaMail.root@zimbra4-e1.priv.proxad.net> Message-ID: <175674447.6021611252049597776.JavaMail.root@zimbra4-e1.priv.proxad.net> HEllo, Im a new user of Reportlab library, and i try to use it with my Django local application. I tried to use table on my page.. i succeed but in want now to use A4 landscape for my pdf... i tried pagesize=landscape(A4), but don't work... I anyone have some advice for reportlab with django, i get it... Thx for Help laurent Here my test_pdf view : # Create the HttpResponse object with the appropriate PDF headers. response = HttpResponse(mimetype='application/pdf') response['Content-Disposition'] = 'attachment; filename=somefilename.pdf pagesize=landscape(A4)' landscape buffer = StringIO() # Create the PDF object, using the StringIO object as its "file." p = canvas.Canvas(buffer) # Draw things on the PDF. Here's where the PDF generation happens. # See the ReportLab documentation for the full list of functionality. p.drawString(100, 100, "Hello world.") t=Table(data_list) t.setStyle(TableStyle([('BACKGROUND',(1,1),(-2,-2),colors.green),('TEXTCOLOR',(0,0),(1,-1),colors.red)])) w, h = t.wrapOn(p,400,100) t.drawOn(p,0,300) # Close the PDF object cleanly. p.showPage() p.save() # Get the value of the StringIO buffer and write it to the response. pdf = buffer.getvalue() buffer.close() response.write(pdf) return response From andy at reportlab.com Fri Sep 4 03:51:22 2009 From: andy at reportlab.com (Andy Robinson) Date: Fri, 4 Sep 2009 08:51:22 +0100 Subject: [reportlab-users] Reportlab and Django - Beginner - landscape A4 In-Reply-To: <175674447.6021611252049597776.JavaMail.root@zimbra4-e1.priv.proxad.net> References: <134725190.6020591252049309481.JavaMail.root@zimbra4-e1.priv.proxad.net> <175674447.6021611252049597776.JavaMail.root@zimbra4-e1.priv.proxad.net> Message-ID: <956003ae0909040051o19f4f7f6p4f45d323a27bbe93@mail.gmail.com> 2009/9/4 leau2001 : > HEllo, > > Im a new user of Reportlab library, and i try to use it with my Django local application. I tried to use table on my page.. i succeed but in want now to use A4 landscape for my pdf... i tried pagesize=landscape(A4), but don't work... > Here's the problem. HTTP knows nothing about page sizes in PDF and cannot affect your PDF file, so don't add pagesize here... > ? ?response['Content-Disposition'] = 'attachment; filename=somefilename.pdf ?pagesize=landscape(A4)' > ? ?p = canvas.Canvas(buffer) Instead, tell ReportLab the size of PDF you want to create: p = canvas.Canvas(buffer, pagesize=landscape(A4)) - Andy From serviciotdf at gmail.com Sat Sep 5 09:58:43 2009 From: serviciotdf at gmail.com (serviciotdf at gmail.com) Date: Sat, 05 Sep 2009 10:58:43 -0300 Subject: [reportlab-users] Barcode: Export to image Message-ID: <4AA26E93.6000307@gmail.com> I have this code for export a barcode to pdf: ### #!/usr/bin/python # -*- coding: utf-8 -*- from reportlab.pdfgen.canvas import Canvas from reportlab.platypus import Frame from reportlab.lib.units import mm from reportlab.graphics.barcode import code93 def run(): string="example" c = Canvas("barcode.pdf") st=code93.Standard93(string) story=[] story.append(st) f = Frame(10*mm, 10*mm, 190*mm, 277*mm, showBoundary=0) f.addFromList(story, c) c.save() if __name__=='__main__': run() ### I need export only the barcode to an image (png, jpg, bmp, etc.) It is possible with reportlab?? Bye. From davids771 at yahoo.com Sun Sep 6 10:02:33 2009 From: davids771 at yahoo.com (dave s) Date: Sun, 6 Sep 2009 07:02:33 -0700 (PDT) Subject: [reportlab-users] reportlab problemsl with two versions of python running in two different locations Message-ID: <719429.98382.qm@web83201.mail.mud.yahoo.com> I need to install reportlab1-19 in Plone Unified Installer2.5.2 at opt/Plone/python2.4.4/lib/python2.4 inside. But when I try to run the setup there for reportlab ie. "python setup.py install" it installs it to my newest version python2.6 in a different directory /usr/lib/python2.6 and not in plone. 2.6 is for other application. How do I keep reportlab isolated to the Plone dirctory? Thanks.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.decaudin at sewan.fr Mon Sep 7 11:31:02 2009 From: benoit.decaudin at sewan.fr (=?ISO-8859-1?B?QmVub+50?= Decaudin) Date: Mon, 07 Sep 2009 17:31:02 +0200 Subject: [reportlab-users] Not embedding fonts? Message-ID: Hello, Does anyone know how to not embed fonts in a PDF generated by ReportLab? I have to generate such PDF for an automated system which does not support embedded fonts, and I can't find a way of doing this. Any help would be much appreciated. Regards, Benoit From timr at probo.com Mon Sep 7 18:21:42 2009 From: timr at probo.com (Tim Roberts) Date: Mon, 07 Sep 2009 15:21:42 -0700 Subject: [reportlab-users] Not embedding fonts? In-Reply-To: References: Message-ID: <4AA58776.1060700@probo.com> Beno?t Decaudin wrote: > Does anyone know how to not embed fonts in a PDF generated by ReportLab? > I have to generate such PDF for an automated system which does not support > embedded fonts, and I can't find a way of doing this. > You just have to limit yourself to the standard Postscript fonts (Helvetica, Times, Courier). As long as you do that, there's shouldn't be any fonts embedded. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From timr at probo.com Mon Sep 7 18:21:53 2009 From: timr at probo.com (Tim Roberts) Date: Mon, 07 Sep 2009 15:21:53 -0700 Subject: [reportlab-users] reportlab problemsl with two versions of python running in two different locations In-Reply-To: <719429.98382.qm@web83201.mail.mud.yahoo.com> References: <719429.98382.qm@web83201.mail.mud.yahoo.com> Message-ID: <4AA58781.1090607@probo.com> dave s wrote: > I need to install reportlab1-19 in Plone Unified Installer2.5.2 at > opt/Plone/python2.4.4/lib/python2.4 inside. But when I try to run the > setup there for reportlab ie. "python setup.py install" it installs it > to my newest version python2.6 in a different directory > /usr/lib/python2.6 and not in plone. 2.6 is for other application. How > do I keep reportlab isolated to the Plone dirctory? > If you are just running "python setup.py install", then you are running your "current" Python interpreter. If you specifically want the Python inside /opt/Plone/python2.4.4, then you need to call it: /opt/Plone/python2.4.4/python setup.py install -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From benoit.decaudin at sewan.fr Tue Sep 8 04:06:35 2009 From: benoit.decaudin at sewan.fr (=?ISO-8859-1?B?QmVub+50?= Decaudin) Date: Tue, 08 Sep 2009 10:06:35 +0200 Subject: [reportlab-users] Not embedding fonts? In-Reply-To: <4AA58776.1060700@probo.com> Message-ID: Tim Roberts wrote: > Beno?t Decaudin wrote: >> Does anyone know how to not embed fonts in a PDF generated by ReportLab? >> I have to generate such PDF for an automated system which does not support >> embedded fonts, and I can't find a way of doing this. >> > > You just have to limit yourself to the standard Postscript fonts > (Helvetica, Times, Courier). As long as you do that, there's shouldn't > be any fonts embedded. Thanks Tim, in fact it seems my documents was already generated without any embedded fonts, the automated system which checks the document just got it wrong. Anyway, thank you for this clarification. Regards, -- Beno?t Decaudin Sewan Communications From marius at gedmin.as Mon Sep 7 13:23:18 2009 From: marius at gedmin.as (Marius Gedminas) Date: Mon, 7 Sep 2009 20:23:18 +0300 Subject: [reportlab-users] Not embedding fonts? In-Reply-To: References: Message-ID: <20090907172318.GA24849@platonas> On Mon, Sep 07, 2009 at 05:31:02PM +0200, Beno?t Decaudin wrote: > Does anyone know how to not embed fonts in a PDF generated by ReportLab? > I have to generate such PDF for an automated system which does not support > embedded fonts, and I can't find a way of doing this. If you use the 14 built-in Adobe fonts (Helvetica, Times, Courier), they won't be embedded. If you use custom TrueType fonts, they will be embedded. AFAIU there's currently no way to disable embedding if you want to use TTFs. Marius Gedminas -- What goes up, must come down. Ask any system administrator. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : From michwill at gmail.com Wed Sep 9 05:41:57 2009 From: michwill at gmail.com (Michael Egorov) Date: Wed, 9 Sep 2009 19:41:57 +1000 Subject: [reportlab-users] Unicode problem in para.py Message-ID: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> I have unicode problem in para.py here: elif standard.has_key(name): fragment = standard[name]+fragment[semi+1:] elif greeks.has_key(name): fragment = greeks[name]+fragment[semi+1:] # just here (line 2041) It happens because greeks[name] is a string whether fragment is unicode. String cannot be converted to unicode if you don't know the encoding. To reproduce that you need any character from greeks in text for Para The patch wich makes it working: --- platypus/para.py (revision 3542) +++ platypus/para.py (working copy) @@ -2038,7 +2038,7 @@ elif standard.has_key(name): fragment = standard[name]+fragment[semi+1:] elif greeks.has_key(name): - fragment = greeks[name]+fragment[semi+1:] + fragment = unicode(greeks[name], "utf-8")+fragment[semi+1:] else: # add back the & fragment = "&"+fragment Is it possible to commit that to the main repository somehow? How to get a developer access to the reportlab svn? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michwill at gmail.com Wed Sep 9 06:01:50 2009 From: michwill at gmail.com (Michael Egorov) Date: Wed, 9 Sep 2009 20:01:50 +1000 Subject: [reportlab-users] Unicode problem in para.py In-Reply-To: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> Message-ID: <1ecf8c840909090301n4e11ec2aq492fef71236bd2f5@mail.gmail.com> P.S. just noticed that if the text is in utf-8 instead of unicode everything is fine 2009/9/9 Michael Egorov > I have unicode problem in para.py here: > > elif standard.has_key(name): > fragment = standard[name]+fragment[semi+1:] > elif greeks.has_key(name): > fragment = greeks[name]+fragment[semi+1:] # just here > (line 2041) > > It happens because greeks[name] is a string whether fragment is unicode. > String cannot be converted to unicode if you don't know the encoding. > To reproduce that you need any character from greeks in text for Para > > The patch wich makes it working: > > --- platypus/para.py (revision 3542) > +++ platypus/para.py (working copy) > @@ -2038,7 +2038,7 @@ > elif standard.has_key(name): > fragment = standard[name]+fragment[semi+1:] > elif greeks.has_key(name): > - fragment = greeks[name]+fragment[semi+1:] > + fragment = unicode(greeks[name], > "utf-8")+fragment[semi+1:] > else: > # add back the & > fragment = "&"+fragment > > Is it possible to commit that to the main repository somehow? > How to get a developer access to the reportlab svn? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at reportlab.com Wed Sep 9 07:12:34 2009 From: andy at reportlab.com (Andy Robinson) Date: Wed, 9 Sep 2009 12:12:34 +0100 Subject: [reportlab-users] Unicode problem in para.py In-Reply-To: <1ecf8c840909090301n4e11ec2aq492fef71236bd2f5@mail.gmail.com> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <1ecf8c840909090301n4e11ec2aq492fef71236bd2f5@mail.gmail.com> Message-ID: <956003ae0909090412t1ed5dd9dnaaeb26fb668a33ed@mail.gmail.com> 2009/9/9 Michael Egorov : > P.S. just noticed that if the text is in utf-8 instead of unicode everything > is fine I'll let our guru Robin decide on the patch, but we did state very clearly that for ReportLab 2.0+ all input must be either in unicode or utf-8. We debated switched 100% to unicode strings, but that would have caused a lot more internal code changes and forced changes on many more people. Best Regards, -- Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK Tel +44-20-8545-1570 From robin at reportlab.com Wed Sep 9 08:23:49 2009 From: robin at reportlab.com (Robin Becker) Date: Wed, 09 Sep 2009 13:23:49 +0100 Subject: [reportlab-users] Unicode problem in para.py In-Reply-To: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> Message-ID: <4AA79E55.8020600@chamonix.reportlab.co.uk> Michael Egorov wrote: > I have unicode problem in para.py here: > > elif standard.has_key(name): > fragment = standard[name]+fragment[semi+1:] > elif greeks.has_key(name): > fragment = greeks[name]+fragment[semi+1:] # just here > (line 2041) > > It happens because greeks[name] is a string whether fragment is unicode. > String cannot be converted to unicode if you don't know the encoding. > To reproduce that you need any character from greeks in text for Para > > The patch wich makes it working: > > --- platypus/para.py (revision 3542) > +++ platypus/para.py (working copy) > @@ -2038,7 +2038,7 @@ > elif standard.has_key(name): > fragment = standard[name]+fragment[semi+1:] > elif greeks.has_key(name): > - fragment = greeks[name]+fragment[semi+1:] > + fragment = unicode(greeks[name], > "utf-8")+fragment[semi+1:] > else: > # add back the & > fragment = "&"+fragment > > Is it possible to commit that to the main repository somehow? > How to get a developer access to the reportlab svn? ....... Logically we have two cases, when fragment is unicode or when fragment is str. We ought to do all of these additions more carefully in the unicode/str world. Does this work for you? --- para.py (revision 3542) +++ para.py (working copy) @@ -2036,9 +2036,15 @@ else: fragment = "&"+fragment elif standard.has_key(name): - fragment = standard[name]+fragment[semi+1:] + s = standard[name] + if isinstance(fragment,unicode): + s = s.decode('utf8') + fragment = s+fragment[semi+1:] elif greeks.has_key(name): - fragment = greeks[name]+fragment[semi+1:] + s = greeks[name] + if isinstance(fragment,unicode): + s = s.decode('utf8') + fragment = s+fragment[semi+1:] else: # add back the & fragment = "&"+fragment I'm not a great user of para.py and it probably doesn't get much attention. -- Robin Becker From michwill at gmail.com Wed Sep 9 08:37:24 2009 From: michwill at gmail.com (Michael Egorov) Date: Wed, 9 Sep 2009 22:37:24 +1000 Subject: [reportlab-users] Unicode problem in para.py In-Reply-To: <4AA79E55.8020600@chamonix.reportlab.co.uk> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> Message-ID: <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> yeah, that's good) Thank you I used para.py just because it supports ul/li lists. They work really not ideally: especially if every li is really long (several strings). I will discuss that later 2009/9/9 Robin Becker > Michael Egorov wrote: > >> I have unicode problem in para.py here: >> >> elif standard.has_key(name): >> fragment = standard[name]+fragment[semi+1:] >> elif greeks.has_key(name): >> fragment = greeks[name]+fragment[semi+1:] # just here >> (line 2041) >> >> It happens because greeks[name] is a string whether fragment is unicode. >> String cannot be converted to unicode if you don't know the encoding. >> To reproduce that you need any character from greeks in text for Para >> >> The patch wich makes it working: >> >> --- platypus/para.py (revision 3542) >> +++ platypus/para.py (working copy) >> @@ -2038,7 +2038,7 @@ >> elif standard.has_key(name): >> fragment = standard[name]+fragment[semi+1:] >> elif greeks.has_key(name): >> - fragment = greeks[name]+fragment[semi+1:] >> + fragment = unicode(greeks[name], >> "utf-8")+fragment[semi+1:] >> else: >> # add back the & >> fragment = "&"+fragment >> >> Is it possible to commit that to the main repository somehow? >> How to get a developer access to the reportlab svn? >> > ....... > > Logically we have two cases, when fragment is unicode or when fragment is > str. We ought to do all of these additions more carefully in the unicode/str > world. Does this work for you? > > --- para.py (revision 3542) > +++ para.py (working copy) > @@ -2036,9 +2036,15 @@ > else: > fragment = "&"+fragment > elif standard.has_key(name): > - fragment = standard[name]+fragment[semi+1:] > + s = standard[name] > + if isinstance(fragment,unicode): > + s = s.decode('utf8') > + fragment = s+fragment[semi+1:] > elif greeks.has_key(name): > - fragment = greeks[name]+fragment[semi+1:] > + s = greeks[name] > + if isinstance(fragment,unicode): > + s = s.decode('utf8') > + fragment = s+fragment[semi+1:] > else: > # add back the & > fragment = "&"+fragment > > I'm not a great user of para.py and it probably doesn't get much attention. > -- > Robin Becker > _______________________________________________ > reportlab-users mailing list > reportlab-users at reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin at reportlab.com Wed Sep 9 08:55:34 2009 From: robin at reportlab.com (Robin Becker) Date: Wed, 09 Sep 2009 13:55:34 +0100 Subject: [reportlab-users] Unicode problem in para.py In-Reply-To: <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> Message-ID: <4AA7A5C6.70506@chamonix.reportlab.co.uk> Michael Egorov wrote: > yeah, that's good) Thank you > > I used para.py just because it supports ul/li lists. They work really not > ideally: especially if every li is really long (several strings). I will > discuss that later > ...... OK I'll check that in. -- Robin Becker From a.cappelli at gmail.com Fri Sep 11 03:01:56 2009 From: a.cappelli at gmail.com (Andrea Cappelli) Date: Fri, 11 Sep 2009 09:01:56 +0200 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <4AA7A5C6.70506@chamonix.reportlab.co.uk> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> <4AA7A5C6.70506@chamonix.reportlab.co.uk> Message-ID: <1252652516.4451.8.camel@vulcan> Hi list, yesterday I tried to create an encrypted pdf, as stated in paragraph 4 of readme.pdf, but it doesn't work me regarding the options like canPrint, canCopy, etc. The output is encrypted and requires a password to be opened (unless i specifies only the ownerPassword, in this case as stated no password for opening is required) but I can print and copy from the document I'm usign reportlab 2.3 on Ubuntu 9.04 (python 2.6 ) and the following piece of code: from reportlab.pdfgen import canvas from reportlab.lib import pdfencrypt enc=pdfencrypt.StandardEncryption("","owner_pass",canPrint=0,canCopy=0) def hello(c): c.drawString(100,100,"Frase di test che non dovrebbe essere copiata") c = canvas.Canvas("test.pdf",encrypt=enc) hello(c) c.showPage() c.save() I'm wrong using this feature or it is not entirely implemented? Thanks From robin at reportlab.com Fri Sep 11 05:03:29 2009 From: robin at reportlab.com (Robin Becker) Date: Fri, 11 Sep 2009 10:03:29 +0100 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <1252652516.4451.8.camel@vulcan> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> <4AA7A5C6.70506@chamonix.reportlab.co.uk> <1252652516.4451.8.camel@vulcan> Message-ID: <4AAA1261.20701@chamonix.reportlab.co.uk> Andrea Cappelli wrote: > Hi list, > yesterday I tried to create an encrypted pdf, as stated in paragraph 4 > of readme.pdf, but it doesn't work me regarding the options like > canPrint, canCopy, etc. > > The output is encrypted and requires a password to be opened (unless i > specifies only the ownerPassword, in this case as stated no password for > opening is required) but I can print and copy from the document > > I'm usign reportlab 2.3 on Ubuntu 9.04 (python 2.6 ) and the following > piece of code: > > from reportlab.pdfgen import canvas > from reportlab.lib import pdfencrypt > enc=pdfencrypt.StandardEncryption("","owner_pass",canPrint=0,canCopy=0) > def hello(c): > c.drawString(100,100,"Frase di test che non dovrebbe essere > copiata") > c = canvas.Canvas("test.pdf",encrypt=enc) > hello(c) > c.showPage() > c.save() > ........ well I tried this > from reportlab.pdfgen import canvas > from reportlab.lib import pdfencrypt > enc=pdfencrypt.StandardEncryption("user_pass","owner_pass",canPrint=0,canCopy=0) > def hello(c): > c.drawString(100,100,"Frase di test che non dovrebbe essere copiata") > c = canvas.Canvas("tpdfenc.pdf",encrypt=enc) > hello(c) > c.showPage() > c.save() ie use a user as well as an owner password. The document then asks for a password. If you use the user password the print menu entry is missing. At least in my acrobat reader. The 1.7 manual says this > If a user attempts to open an encrypted document that has a user password, > the application should prompt for a password. Correctly supplying either > password enables the user to open the document, decrypt it, and display > it on the screen. If the document does not have a user password, no password > is requested; the application can simply open, decrypt, and display the > document. Whether additional operations are allowed on a decrypted document > depends on which password (if any) was supplied when the document was > opened and on any access restrictions that were specified when the > document was created: I think the idea is this. If you have the owner password effectively there are no restrictions. If you have the user password then the restrictions should apply. If you specify only an owner password then the reader is allowed to decrypt it. Seems a bit strange, but that's the way it is. -- Robin Becker From a.cappelli at gmail.com Fri Sep 11 06:48:14 2009 From: a.cappelli at gmail.com (Andrea Cappelli) Date: Fri, 11 Sep 2009 12:48:14 +0200 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <4AAA1261.20701@chamonix.reportlab.co.uk> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> <4AA7A5C6.70506@chamonix.reportlab.co.uk> <1252652516.4451.8.camel@vulcan> <4AAA1261.20701@chamonix.reportlab.co.uk> Message-ID: <1252666094.4451.46.camel@vulcan> Il giorno ven, 11/09/2009 alle 10.03 +0100, Robin Becker ha scritto: > well I tried this > > from reportlab.pdfgen import canvas > > from reportlab.lib import pdfencrypt > > enc=pdfencrypt.StandardEncryption("user_pass","owner_pass",canPrint=0,canCopy=0) > > def hello(c): > > c.drawString(100,100,"Frase di test che non dovrebbe essere copiata") > > c = canvas.Canvas("tpdfenc.pdf",encrypt=enc) > > hello(c) > > c.showPage() > > c.save() > > ie use a user as well as an owner password. The document then asks for a > password. If you use the user password the print menu entry is missing. At least > in my acrobat reader. The 1.7 manual says this Yes, you are right. I try it on a WindowsXp box with Acrobat 9 and obtain the same result. On ubuntu i use evince reader and i get not restrictions at all, so i think that these restrictions applies only to Acrobat Reader because the restrictions are implemented into the reader and other software doesn't not use it. So I'm wondering about the effectiveness of the restriction, if they can be "broken" so easily, but this is maybe i don't know the pdf standard > If you specify only an owner password then the reader is allowed to > decrypt it. Seems a bit strange, but that's the way it is. I try, if you specify only the owner password the pdf opens and restrictions apply to everyone (on acrobat reader), is my evince reader that let me do everything Thank you for the quick reply From andy at reportlab.com Fri Sep 11 07:12:14 2009 From: andy at reportlab.com (Andy Robinson) Date: Fri, 11 Sep 2009 12:12:14 +0100 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <1252666094.4451.46.camel@vulcan> References: <1ecf8c840909090241j760c580ar146a4b57b53ba051@mail.gmail.com> <4AA79E55.8020600@chamonix.reportlab.co.uk> <1ecf8c840909090537p781e90bsab820d49671f0847@mail.gmail.com> <4AA7A5C6.70506@chamonix.reportlab.co.uk> <1252652516.4451.8.camel@vulcan> <4AAA1261.20701@chamonix.reportlab.co.uk> <1252666094.4451.46.camel@vulcan> Message-ID: <956003ae0909110412w480c87f0la5a650ff457bd427@mail.gmail.com> 2009/9/11 Andrea Cappelli : > So I'm wondering about the effectiveness of the restriction, if they can > be "broken" so easily, but this is maybe i don't know the pdf standard The print/copy restrictions are fundamentally broken, and always have been. The spec says that they are conventions which should be followed by PDF reader programs. If you think about it, any piece of software which can open, display and render the content on screen would also be able to export that page image somehow. The 'user password' is stronger because if you set this, the page is genuinely encrypted (usually 128 bit these days) and the content is not available without the user password, or without a long brute force attack. However, once someone with the user password has opened the document, they could easily copy/print - for example by using Evince ;-) Best Regards, -- Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK Tel +44-20-8545-1570 From richard at ootbcomputers.com Fri Sep 11 10:55:04 2009 From: richard at ootbcomputers.com (richard at ootbcomputers.com) Date: Fri, 11 Sep 2009 07:55:04 -0700 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <1252652516.4451.8.camel@vulcan> Message-ID: <20090911145451.1C0B147043E@mailer.thecornbread.com> It is much better to validate if a user can download the pdf than to encrypt it. Encryption can easily be defeated. Convert to .ps then convert back to pdf works every time. -- Richard Andrea Cappelli wrote: Hi list, yesterday I tried to create an encrypted pdf, as stated in paragraph 4 of readme.pdf, but it doesn't work me regarding the options like canPrint, canCopy, etc. The output is encrypted and requires a password to be opened (unless i specifies only the ownerPassword, in this case as stated no password for opening is required) but I can print and copy from the document I'm usign reportlab 2.3 on Ubuntu 9.04 (python 2.6 ) and the following piece of code: from reportlab.pdfgen import canvas from reportlab.lib import pdfencrypt enc=pdfencrypt.StandardEncryption("","owner_pass",canPrint=0,canCopy=0) def hello(c): c.drawString(100,100,"Frase di test che non dovrebbe essere copiata") c = canvas.Canvas("test.pdf",encrypt=enc) hello(c) c.showPage() c.save() I'm wrong using this feature or it is not entirely implemented? Thanks _______________________________________________ reportlab-users mailing list reportlab-users at reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.cappelli at gmail.com Fri Sep 11 11:07:44 2009 From: a.cappelli at gmail.com (Andrea Cappelli) Date: Fri, 11 Sep 2009 17:07:44 +0200 Subject: [reportlab-users] Encryption in pdf In-Reply-To: <20090911145451.1C0B147043E@mailer.thecornbread.com> References: <20090911145451.1C0B147043E@mailer.thecornbread.com> Message-ID: <1252681664.4451.106.camel@vulcan> Il giorno ven, 11/09/2009 alle 07.55 -0700, richard at ootbcomputers.com ha scritto: > It is much better to validate if a user can download the pdf than to > encrypt it. I have to create a pdf that can be downloaded by anyone, with the limitation that text and images could not be copied, so this way is not feasible for me > Encryption can easily be defeated. Convert to .ps then convert back to > pdf works every time. Thank you for the reply, and for the tip ;) Regards From mdriscoll at co.marshall.ia.us Mon Sep 14 12:12:17 2009 From: mdriscoll at co.marshall.ia.us (Mike Driscoll) Date: Mon, 14 Sep 2009 11:12:17 -0500 Subject: [reportlab-users] Querying left over space Message-ID: <4AAE6B61.6070208@co.marshall.ia.us> Hi, Is there a way to query how much horizontal and vertical space is left on a page? And is there a way to know how much "space" a line of text in 10 point will take up? I am working with nested tables and it keeps splitting one of the nested over two pages whereas I need it to keep the nested table in one piece. I hope that makes sense. I am coding on a Windows XP machine with Python 2.5 and ReportLab 2.3. Thanks, Mike From robin at reportlab.com Mon Sep 14 12:59:45 2009 From: robin at reportlab.com (Robin Becker) Date: Mon, 14 Sep 2009 17:59:45 +0100 Subject: [reportlab-users] Querying left over space In-Reply-To: <4AAE6B61.6070208@co.marshall.ia.us> References: <4AAE6B61.6070208@co.marshall.ia.us> Message-ID: <4AAE7681.7080307@chamonix.reportlab.co.uk> Mike Driscoll wrote: > Hi, > > Is there a way to query how much horizontal and vertical space is left > on a page? And is there a way to know how much "space" a line of text in > 10 point will take up? I am working with nested tables and it keeps > splitting one of the nested over two pages whereas I need it to keep the > nested table in one piece. I hope that makes sense. > > I am coding on a Windows XP machine with Python 2.5 and ReportLab 2.3. > > Thanks, > > Mike ...... I assume that you're using platypus to do the layout; the document's active template has an active frame that controls the layout. The coding that's used to determine whether something can be added is in the _add method of the Frame class. It looks something like this y = self._y p = self._y1p s = 0 aW = self._getAvailableWidth() if not self._atTop: s =flowable.getSpaceBefore() if self._oASpace: s = max(s-self._prevASpace,0) h = y - p - s if h>0: w, h = flowable.wrap(aW, h) else: return 0 h += s y -= h if y < p-_FUZZ: if not rl_config.allowTableBoundsErrors and ((h>self._aH or w>aW) and not trySplit): from reportlab.platypus.doctemplate import LayoutError raise LayoutError("Flowable %s (%sx%s points) too large for frame (%sx%s points)." % ( flowable.__class__, w,h, aW,self._aH)) return 0 else: #DRAW THE FLOWABLE AT self._x, y if you ignore the space before stuff then effectively the vertical space remaining is activeFrame._y - activeFrame._y1p hope this helps. -- Robin Becker From mdriscoll at co.marshall.ia.us Mon Sep 14 13:47:56 2009 From: mdriscoll at co.marshall.ia.us (Mike Driscoll) Date: Mon, 14 Sep 2009 12:47:56 -0500 Subject: [reportlab-users] Querying left over space In-Reply-To: <4AAE7681.7080307@chamonix.reportlab.co.uk> References: <4AAE6B61.6070208@co.marshall.ia.us> <4AAE7681.7080307@chamonix.reportlab.co.uk> Message-ID: <4AAE81CC.5060109@co.marshall.ia.us> Robin Becker wrote: > Mike Driscoll wrote: >> Hi, >> >> Is there a way to query how much horizontal and vertical space is >> left on a page? And is there a way to know how much "space" a line of >> text in 10 point will take up? I am working with nested tables and it >> keeps splitting one of the nested over two pages whereas I need it to >> keep the nested table in one piece. I hope that makes sense. >> >> I am coding on a Windows XP machine with Python 2.5 and ReportLab 2.3. >> >> Thanks, >> >> Mike > ...... > I assume that you're using platypus to do the layout; the document's > active template has an active frame that controls the layout. The > coding that's used to determine whether something can be added is in > the _add method of the Frame class. It looks something like this I'm using the SimpleDocTemplate from platypus, if that's what you mean. Then I use the Table object to create some tables and nest them as needed. The code works fine except that it splits in the middle of tables sometimes. I need some kind of grouping function to keep the tables whole... > > y = self._y > p = self._y1p > s = 0 > aW = self._getAvailableWidth() > if not self._atTop: > s =flowable.getSpaceBefore() > if self._oASpace: > s = max(s-self._prevASpace,0) > h = y - p - s > if h>0: > w, h = flowable.wrap(aW, h) > else: > return 0 > h += s > y -= h > if y < p-_FUZZ: > if not rl_config.allowTableBoundsErrors and ((h>self._aH or > w>aW) and not trySplit): > from reportlab.platypus.doctemplate import LayoutError > raise LayoutError("Flowable %s (%sx%s points) too large > for frame (%sx%s points)." % ( > flowable.__class__, w,h, aW,self._aH)) > return 0 > else: > #DRAW THE FLOWABLE AT self._x, y > > if you ignore the space before stuff then effectively the vertical > space remaining is > activeFrame._y - activeFrame._y1p > > hope this helps. Hmmm...not sure how to use this, but will try to figure it out. Do I create a frame object to grab that information from? - Mike From robin at reportlab.com Tue Sep 15 04:46:10 2009 From: robin at reportlab.com (Robin Becker) Date: Tue, 15 Sep 2009 09:46:10 +0100 Subject: [reportlab-users] Querying left over space In-Reply-To: <4AAE81CC.5060109@co.marshall.ia.us> References: <4AAE6B61.6070208@co.marshall.ia.us> <4AAE7681.7080307@chamonix.reportlab.co.uk> <4AAE81CC.5060109@co.marshall.ia.us> Message-ID: <4AAF5452.1080907@chamonix.reportlab.co.uk> Mike Driscoll wrote: ........ >> #DRAW THE FLOWABLE AT self._x, y >> >> if you ignore the space before stuff then effectively the vertical >> space remaining is >> activeFrame._y - activeFrame._y1p >> >> hope this helps. > > Hmmm...not sure how to use this, but will try to figure it out. Do I > create a frame object to grab that information from? > if your SimpleDocTemplate instance is doc then try doc.frame._y - doc.frame._y1p -- Robin Becker From digisatori at gmail.com Wed Sep 16 11:29:08 2009 From: digisatori at gmail.com (Tony Gu) Date: Wed, 16 Sep 2009 23:29:08 +0800 Subject: [reportlab-users] Some of the ttf font can't be registered Message-ID: <4AB10444.3080303@gmail.com> Hi, I'm trying to register ttf font as stated below. It does work for many fonts that I tested, but for certain fonts, it just throw AttributeError as below: pdfmetrics.registerFont(TTFont('hei', 'Heiti.ttf')) in extractInfo psName = names[6].replace(" ", "-") #Dinu Gherman's fix for font names with spaces AttributeError: 'NoneType' object has no attribute 'replace' Also, I tested on reportlab.lib.fontfinder module, it will return empty list when I do the search in the folder where those above mentioned 'Problematic' fonts located. so far the 'Problematic' fonts that I tested on are all Chinese fonts, and probably they contain Chinese type face name. Will this be the source of the problem? Is there anyway I can workaround this problem? Thanks and best regards, Tony Gu From robin at reportlab.com Wed Sep 16 11:57:31 2009 From: robin at reportlab.com (Robin Becker) Date: Wed, 16 Sep 2009 16:57:31 +0100 Subject: [reportlab-users] Some of the ttf font can't be registered In-Reply-To: <4AB10444.3080303@gmail.com> References: <4AB10444.3080303@gmail.com> Message-ID: <4AB10AEB.10809@chamonix.reportlab.co.uk> Tony Gu wrote: > Hi, > I'm trying to register ttf font as stated below. It does work for many > fonts that I tested, but for certain fonts, it just throw AttributeError > as below: > > pdfmetrics.registerFont(TTFont('hei', 'Heiti.ttf')) > > in extractInfo > psName = names[6].replace(" ", "-") #Dinu Gherman's fix for font names > with spaces > AttributeError: 'NoneType' object has no attribute 'replace' > > Also, I tested on reportlab.lib.fontfinder module, it will return empty > list when I do the search in the folder where those above mentioned > 'Problematic' fonts located. > > so far the 'Problematic' fonts that I tested on are all Chinese fonts, > and probably they contain Chinese type face name. Will this be the > source of the problem? Is there anyway I can workaround this problem? > > Thanks and best regards, > > Tony Gu ........ that sounds like it might be right. Can you send me one of the fonts that fails then I can look at exactly what the problem is. I suppose that the names[6] is being determined as None which implies that the postscript name is unset or in some unknown character set. Dinu's fix is actually hiding the true error I think as it comes immediately before if not psName: raise TTFError, "Could not find PostScript font name" which would get done if psName is None. -- Robin Becker From matt at tplus1.com Thu Sep 17 11:50:24 2009 From: matt at tplus1.com (Matthew Wilson) Date: Thu, 17 Sep 2009 11:50:24 -0400 Subject: [reportlab-users] Looking for expert reportlab consultants to make some pretty charts Message-ID: I'm working on a schedule management web application and I need to make some pretty PDF calendars. I've been wrestling with reportlab, and I'm making OK progress, but I have other stuff I want to focus on. Is anyone interested in doing some consulting work? I need someone that can make some tables that use background images, numerous different font sizes, font colors, and font styles. I already know how to build simple tables. I need a consultant that can take my simple, boring work and make it look beautiful. The work involves generating mockups of the design and then implementing the design in reportlab. I need pretty!!! Boring and functional is insufficient. Please contact me directly if you are interested. Matt -- W. Matthew Wilson matt at tplus1.com http://tplus1.com From digisatori at gmail.com Wed Sep 16 21:18:07 2009 From: digisatori at gmail.com (Tony Gu) Date: Thu, 17 Sep 2009 09:18:07 +0800 Subject: [reportlab-users] Some of the ttf font can't be registered In-Reply-To: <4AB10AEB.10809@chamonix.reportlab.co.uk> References: <4AB10444.3080303@gmail.com> <4AB10AEB.10809@chamonix.reportlab.co.uk> Message-ID: <4AB18E4F.9070809@gmail.com> Robin Becker ??: > Tony Gu wrote: >> Hi, >> I'm trying to register ttf font as stated below. It does work for many >> fonts that I tested, but for certain fonts, it just throw AttributeError >> as below: >> >> pdfmetrics.registerFont(TTFont('hei', 'Heiti.ttf')) >> >> in extractInfo >> psName = names[6].replace(" ", "-") #Dinu Gherman's fix for font names >> with spaces >> AttributeError: 'NoneType' object has no attribute 'replace' >> >> Also, I tested on reportlab.lib.fontfinder module, it will return empty >> list when I do the search in the folder where those above mentioned >> 'Problematic' fonts located. >> >> so far the 'Problematic' fonts that I tested on are all Chinese fonts, >> and probably they contain Chinese type face name. Will this be the >> source of the problem? Is there anyway I can workaround this problem? >> >> Thanks and best regards, >> >> Tony Gu > ........ > > that sounds like it might be right. Can you send me one of the fonts > that fails then I can look at exactly what the problem is. > > I suppose that the names[6] is being determined as None which implies > that the postscript name is unset or in some unknown character set. > > Dinu's fix is actually hiding the true error I think as it comes > immediately before > > if not psName: > raise TTFError, "Could not find PostScript font name" > > which would get done if psName is None. > -- > Robin Becker > _______________________________________________ > reportlab-users mailing list > reportlab-users at reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users Hi Robin, Thank you very much for your prompt response, the attached is a font in question. Best regards, Tony Gu -------------- next part -------------- A non-text attachment was scrubbed... Name: HYZhongHei.tar.gz Type: application/x-gzip Size: 2946413 bytes Desc: not available Url : From robin at reportlab.com Tue Sep 22 05:58:03 2009 From: robin at reportlab.com (Robin Becker) Date: Tue, 22 Sep 2009 10:58:03 +0100 Subject: [reportlab-users] testing 2 Message-ID: <4AB89FAB.9090209@chamonix.reportlab.co.uk> -- Robin Becker From robin at reportlab.com Tue Sep 22 06:52:21 2009 From: robin at reportlab.com (Robin Becker) Date: Tue, 22 Sep 2009 11:52:21 +0100 Subject: [reportlab-users] Something wrong with the list Message-ID: <4AB8AC65.6090301@chamonix.reportlab.co.uk> There is something amiss with our users list alias reportlab-users at reportlab.com The real address ie reportlab-users at two.pairlist.net does appear to work. We do have other lists configured in much the same way, but this one seems blocked for some reason. If you are desperate just use the real address. -- Robin Becker From djan at reportlab.com Thu Sep 24 05:24:29 2009 From: djan at reportlab.com (Djan Obuobi) Date: Thu, 24 Sep 2009 10:24:29 +0100 Subject: [reportlab-users] Test Djan Message-ID: <1f4b079f0909240224g71477184g9ace1f93cb2303c1@mail.gmail.com> -- Thanks Djan Obuobi Business Analyst ReportLab Europe Ltd. Media House 3 Palmerston Road London SW19 1PG United Kingdom Tel +44 20 8545 1570 Fax +44 20 8545 1571 -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin at reportlab.com Thu Sep 24 07:51:00 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 12:51:00 +0100 Subject: [reportlab-users] test #1098 Message-ID: <4ABB5D24.20300@chamonix.reportlab.co.uk> testing another alias -- Robin Becker From robin at reportlab.com Thu Sep 24 10:04:17 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 15:04:17 +0100 Subject: [reportlab-users] test #2002 Message-ID: <4ABB7C61.3010707@chamonix.reportlab.co.uk> -- Robin Becker From robin at reportlab.com Thu Sep 24 10:30:04 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 15:30:04 +0100 Subject: [reportlab-users] test from gmail 2009 Message-ID: From djan at reportlab.com Thu Sep 24 10:29:53 2009 From: djan at reportlab.com (djan) Date: Thu, 24 Sep 2009 15:29:53 +0100 Subject: [reportlab-users] Test for Robin Message-ID: <1f4b079f0909240729l1280dc6ay4562df53ce3d2e69@mail.gmail.com> -- Thanks Djan Obuobi Business Analyst ReportLab Europe Ltd. Media House 3 Palmerston Road London SW19 1PG United Kingdom Tel +44 20 8545 1570 Fax +44 20 8545 1571 -------------- next part -------------- An HTML attachment was scrubbed... URL: From djan at reportlab.com Thu Sep 24 10:33:03 2009 From: djan at reportlab.com (djan) Date: Thu, 24 Sep 2009 15:33:03 +0100 Subject: [reportlab-users] Test for Robin Message-ID: <1f4b079f0909240733t795a9150t68f48b30cbe53e57@mail.gmail.com> -- Thanks Djan Obuobi Business Analyst ReportLab Europe Ltd. Media House 3 Palmerston Road London SW19 1PG United Kingdom Tel +44 20 8545 1570 Fax +44 20 8545 1571 -------------- next part -------------- An HTML attachment was scrubbed... URL: From djan at reportlab.com Thu Sep 24 10:34:50 2009 From: djan at reportlab.com (djan) Date: Thu, 24 Sep 2009 15:34:50 +0100 Subject: [reportlab-users] Test for Robin Message-ID: <1f4b079f0909240734i75a93822h295ba6ca3ba12957@mail.gmail.com> -- Thanks Djan Obuobi Business Analyst ReportLab Europe Ltd. Media House 3 Palmerston Road London SW19 1PG United Kingdom Tel +44 20 8545 1570 Fax +44 20 8545 1571 -------------- next part -------------- An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Thu Sep 24 10:36:33 2009 From: reportlab-users at lists2.reportlab.com (reportlab-users at lists2.reportlab.com) Date: Thu, 24 Sep 2009 10:36:33 -0400 (EDT) Subject: [reportlab-users] Have a concrete thing in pants! Message-ID: <20090924143633.C4D481051FA@two.pairlist.net> An HTML attachment was scrubbed... URL: From robin at reportlab.com Thu Sep 24 10:37:43 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 15:37:43 +0100 Subject: [reportlab-users] Mailing list In-Reply-To: <4ABB832E.2000606@safeonlinebilling.com> References: <4ABB832E.2000606@safeonlinebilling.com> Message-ID: <4ABB8437.8000404@chamonix.reportlab.co.uk> Paul Barrass wrote: > [Off-list, especially since it seems unwell] > > Hi Robin, > > Having wasted a day or two myself on email delivery problems, especially > with Gmail in the mix, I can feel your pain.... > > If you want any test messages generating from another source, I'd be > happy to help. > > Paul Barrass. > Well it seems we might have 'fixed' this, but I don't know what caused the original problem. -- Robin Becker From srichter at cosmos.phy.tufts.edu Thu Sep 24 10:40:36 2009 From: srichter at cosmos.phy.tufts.edu (Stephan Richter) Date: Thu, 24 Sep 2009 10:40:36 -0400 Subject: [reportlab-users] Mailing list In-Reply-To: <4ABB8437.8000404@chamonix.reportlab.co.uk> References: <4ABB832E.2000606@safeonlinebilling.com> <4ABB8437.8000404@chamonix.reportlab.co.uk> Message-ID: <200909241040.37122.srichter@cosmos.phy.tufts.edu> On Thursday 24 September 2009, Robin Becker wrote: > Well it seems we might have 'fixed' this, but I don't know what caused the > original problem. I'll note that the list id changed. My filter is not working anymore. :-) Regards, Stephan -- Entrepreneur and Software Geek Google me. "Zope Stephan Richter" From srichter at cosmos.phy.tufts.edu Thu Sep 24 10:40:36 2009 From: srichter at cosmos.phy.tufts.edu (Stephan Richter) Date: Thu, 24 Sep 2009 10:40:36 -0400 Subject: [reportlab-users] Mailing list In-Reply-To: <4ABB8437.8000404@chamonix.reportlab.co.uk> References: <4ABB832E.2000606@safeonlinebilling.com> <4ABB8437.8000404@chamonix.reportlab.co.uk> Message-ID: <200909241040.37122.srichter@cosmos.phy.tufts.edu> On Thursday 24 September 2009, Robin Becker wrote: > Well it seems we might have 'fixed' this, but I don't know what caused the > original problem. I'll note that the list id changed. My filter is not working anymore. :-) Regards, Stephan -- Entrepreneur and Software Geek Google me. "Zope Stephan Richter" From robin at reportlab.com Thu Sep 24 11:01:01 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 16:01:01 +0100 Subject: [reportlab-users] Mailing list In-Reply-To: <200909241040.37122.srichter@cosmos.phy.tufts.edu> References: <4ABB832E.2000606@safeonlinebilling.com> <4ABB8437.8000404@chamonix.reportlab.co.uk> <200909241040.37122.srichter@cosmos.phy.tufts.edu> Message-ID: <4ABB89AD.4060505@chamonix.reportlab.co.uk> Stephan Richter wrote: > On Thursday 24 September 2009, Robin Becker wrote: >> Well it seems we might have 'fixed' this, but I don't know what caused the >> original problem. > > I'll note that the list id changed. My filter is not working anymore. :-) > > Regards, > Stephan that was the fix. Just on the off chance that someone here knows more about this than I do the original layout was like this Previously we had (working till last week) reportlab-users at reportlab.com --> reportlab-users at two.pairlist.net MX lists2.reportlab.com --> two.pairlist.net preferred mailman host=reportlab.com now we have reportlab-users at reportlab.com --> reportlab-users at lists2.reportlab.com MX lists2.reportlab.com --> two.pairlist.net referred mailman host=lists2.reportlab.com which seems to allow the forwarding rule to work; I didn't realize that lists2 was anything to do with the mailing list until the pair support guy mentioned it. Something changed at pair, gmail or dnsmadeasy and it all fell apart. -- Robin Becker From reportlab-users at lists2.reportlab.com Thu Sep 24 13:05:15 2009 From: reportlab-users at lists2.reportlab.com (Patrylak Desmond) Date: Thu, 24 Sep 2009 13:05:15 -0400 (EDT) Subject: [reportlab-users] C'mon mutha-faka Message-ID: An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Thu Sep 24 14:18:24 2009 From: reportlab-users at lists2.reportlab.com (Christoper Shepard) Date: Thu, 24 Sep 2009 15:18:24 -0300 Subject: [reportlab-users] Thank you for setting the order No.475456 Message-ID: <000d01ca3d43$67681ce0$6400a8c0@albigensianuc> Dear Customer! Thank you for ordering at our online store. Your order: Sony VAIO A1133651A, was sent at your address. The tracking number of your postal parcel is indicated in the document attached to this letter. Please, print out the postal label for receiving the parcel. Internet Store. -------------- next part -------------- A non-text attachment was scrubbed... Name: open.zip Type: application/zip Size: 11868 bytes Desc: not available Url : From reportlab-users at lists2.reportlab.com Thu Sep 24 14:39:56 2009 From: reportlab-users at lists2.reportlab.com (Latia Dulan) Date: Thu, 24 Sep 2009 14:39:56 -0400 (EDT) Subject: [reportlab-users] I remain grounded in ur love Message-ID: <3211WK09E7429S8R1.YEMEZGVYBB.EE1597C885@ABUSUFEYAN> An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Thu Sep 24 15:13:57 2009 From: reportlab-users at lists2.reportlab.com (Kristal Demorizi) Date: Thu, 24 Sep 2009 15:13:57 -0400 (EDT) Subject: [reportlab-users] Cultural shock - artGroup Message-ID: <45KJ807Y9O49234Z.HSSIIPTDRU.8B162F8CC@Fricker-PC> An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Thu Sep 24 15:38:08 2009 From: reportlab-users at lists2.reportlab.com (Rosemary Henley) Date: Thu, 24 Sep 2009 14:38:08 -0500 Subject: [reportlab-users] Thank you for setting the order No.475456 Message-ID: <000d01ca3d4e$8b29db40$6400a8c0@physiotherapist98> Dear Customer! Thank you for ordering at our online store. Your order: Sony VAIO A1133651A, was sent at your address. The tracking number of your postal parcel is indicated in the document attached to this letter. Please, print out the postal label for receiving the parcel. Internet Store. -------------- next part -------------- A non-text attachment was scrubbed... Name: open.zip Type: application/zip Size: 11868 bytes Desc: not available Url : From reportlab-users at lists2.reportlab.com Thu Sep 24 18:04:49 2009 From: reportlab-users at lists2.reportlab.com (Luther Richter) Date: Thu, 24 Sep 2009 23:04:49 +0100 Subject: [reportlab-users] Thank you for setting the order No.475456 Message-ID: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> Dear Customer! Thank you for ordering at our online store. Your order: Sony VAIO A1133651A, was sent at your address. The tracking number of your postal parcel is indicated in the document attached to this letter. Please, print out the postal label for receiving the parcel. Internet Store. -------------- next part -------------- A non-text attachment was scrubbed... Name: open.zip Type: application/zip Size: 11868 bytes Desc: not available Url : From timr at probo.com Thu Sep 24 17:44:10 2009 From: timr at probo.com (Tim Roberts) Date: Thu, 24 Sep 2009 14:44:10 -0700 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> Message-ID: <4ABBE82A.3060805@probo.com> Luther Richter wrote: > Dear Customer! > > Thank you for ordering at our online store. > Your order: Sony VAIO A1133651A, was sent at your address. > The tracking number of your postal parcel is indicated in the document > attached to this letter. > Please, print out the postal label for receiving the parcel. So, something in the list reorganization here has eliminated the "must be a member to post" requirement? -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From DJESSUP at usnews.com Thu Sep 24 17:51:27 2009 From: DJESSUP at usnews.com (Jessup, David) Date: Thu, 24 Sep 2009 17:51:27 -0400 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <4ABBE82A.3060805@probo.com> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> <4ABBE82A.3060805@probo.com> Message-ID: <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> Mr. Roberts: I am on the reportlab-users mailing list, and the first I saw of the spam below was the quotation in your email. Is it possible that somebody sent you spam while spoofing the From: address? --- David Jessup -----Original Message----- From: reportlab-users-bounces at lists2.reportlab.com [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Tim Roberts Sent: Thursday, September 24, 2009 5:44 PM To: For users of Reportlab open source software Subject: Re: [reportlab-users] Thank you for setting the order No.475456 Luther Richter wrote: > Dear Customer! > > Thank you for ordering at our online store. > Your order: Sony VAIO A1133651A, was sent at your address. > The tracking number of your postal parcel is indicated in the document > attached to this letter. > Please, print out the postal label for receiving the parcel. So, something in the list reorganization here has eliminated the "must be a member to post" requirement? -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. _______________________________________________ reportlab-users mailing list reportlab-users at lists2.reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users From reportlab-users at lists2.reportlab.com Thu Sep 24 17:51:15 2009 From: reportlab-users at lists2.reportlab.com (Marvin Thomason) Date: Thu, 24 Sep 2009 18:51:15 -0300 Subject: [reportlab-users] Thank you for setting the order No.475456 Message-ID: <000d01ca3d61$23d9f890$6400a8c0@accoutermentsuzm5> Dear Customer! Thank you for ordering at our online store. Your order: Sony VAIO A1133651A, was sent at your address. The tracking number of your postal parcel is indicated in the document attached to this letter. Please, print out the postal label for receiving the parcel. Internet Store. -------------- next part -------------- A non-text attachment was scrubbed... Name: open.zip Type: application/zip Size: 10649 bytes Desc: not available Url : From carl at personnelware.com Thu Sep 24 17:57:27 2009 From: carl at personnelware.com (Carl Karsten) Date: Thu, 24 Sep 2009 16:57:27 -0500 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> <4ABBE82A.3060805@probo.com> <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> Message-ID: <549053140909241457r73052928g3fc2a59f6433f034@mail.gmail.com> I have seen a sudden jump in spam on lists. My guess is someone figured out how to automate joining lists. I have also seen quite a few "flagged as spam, but you have a rule allowing spam for this list" which makes me think your (David Jessup) spam filter may have caught it. On Thu, Sep 24, 2009 at 4:51 PM, Jessup, David wrote: > Mr. Roberts: > > I am on the reportlab-users mailing list, and the first I saw of the > spam below was the quotation in your email. ?Is it possible that > somebody sent you spam while spoofing the From: address? > > --- David Jessup > > -----Original Message----- > From: reportlab-users-bounces at lists2.reportlab.com > [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Tim > Roberts > Sent: Thursday, September 24, 2009 5:44 PM > To: For users of Reportlab open source software > Subject: Re: [reportlab-users] Thank you for setting the order No.475456 > > Luther Richter wrote: >> Dear Customer! >> >> Thank you for ordering at our online store. >> Your order: Sony VAIO A1133651A, was sent at your address. >> The tracking number of your postal parcel is indicated in the document >> attached to this letter. >> Please, print out the postal label for receiving the parcel. > > So, something in the list reorganization here has eliminated the "must > be a member to post" requirement? > > -- > Tim Roberts, timr at probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > > -- Carl K From ralsina at netmanagers.com.ar Thu Sep 24 19:12:03 2009 From: ralsina at netmanagers.com.ar (Roberto Alsina) Date: Thu, 24 Sep 2009 20:12:03 -0300 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> <4ABBE82A.3060805@probo.com> <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> Message-ID: <200909242012.03167.ralsina@netmanagers.com.ar> On Thursday 24 September 2009 18:51:27 Jessup, David wrote: > Mr. Roberts: > > I am on the reportlab-users mailing list, and the first I saw of the > spam below was the quotation in your email. Is it possible that > somebody sent you spam while spoofing the From: address? I saw it too, so your antispam probably just deleted it before you saw it. -- ("\''/").__..-''"`-. . Roberto Alsina `9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH) (_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar _..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia (l)-'' ((i).' ((!.' according to alexa.com (27/5/2007) From DJESSUP at usnews.com Thu Sep 24 19:45:02 2009 From: DJESSUP at usnews.com (Jessup, David) Date: Thu, 24 Sep 2009 19:45:02 -0400 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <549053140909241457r73052928g3fc2a59f6433f034@mail.gmail.com> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx><4ABBE82A.3060805@probo.com><97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> <549053140909241457r73052928g3fc2a59f6433f034@mail.gmail.com> Message-ID: <97886A555FD8E14E8F7445D75C11D54D01F8BA08@EXCHANGE.usn.root.ent> Mr. Karsten: Good to know. Thank you. --- David Jessup -----Original Message----- From: reportlab-users-bounces at lists2.reportlab.com [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Carl Karsten Sent: Thursday, September 24, 2009 5:57 PM To: For users of Reportlab open source software Subject: Re: [reportlab-users] Thank you for setting the order No.475456 I have seen a sudden jump in spam on lists. My guess is someone figured out how to automate joining lists. I have also seen quite a few "flagged as spam, but you have a rule allowing spam for this list" which makes me think your (David Jessup) spam filter may have caught it. On Thu, Sep 24, 2009 at 4:51 PM, Jessup, David wrote: > Mr. Roberts: > > I am on the reportlab-users mailing list, and the first I saw of the > spam below was the quotation in your email. ?Is it possible that > somebody sent you spam while spoofing the From: address? > > --- David Jessup > > -----Original Message----- > From: reportlab-users-bounces at lists2.reportlab.com > [mailto:reportlab-users-bounces at lists2.reportlab.com] On Behalf Of Tim > Roberts > Sent: Thursday, September 24, 2009 5:44 PM > To: For users of Reportlab open source software > Subject: Re: [reportlab-users] Thank you for setting the order No.475456 > > Luther Richter wrote: >> Dear Customer! >> >> Thank you for ordering at our online store. >> Your order: Sony VAIO A1133651A, was sent at your address. >> The tracking number of your postal parcel is indicated in the document >> attached to this letter. >> Please, print out the postal label for receiving the parcel. > > So, something in the list reorganization here has eliminated the "must > be a member to post" requirement? > > -- > Tim Roberts, timr at probo.com > Providenza & Boekelheide, Inc. > > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > > -- Carl K _______________________________________________ reportlab-users mailing list reportlab-users at lists2.reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users From timr at probo.com Thu Sep 24 19:47:01 2009 From: timr at probo.com (Tim Roberts) Date: Thu, 24 Sep 2009 16:47:01 -0700 Subject: [reportlab-users] Thank you for setting the order No.475456 In-Reply-To: <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> References: <000d01ca3d5a$a70f9e10$6400a8c0@intelligentlymx> <4ABBE82A.3060805@probo.com> <97886A555FD8E14E8F7445D75C11D54D01F8BA07@EXCHANGE.usn.root.ent> Message-ID: <4ABC04F5.6090209@probo.com> Jessup, David wrote: > Mr. Roberts: > > I am on the reportlab-users mailing list, and the first I saw of the > spam below was the quotation in your email. Is it possible that > somebody sent you spam while spoofing the From: address? > No, it has all of the Mailman-generated headers that show it actually came through the list. The "From" address is, in fact, the list address (with a fake real name). This is a common spammers trick; I've configured all of my Mailman lists so that the list address is not allowed to post. This list probably HAD that, but now that the list address is different, it doesn't match the pattern any more. Easy fix. -- Tim Roberts, timr at probo.com Providenza & Boekelheide, Inc. From reportlab-users at lists2.reportlab.com Thu Sep 24 19:50:52 2009 From: reportlab-users at lists2.reportlab.com (reportlab-users at lists2.reportlab.com) Date: Thu, 24 Sep 2009 19:50:52 -0400 (EDT) Subject: [reportlab-users] Unzip and do her tonight! Message-ID: <20090924235052.B9F5010520A@two.pairlist.net> An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Thu Sep 24 21:23:34 2009 From: reportlab-users at lists2.reportlab.com (reportlab-users at lists2.reportlab.com) Date: Thu, 24 Sep 2009 21:23:34 -0400 (EDT) Subject: [reportlab-users] Have a concrete thing in pants! Message-ID: <20090925012334.C0DB610536A@two.pairlist.net> An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Fri Sep 25 04:16:58 2009 From: reportlab-users at lists2.reportlab.com (Gerardo Burck) Date: Fri, 25 Sep 2009 04:16:58 -0400 (EDT) Subject: [reportlab-users] Scandalous GMC crash-test Message-ID: <20090925081658.5D96E10500C@two.pairlist.net> An HTML attachment was scrubbed... URL: From reportlab-users at lists2.reportlab.com Fri Sep 25 04:39:40 2009 From: reportlab-users at lists2.reportlab.com (Jessica Stanton) Date: Fri, 25 Sep 2009 14:09:40 +0530 Subject: [reportlab-users] Thank you for setting the order No.475456 Message-ID: <000d01ca3dbb$b9431380$6400a8c0@cracklye4> Dear Customer! Thank you for ordering at our online store. Your order: Sony VAIO A1133651A, was sent at your address. The tracking number of your postal parcel is indicated in the document attached to this letter. Please, print out the postal label for receiving the parcel. Internet Store. -------------- next part -------------- A non-text attachment was scrubbed... Name: open.zip Type: application/zip Size: 10649 bytes Desc: not available Url : From reportlab-users at reportlab.com Fri Sep 25 02:50:44 2009 From: reportlab-users at reportlab.com (Anneliese Njunytjp) Date: Fri, 25 Sep 2009 08:50:44 +0200 Subject: [reportlab-users] Come. I share ice-cream! Message-ID: <5570DDN.9144991.01060482303506UPTZFFIGFWDSVLC37@hp-b5f7fd9dc4ad> An HTML attachment was scrubbed... URL: From gherman at darwin.in-berlin.de Fri Sep 25 05:59:05 2009 From: gherman at darwin.in-berlin.de (Dinu Gherman) Date: Fri, 25 Sep 2009 11:59:05 +0200 Subject: [reportlab-users] Pending bugs Message-ID: <83425975-1F39-4C41-B7E6-F7DE89F9AF7D@darwin.in-berlin.de> Hi, I wonder what's happening to the bugs reported recently, in- cluding those reported by myself? Is there any progress, time- line, roadmap... anything to make me raise my confidence level in believing for some kind of well-defined resolution, one that I could pass on to clients, even? At the moment these bugs seem to be in phase 2 of what appears to be a "report-and-forget" strategy. :-/ Regards, Dinu ...................................................................... Follow me on Twitter: http://twitter.com/dinugherman -------------- next part -------------- An HTML attachment was scrubbed... URL: From volker.haas at brainbot.com Fri Sep 25 07:55:31 2009 From: volker.haas at brainbot.com (Volker Haas) Date: Fri, 25 Sep 2009 13:55:31 +0200 Subject: [reportlab-users] bug in graphics/renderPDF.py Message-ID: <4ABCAFB3.30508@brainbot.com> When rendering a drawing with renderPDF.drawToFile() the font "Times-Roman" is always reported as being used in the document. This is a problem if all fonts need to be embedded in the PDF. The problem is the hardcoded fontname "Times-Roman" instead of rl_config.defaultGraphicsFontName. The following patch solves the problem for me: @@ -260 +260 @@ def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1): - c.setFont('Times-Roman', 36) + c.setFont(rl_config.defaultGraphicsFontName, 36) @@ -269 +269 @@ def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1): - c.setFont('Times-Roman', 12) + c.setFont(rl_config.defaultGraphicsFontName, 12) Attached is a minimal example that shows the problem (to make the example work, the font location needs to be specified correctly...). Regards, Volker -- volker haas brainbot technologies ag fon +49 6131 2116394 boppstra?e 64 fax +49 6131 2116392 55118 mainz volker.haas at brainbot.com http://www.brainbot.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: drawing_test.py Type: text/x-python Size: 634 bytes Desc: not available Url : From robin at reportlab.com Fri Sep 25 08:43:25 2009 From: robin at reportlab.com (Robin Becker) Date: Fri, 25 Sep 2009 13:43:25 +0100 Subject: [reportlab-users] bug in graphics/renderPDF.py In-Reply-To: <4ABCAFB3.30508@brainbot.com> References: <4ABCAFB3.30508@brainbot.com> Message-ID: <4ABCBAED.4030207@chamonix.reportlab.co.uk> Volker Haas wrote: > When rendering a drawing with renderPDF.drawToFile() the font > "Times-Roman" is always reported as being used in the document. This is > a problem if all fonts need to be embedded in the PDF. > > The problem is the hardcoded fontname "Times-Roman" instead of > rl_config.defaultGraphicsFontName. > > The following patch solves the problem for me: > > @@ -260 +260 @@ def drawToFile(d, fn, msg="", > showBoundary=rl_config._unset_, autoSize=1): > - c.setFont('Times-Roman', 36) > + c.setFont(rl_config.defaultGraphicsFontName, 36) > @@ -269 +269 @@ def drawToFile(d, fn, msg="", > showBoundary=rl_config._unset_, autoSize=1): > - c.setFont('Times-Roman', 12) > + c.setFont(rl_config.defaultGraphicsFontName, 12) > > Attached is a minimal example that shows the problem (to make the > example work, the font location needs to be specified correctly...). > ........ thanks for the report. I guess we need to fix that and also to make the string drawing conditional on whether there is actually any msg value. -- Robin Becker From robin at reportlab.com Fri Sep 25 08:43:25 2009 From: robin at reportlab.com (Robin Becker) Date: Fri, 25 Sep 2009 13:43:25 +0100 Subject: [reportlab-users] bug in graphics/renderPDF.py In-Reply-To: <4ABCAFB3.30508@brainbot.com> References: <4ABCAFB3.30508@brainbot.com> Message-ID: <4ABCBAED.4030207@chamonix.reportlab.co.uk> Volker Haas wrote: > When rendering a drawing with renderPDF.drawToFile() the font > "Times-Roman" is always reported as being used in the document. This is > a problem if all fonts need to be embedded in the PDF. > > The problem is the hardcoded fontname "Times-Roman" instead of > rl_config.defaultGraphicsFontName. > > The following patch solves the problem for me: > > @@ -260 +260 @@ def drawToFile(d, fn, msg="", > showBoundary=rl_config._unset_, autoSize=1): > - c.setFont('Times-Roman', 36) > + c.setFont(rl_config.defaultGraphicsFontName, 36) > @@ -269 +269 @@ def drawToFile(d, fn, msg="", > showBoundary=rl_config._unset_, autoSize=1): > - c.setFont('Times-Roman', 12) > + c.setFont(rl_config.defaultGraphicsFontName, 12) > > Attached is a minimal example that shows the problem (to make the > example work, the font location needs to be specified correctly...). > ........ thanks for the report. I guess we need to fix that and also to make the string drawing conditional on whether there is actually any msg value. -- Robin Becker From robin at reportlab.com Thu Sep 24 05:40:22 2009 From: robin at reportlab.com (Robin Becker) Date: Thu, 24 Sep 2009 10:40:22 +0100 Subject: [reportlab-users] test to bong@reportlab.com Message-ID: <4ABB3E86.7050800@chamonix.reportlab.co.uk> This should arrive at reportlab-users at reportlab.com -- Robin Becker From djan at reportlab.com Thu Sep 24 05:43:50 2009 From: djan at reportlab.com (Djan Obuobi) Date: Thu, 24 Sep 2009 10:43:50 +0100 Subject: [reportlab-users] test bong Message-ID: <1f4b079f0909240243x2b8ddf0ib9502907baaf3227@mail.gmail.com> -- Thanks Djan Obuobi Business Analyst ReportLab Europe Ltd. Media House 3 Palmerston Road London SW19 1PG United Kingdom Tel +44 20 8545 1570 Fax +44 20 8545 1571 -------------- next part -------------- An HTML attachment was scrubbed... URL: From troy.caldwell at covchurch.org Sun Sep 27 16:56:54 2009 From: troy.caldwell at covchurch.org (Troy Caldwell) Date: Sun, 27 Sep 2009 15:56:54 -0500 Subject: [reportlab-users] Charts and Axes dimensions Message-ID: I've been working with various charts and everything works pretty good, but when it comes to getting all chart data to fall within the bounds of the drawing, I'm running into some confusion. Here's and example of what I'll be doing: 1. Create a drawing of say dimensions 300 x 200. 2. Create a vertical bar chart with dimensions of 225 x 140. 3. Add the chart to the drawing. I realize that if I place the chart at 0,0, my labels for both axes will be outside the bounds of the drawing. They appear, but they appear where I don't want them. I'm trying to figure out a way to calculate the width of the y axis, and the height of the x axis so I can then make the decision on where to place the chart itself to keep the entire image where I want it. I'm dropping these into a document that's using frames and flowables. Everything is running pretty smoothly. Even thought the charts are not doing exactly what I want because I don't have this part figured out yet, it's not too bad to eyeball it and make some quick adjustments. I've been searching for a couple of days on this now and I figured it's time to ask for help. Thanks, Troy -------------- next part -------------- An HTML attachment was scrubbed... URL: From gherman at darwin.in-berlin.de Mon Sep 28 04:49:25 2009 From: gherman at darwin.in-berlin.de (Dinu Gherman) Date: Mon, 28 Sep 2009 10:49:25 +0200 Subject: [reportlab-users] Charts and Axes dimensions In-Reply-To: References: Message-ID: <2B6EBA56-6E6E-48FB-9736-44550CD7F7E1@darwin.in-berlin.de> Troy Caldwell: > I realize that if I place the chart at 0,0, my labels for both axes > will be outside the bounds of the drawing. They appear, but they > appear where I don't want them. I'm trying to figure out a way to > calculate the width of the y axis, and the height of the x axis so I > can then make the decision on where to place the chart itself to > keep the entire image where I want it. I'm dropping these into a > document that's using frames and flowables. Everything is running > pretty smoothly. Try setting the minimum/maximum on the value axis to make the bar labels fall inside the charting area. Otherwise please provide some graphical samples or these issues will be hard to discuss... Regards, Dinu ...................................................................... Follow me on Twitter: http://twitter.com/dinugherman From andy at reportlab.com Mon Sep 28 08:28:55 2009 From: andy at reportlab.com (Andy Robinson) Date: Mon, 28 Sep 2009 13:28:55 +0100 Subject: [reportlab-users] Charts and Axes dimensions In-Reply-To: References: Message-ID: <956003ae0909280528q4bc5b250hb6ca0691ceadfabe@mail.gmail.com> 2009/9/27 Troy Caldwell : > I realize that if I place the chart at 0,0, my labels for both axes will be > outside the bounds of the drawing. ?They appear, but they appear where I > don't want them. ?I'm trying to figure out a way to calculate the width of > the y axis, and the height of the x axis so I can then make the decision on > where to place the chart itself to keep the entire image where I want it. The framework was designed for people using these charts within financial publications, alongside other tables and content. Often you want to stack up several charts above each other and be sure all the categories line up from one chart to the next. Therefore, we decided to make the inner 'plot rectangle' explicit (and this is what x,y,width and height refer to in each chart class). A consequence of this is that it's your job to allow enough space for the axis labels, which of course depends on the typical length of the text in those labels, and the font size and position you specify. This might need one or two tries at 'design time' but I can't see why you'd need to redo it for a lot of chart instances. If you need to know the precise size, every shape (including the charts) has a method called 'getBounds' which will return its actual size, including any text labels off the edge of the axis. This would let you set things up exactly right, at the expense of basically drawing things twice. Best Regards, -- Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK Tel +44-20-8545-1570 From troy.caldwell at covchurch.org Mon Sep 28 10:34:30 2009 From: troy.caldwell at covchurch.org (Troy Caldwell) Date: Mon, 28 Sep 2009 09:34:30 -0500 Subject: [reportlab-users] Charts and Axes dimensions In-Reply-To: <956003ae0909280528q4bc5b250hb6ca0691ceadfabe@mail.gmail.com> References: <956003ae0909280528q4bc5b250hb6ca0691ceadfabe@mail.gmail.com> Message-ID: Andy,Thanks for the response. This helps a lot! Troy On Mon, Sep 28, 2009 at 7:28 AM, Andy Robinson wrote: > 2009/9/27 Troy Caldwell : > > I realize that if I place the chart at 0,0, my labels for both axes will > be > > outside the bounds of the drawing. They appear, but they appear where I > > don't want them. I'm trying to figure out a way to calculate the width > of > > the y axis, and the height of the x axis so I can then make the decision > on > > where to place the chart itself to keep the entire image where I want it. > > The framework was designed for people using these charts within > financial publications, alongside other tables and content. Often > you want to stack up several charts above each other and be sure all > the categories line up from one chart to the next. Therefore, we > decided to make the inner 'plot rectangle' explicit (and this is what > x,y,width and height refer to in each chart class). A consequence > of this is that it's your job to allow enough space for the axis > labels, which of course depends on the typical length of the text in > those labels, and the font size and position you specify. > > This might need one or two tries at 'design time' but I can't see why > you'd need to redo it for a lot of chart instances. > > If you need to know the precise size, every shape (including the > charts) has a method called 'getBounds' which will return its actual > size, including any text labels off the edge of the axis. This would > let you set things up exactly right, at the expense of basically > drawing things twice. > > Best Regards, > > -- > Andy Robinson > CEO/Chief Architect > ReportLab Europe Ltd. > Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK > Tel +44-20-8545-1570 > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From moshe.wagner at gmail.com Tue Sep 29 05:14:21 2009 From: moshe.wagner at gmail.com (Moshe Wagner) Date: Tue, 29 Sep 2009 11:14:21 +0200 Subject: [reportlab-users] Hebrew Support Patch In-Reply-To: References: <4A2D36EB.1020300@chamonix.reportlab.co.uk> <956003ae0906080958v9a7fd77n8061a50f5fc7080a@mail.gmail.com> <4A2D46D0.2090008@chamonix.reportlab.co.uk> <956003ae0906170442l53cb0096iab6502f643a2d7ce@mail.gmail.com> <956003ae0906170847r698d8d43u69d1b998eac9011f@mail.gmail.com> Message-ID: Hi all, Regarding my Hebrew support patch: Someone pointed out to me that pyfribidi (that's imported by the patch), is under the GPLv2 license, and not a BSD-like license like ReportLab. I have no idea if this actually matters, as all my code does is import and use that library, without including it within ReportLab by any way, but I thought I better let you decide if it makes any difference. Best wishes, Moshe From andy at reportlab.com Tue Sep 29 06:31:39 2009 From: andy at reportlab.com (Andy Robinson) Date: Tue, 29 Sep 2009 11:31:39 +0100 Subject: [reportlab-users] Hebrew Support Patch In-Reply-To: References: <4A2D36EB.1020300@chamonix.reportlab.co.uk> <956003ae0906080958v9a7fd77n8061a50f5fc7080a@mail.gmail.com> <4A2D46D0.2090008@chamonix.reportlab.co.uk> <956003ae0906170442l53cb0096iab6502f643a2d7ce@mail.gmail.com> <956003ae0906170847r698d8d43u69d1b998eac9011f@mail.gmail.com> Message-ID: <956003ae0909290331gf05c0a2ha32c57b7dd0d01d7@mail.gmail.com> 2009/9/29 Moshe Wagner : > Hi all, > > Regarding my Hebrew support patch: > > Someone pointed out to me that pyfribidi (that's imported by the > patch), is under the GPLv2 license, and not a BSD-like license like > ReportLab. > > I have no idea if this actually matters, as all my code does is import > and use that library, without including it within ReportLab by any > way, but I thought I better let you decide if it makes any difference. The reasons for our lack of progress on integrating this are a bit more mundane: we got busy ;-) It MIGHT affect whether we can include it in the core distribution. I don't know the answer to that. But we can certainly let people know it's there. We hope to do one more release before the end of the year and will be starting preparations for this in October, which will hopefully include someone taking a more detailed look at your patch. I regret there was no time for this in the last three months. Best Regards, -- Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK Tel +44-20-8545-1570 From andy at reportlab.com Tue Sep 29 06:31:39 2009 From: andy at reportlab.com (Andy Robinson) Date: Tue, 29 Sep 2009 11:31:39 +0100 Subject: [reportlab-users] Hebrew Support Patch In-Reply-To: References: <4A2D36EB.1020300@chamonix.reportlab.co.uk> <956003ae0906080958v9a7fd77n8061a50f5fc7080a@mail.gmail.com> <4A2D46D0.2090008@chamonix.reportlab.co.uk> <956003ae0906170442l53cb0096iab6502f643a2d7ce@mail.gmail.com> <956003ae0906170847r698d8d43u69d1b998eac9011f@mail.gmail.com> Message-ID: <956003ae0909290331gf05c0a2ha32c57b7dd0d01d7@mail.gmail.com> 2009/9/29 Moshe Wagner : > Hi all, > > Regarding my Hebrew support patch: > > Someone pointed out to me that pyfribidi (that's imported by the > patch), is under the GPLv2 license, and not a BSD-like license like > ReportLab. > > I have no idea if this actually matters, as all my code does is import > and use that library, without including it within ReportLab by any > way, but I thought I better let you decide if it makes any difference. The reasons for our lack of progress on integrating this are a bit more mundane: we got busy ;-) It MIGHT affect whether we can include it in the core distribution. I don't know the answer to that. But we can certainly let people know it's there. We hope to do one more release before the end of the year and will be starting preparations for this in October, which will hopefully include someone taking a more detailed look at your patch. I regret there was no time for this in the last three months. Best Regards, -- Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. Media House, 3 Palmerston Road, Wimbledon, London SW19 1PG, UK Tel +44-20-8545-1570