From reportlab-users@reportlab.com Thu Jul 1 07:50:15 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Thu, 1 Jul 2004 08:50:15 +0200 Subject: [reportlab-users] barcodes Message-ID: <20040701065015.GA16721@mail.librelogiciel.com> Hi, I'd like to know if the barcode extension to RL will be added to RL's main package in the future or if it will still be distributed separately. TIA Jerome Alet From reportlab-users@reportlab.com Fri Jul 2 14:10:24 2004 From: reportlab-users@reportlab.com (Dirk Holtwick) Date: Fri, 02 Jul 2004 15:10:24 +0200 Subject: [reportlab-users] Table rendering with HTML colspan and rowspan In-Reply-To: <20040621141444.GC28957@bitute.b4net.lt> References: <20040621113016.GA8325@bitute.b4net.lt> <20040621141444.GC28957@bitute.b4net.lt> Message-ID: <40E55EC0.6050103@spirito.de> This is a multi-part message in MIME format. --------------020204080307050907020206 Content-Type: multipart/alternative; boundary="------------020407090109070209090905" --------------020407090109070209090905 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I think you are talking about something we have already developed. It's our product called "pisa". I attached a simple example with source and result. Get more informations on http://pisa.by.spirito.de (older demonstration) or http://www.spirito.de Yours Dirk Bogdan M. Maryniuck wrote: >On Mon, Jun 21, 2004 at 06:34:27AM -0700, andy@reportlab.com wrote: > > >>IMHO a full HTML-like table rendering algorithm like this will be slow >>and have different goals to our current tables. >> >> > >Agree. But current tables are just pain pain pain, when I do something like: >OpenOffice.org XML -> RML -> PDF. Then I need to do lot of magic with XSL. >And, those still ugly and unusable when somebody merges cells and/or rows... >Yes, I know, I can do complex tables with nested tables, but this is >exactly: > > painLevel = pow(painLevel, painLevel) > >Again, current tables are good, but only if you _know_ how your table >should look like (you write a code to render PDF, or this is a bill your code >produces or so). Instead, when you do lots XML transform from "unknown" >sources, made by who knows whom by nobody knows what rules (basically >Microsloth Word -> OpenOffice.org), than one moment you will see wrong >output... But when I do the same with HTML -- tables are just excellent >(with magic of CSS2 here/there). > > > >>It would make perfect sense to have two different kinds of tables >>with different design goals. >> >> > >Agree! Besides, I haven't said: "replace that old implementation". ;-) > > > -- Mit freundlichen Grüßen Dirk Holtwick =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= spirito GmbH Dirk Holtwick (CEO) Grünstraße 6 D-47051 Duisburg fon: +49 203 3187778 mbx: holtwick@spirito.de web: http://www.spirito.de GnuPG fingerprint (http://www.gnupg.org) A5A1 54E1 C82E 02AD 4804 0547 66F4 3FB0 C790 EBAB --------------020407090109070209090905 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit I think you are talking about something we have already developed. It's our product called "pisa". I attached a simple example with source and result.

Get more informations on http://pisa.by.spirito.de (older demonstration) or http://www.spirito.de

Yours Dirk

Bogdan M. Maryniuck wrote:
On Mon, Jun 21, 2004 at 06:34:27AM -0700, andy@reportlab.com wrote:
  
IMHO a full HTML-like table rendering algorithm like this will be slow 
and have different goals to our current tables.  
    

Agree. But current tables are just pain pain pain, when I do something like:
OpenOffice.org XML -> RML -> PDF. Then I need to do lot of magic with XSL.
And, those still ugly and unusable when somebody merges cells and/or rows...
Yes, I know, I can do complex tables with nested tables, but this is
exactly: 

   painLevel = pow(painLevel, painLevel)

Again, current tables are good, but only if you _know_ how your table 
should look like (you write a code to render PDF, or this is a bill your code
produces or so). Instead, when you do lots XML transform from "unknown" 
sources, made by who knows whom by nobody knows what rules (basically 
Microsloth Word -> OpenOffice.org), than one moment you will see wrong 
output... But when I do the same with HTML -- tables are just excellent 
(with magic of CSS2 here/there).

  
It would make perfect sense to  have two different kinds of tables 
with different design goals.
    

Agree! Besides, I haven't said: "replace that old implementation". ;-)

  

-- 

Mit freundlichen Grüßen

Dirk Holtwick

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

spirito GmbH
Dirk Holtwick (CEO)
Grünstraße 6
D-47051 Duisburg

fon: +49 203 3187778
mbx: holtwick@spirito.de
web: http://www.spirito.de

GnuPG fingerprint (http://www.gnupg.org)
A5A1 54E1 C82E 02AD 4804  0547 66F4 3FB0 C790 EBAB

--------------020407090109070209090905-- --------------020204080307050907020206 Content-Type: application/pdf; name="test.pdf" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.pdf" JVBERi0xLjMNCiWTjIueIFJlcG9ydExhYiBHZW5lcmF0ZWQgUERGIGRvY3VtZW50IGh0dHA6 Ly93d3cucmVwb3J0bGFiLmNvbQ0KJSAnQmFzaWNGb250cyc6IGNsYXNzIFBERkRpY3Rpb25h cnkgDQoxIDAgb2JqDQolIFRoZSBzdGFuZGFyZCBmb250cyBkaWN0aW9uYXJ5DQo8PCAvRjEg MiAwIFINCiAvRjIgMyAwIFIgPj4NCmVuZG9iag0KJSAnRjEnOiBjbGFzcyBQREZUeXBlMUZv bnQgDQoyIDAgb2JqDQolIEZvbnQgSGVsdmV0aWNhDQo8PCAvQmFzZUZvbnQgL0hlbHZldGlj YQ0KIC9FbmNvZGluZyAvV2luQW5zaUVuY29kaW5nDQogL05hbWUgL0YxDQogL1N1YnR5cGUg L1R5cGUxDQogL1R5cGUgL0ZvbnQgPj4NCmVuZG9iag0KJSAnRjInOiBjbGFzcyBQREZUeXBl MUZvbnQgDQozIDAgb2JqDQolIEZvbnQgVGltZXMtUm9tYW4NCjw8IC9CYXNlRm9udCAvVGlt ZXMtUm9tYW4NCiAvRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZw0KIC9OYW1lIC9GMg0KIC9T dWJ0eXBlIC9UeXBlMQ0KIC9UeXBlIC9Gb250ID4+DQplbmRvYmoNCiUgJ1BhZ2UxJzogY2xh c3MgUERGUGFnZSANCjQgMCBvYmoNCiUgUGFnZSBkaWN0aW9uYXJ5DQo8PCAvQ29udGVudHMg OCAwIFINCiAvTWVkaWFCb3ggWyAwDQogIDANCiAgNTk1LjI3NTYNCiAgODQxLjg4OTggXQ0K IC9QYXJlbnQgNyAwIFINCiAvUmVzb3VyY2VzIDw8I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MCAxMA0KMDAwMDAwMDAwMCA2NTUzNSBmDQowMDAwMDAwMTEzIDAwMDAwIG4NCjAwMDAw MDAyMjEgMDAwMDAgbg0KMDAwMDAwMDM4NiAwMDAwMCBuDQowMDAwMDAwNTUzIDAwMDAwIG4N CjAwMDAwMDA4NDIgMDAwMDAgbg0KMDAwMDAwMDk3NiAwMDAwMCBuDQowMDAwMDAxMTQ0IDAw MDAwIG4NCjAwMDAwMDEyNDkgMDAwMDAgbg0KMDAwMDAwMjIxNCAwMDAwMCBuDQp0cmFpbGVy DQo8PCAvSUQgDQogICUgUmVwb3J0TGFiIGdlbmVyYXRlZCBQREYgZG9jdW1lbnQgLS0gZGln ZXN0IChodHRwOi8vd3d3LnJlcG9ydGxhYi5jb20pIA0KICBbKEx2OVwzNDNcMjEzXDMyM1wy MTMrXDMwMFk+XDIzNlwwMDVcMzQ0UlwzNzIpIChMdjlcMzQzXDIxM1wzMjNcMjEzK1wzMDBZ PlwyMzZcMDA1XDM0NFJcMzcyKV0gDQogDQogL0luZm8gNiAwIFINCiAvUm9vdCA1IDAgUg0K IC9TaXplIDEwID4+DQpzdGFydHhyZWYNCjIyNjUNCiUlRU9GDQo= --------------020204080307050907020206 Content-Type: text/html; charset=ISO-8859-1; name="test.html" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.html" PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlv bmFsLy9FTiI+CjxodG1sPgo8aGVhZD4KPHRpdGxlPlRhYmxlIFRlc3Q8L3RpdGxlPgo8bWV0 YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNl dD1pc28tODg1OS0xIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KPCEtLQp0aCB7CgliYWNr Z3JvdW5kLWNvbG9yOiAjRkZGRkNDOwp9Ci0tPgo8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9keT4K PHRhYmxlIHdpZHRoPSIxMDAlIiBib3JkZXI9IjEiPgogIDx0cj4KICAgIDx0aCByb3dzcGFu PSI0IiBhbGlnbj0icmlnaHQiIHZhbGlnbj0idG9wIj5TcGFuIFY8L3RoPgogICAgPHRkPng8 L3RkPgogICAgPHRkPng8L3RkPgogICAgPHRkPng8L3RkPgogICAgPHRkPng8L3RkPgogIDwv dHI+CiAgPHRyPgogICAgPHRkPng8L3RkPgogICAgPHRoIGNvbHNwYW49IjMiPlNwYW4gSDwv dGg+CiAgPC90cj4KICA8dHI+CiAgICA8dGQ+eDwvdGQ+CiAgICA8dGQgY29sc3Bhbj0iMiIg cm93c3Bhbj0iMiI+eHh4eDwvdGQ+CiAgICA8dGQ+eDwvdGQ+CiAgPC90cj4KICA8dHI+CiAg ICA8dGQ+eDwvdGQ+CiAgICA8dGQ+eDwvdGQ+CiAgPC90cj4KICA8dHI+CiAgICA8dGQ+eDwv dGQ+CiAgICA8dGQ+eDwvdGQ+CiAgICA8dGQ+eDwvdGQ+CiAgICA8dGQ+eDwvdGQ+CiAgICA8 dGQ+eDwvdGQ+CiAgPC90cj4KPC90YWJsZT4KPC9ib2R5Pgo8L2h0bWw+Cg== --------------020204080307050907020206-- From reportlab-users@reportlab.com Fri Jul 2 14:38:16 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 2 Jul 2004 16:38:16 +0300 Subject: [reportlab-users] Table rendering with HTML colspan and rowspan In-Reply-To: <40E55EC0.6050103@spirito.de> References: <20040621113016.GA8325@bitute.b4net.lt> <20040621141444.GC28957@bitute.b4net.lt> <40E55EC0.6050103@spirito.de> Message-ID: <20040702133816.GC25486@bitute.b4net.lt> On Fri, Jul 02, 2004 at 03:10:24PM +0200, Dirk Holtwick wrote: > I think you are talking about something we have already developed. It's > our product called "pisa". I attached a simple example with source and > result. > > Get more informations on http://pisa.by.spirito.de (older demonstration) > or http://www.spirito.de Nice! I think you do it in this way: 1. First, you calculate hspans/vspans. 2. Then you do nested tables. I didn't see the other way how it might work with current implementation of ReportLab library... On the other hand, I am talking about col/row -span at ReportLab level, but "Pisa" seems like doing it at PML level. At least this is good workaround yet ReportLab grid tables does not support such feature. When you OpenSource your "Pisa" to at least to see the code inside? :-) -- 暮 > I'm not sure what makes a given poem 'modern'... Well, one characteristic sometimes found is... to put it politely... creative typography. Very creative typography. -- Henry Spencer on the chores of typesetting modern poetry From reportlab-users@reportlab.com Fri Jul 2 16:02:32 2004 From: reportlab-users@reportlab.com (Dirk Holtwick) Date: Fri, 02 Jul 2004 17:02:32 +0200 Subject: [reportlab-users] Table rendering with HTML colspan and rowspan In-Reply-To: <20040702133816.GC25486@bitute.b4net.lt> References: <20040621113016.GA8325@bitute.b4net.lt> <20040621141444.GC28957@bitute.b4net.lt> <40E55EC0.6050103@spirito.de> <20040702133816.GC25486@bitute.b4net.lt> Message-ID: <40E57908.6030704@spirito.de> Hi, >Nice! I think you do it in this way: > 1. First, you calculate hspans/vspans. > 2. Then you do nested tables. > > No, we don't use nested tables. It's a derivate of "Table" and there we use SPAN to do it. But I had some troubles that reportlab doesn't recognize these SPAN areas correctly. The paintig of the borders is done by BOX. >I didn't see the other way how it might work with current implementation >of ReportLab library... On the other hand, I am talking about col/row >-span at ReportLab level, but "Pisa" seems like doing it at PML level. >At least this is good workaround yet ReportLab grid tables does not >support such feature. > >When you OpenSource your "Pisa" to at least to see the code inside? :-) > > the code is rather complex. for itself it makes no sence to make it public, because it wouldn't work. the calculation is quite tricky and I haven't yet finished the work on it. maybe I'll do that later some time. yours dirk =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= spirito GmbH Dirk Holtwick (CEO) Grünstraße 6 D-47051 Duisburg fon: +49 203 3187778 mbx: holtwick@spirito.de web: http://www.spirito.de GnuPG fingerprint (http://www.gnupg.org) A5A1 54E1 C82E 02AD 4804 0547 66F4 3FB0 C790 EBAB From reportlab-users@reportlab.com Sat Jul 3 07:42:04 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Sat, 3 Jul 2004 09:42:04 +0300 Subject: [reportlab-users] Table rendering with HTML colspan and rowspan In-Reply-To: <40E57908.6030704@spirito.de> References: <20040621113016.GA8325@bitute.b4net.lt> <20040621141444.GC28957@bitute.b4net.lt> <40E55EC0.6050103@spirito.de> <20040702133816.GC25486@bitute.b4net.lt> <40E57908.6030704@spirito.de> Message-ID: <20040703064204.GB9907@bitute.b4net.lt> On Fri, Jul 02, 2004 at 05:02:32PM +0200, Dirk Holtwick wrote: > But I had some troubles that reportlab doesn't > recognize these SPAN areas correctly. Hmm. I think you will get some more (troubles) when ReportLab community will change main Table class... Second, you _probably_ still have problems to insert in spanned cell/row nested table with ordered list or image etc. Then your nested object will not take effect to know cell is expanded and still will fit as into non-spanned cell. At least this problems are here, with current Tables implementation in RL. Why you would not like to commit this code to the RL engine? If it is buggy or so, we will fix it! But if there is good ideas, why not?.. > the code is rather complex. for itself it makes no sence to make it > public, because it wouldn't work. the calculation is quite tricky and I > haven't yet finished the work on it. maybe I'll do that later some time. But use of nested tables is quite good idea, since it will work anyway. Probably I should move that way... -- 暮 What goes up, must come down. Ask any system administrator. From reportlab-users@reportlab.com Mon Jul 5 23:20:36 2004 From: reportlab-users@reportlab.com (Allan Michael Cuenca) Date: Mon, 5 Jul 2004 15:20:36 -0700 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) Message-ID: I'm attempting to generate PDF files on the fly with a text widget with contents sent to a platypus cgi. I don't need the xml paragraph formatting markup feature. How do I disable this feature? I need the wrapping feature but not the xml formatting, so that leaves out Preformatted. I could create a new class by inheriting from both but how do I best go about getting a simple, non-parsing Paragraph object. Allan Michael Cuenca Systems / Database Administrator BakeMark Ingredients Canada, Ltd. (604) 303-1700 Ext 241 DID: (604) 303-1741 ************************************ This transmission is intended for the sole use of the individual and entity to whom it is addressed. Privileged and confidential information may be contained in this message. You are hereby notified that any dissemination, distribution, or duplication of this transmission by someone other then the intended addressee or its designated agent is strictly prohibited. Opinions, conclusions and other information in this message that do not relate to the official business of my organization shall be understood as neither given nor endorsed by it. If your receipt of this transmission is in error, please notify this company immediately by phone call (604) 303-1741, or by reply to this transmission From reportlab-users@reportlab.com Wed Jul 7 07:44:32 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Wed, 7 Jul 2004 07:44:32 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: Message-ID: > I'm attempting to generate PDF files on the fly with a text widget with > contents sent to a platypus cgi. I don't need the xml paragraph formatting > markup feature. How do I disable this feature? > There is no specific way to turn it off. But if you don't have any xml tags in your paragraph, you won't get any special formatting. Plain text input is both legal and extremely fast to process. What goes wrong when you initialize a paragraph with plain text? Do you have lots of '<', '>' and '&' characters? Thanks, Andy Robinson From reportlab-users@reportlab.com Wed Jul 7 08:30:37 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Wed, 07 Jul 2004 08:30:37 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: References: Message-ID: <40EBA69D.3000409@jessikat.fsnet.co.uk> Allan Michael Cuenca wrote: > I'm attempting to generate PDF files on the fly with a text widget with > contents sent to a platypus cgi. I don't need the xml paragraph formatting > markup feature. How do I disable this feature? > > I need the wrapping feature but not the xml formatting, so that leaves out > Preformatted. I could create a new class by inheriting from both but how do > I best go about getting a simple, non-parsing Paragraph object. > > Allan Michael Cuenca > Systems / Database Administrator > BakeMark Ingredients Canada, Ltd. > (604) 303-1700 Ext 241 > DID: (604) 303-1741 > ...... effectively you'll need to replace the line style, frags, bulletTextFrags = _parser.parse(text,style) in the paragraph _setup method. The style remains at the argument value and bulletTextFrags is effectively None. To create the single frag from paraparser import ParaFrag frag = ParaFrag() frag.fontName = style.fontName frag.fontSize = style.fontSize frag.text = text frags = [frag] -- Robin Becker From reportlab-users@reportlab.com Wed Jul 7 22:30:57 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Wed, 7 Jul 2004 15:30:57 -0600 Subject: [reportlab-users] retrieving an Image file. Message-ID: Hi; Using the following code, from reportlab.pdfgen import canvas from reportlab.lib.units import inch image = r"c:/window/web/wallpaper/azul.jpg" width = 7.5 * inch height = 9.5 * inch x = 10.25 * inch y = 0.5 * inch my_canvas = canvas.drawImage(self, image, width=x, height=y, mask=none) to retrieve an image file and put it onto the canvas, gives this error; my_canvas = canvas.drawImage(self, image, width=x, height=y, mask=none) AttributeError: 'module' object has no attribute 'drawImage' Am I using the drawImage() function correctly? Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Wed Jul 7 18:33:24 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Wed, 7 Jul 2004 11:33:24 -0600 Subject: [reportlab-users] Installation Problems Message-ID: Hi; I am having some problems with the installation of the ReportLab tools. When running the test_pdfgen_general program, as described in the user guide, I get the following error. I have set up my paths correctly and create the reportlab.pth file in my python home directory. ImportError: No module named reportlab.test Please let me know what if need anything other that what is in the downloadable zipfile. Thanks. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Thu Jul 8 14:46:06 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Thu, 08 Jul 2004 14:46:06 +0100 Subject: [reportlab-users] Installation Problems In-Reply-To: References: Message-ID: <40ED501E.50807@chamonix.reportlab.co.uk> Jody Burgess wrote: > Hi; > I am having some problems with the installation of the ReportLab tools. > > When running the test_pdfgen_general program, as described in the user > guide, I get the following error. I have set up my paths correctly and > create the reportlab.pth file in my python home directory. > > ImportError: No module named reportlab.test > > Please let me know what if need anything other that what is in the > downloadable zipfile. > > Thanks. > Jody Burgess ISP > Systems Analyst > Seward Consulting Ltd. > 780.702.5103 > jody.burgess@sewardconsulting.com > Can you try from the python prompt import reportlab if that fails import sys print sys.path The sys.path should contain a folder that contains the top level reportlab folder. If none of the above satisfies; which zip did you download? -- Robin Becker From reportlab-users@reportlab.com Thu Jul 8 16:06:36 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Thu, 8 Jul 2004 09:06:36 -0600 Subject: [reportlab-users] Import of .TIF files Message-ID: When attemping to use canvas.drawImage to import a .TIF file, I get a number of errors. Does PIL have issues with .TIF or is there any special handling the is required from Python or the ReportLab API that I need to use? Any help would be appreciated. Thanks. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Thu Jul 8 16:06:37 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Thu, 8 Jul 2004 09:06:37 -0600 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. Message-ID: Has anyone accomplished this yet? If so, do you have any example code I can use to help with this problem? Thanks. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Thu Jul 8 16:29:47 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Thu, 8 Jul 2004 17:29:47 +0200 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: References: Message-ID: <20040708152947.GA340@mail.librelogiciel.com> On Thu, Jul 08, 2004 at 09:06:37AM -0600, Jody Burgess wrote: > Has anyone accomplished this yet? If so, do you have any example code I can > use to help with this problem? You have to use RL's commercial tool named PageCatcher in order to do this. bye Jerome Alet From reportlab-users@reportlab.com Thu Jul 8 18:18:28 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Thu, 8 Jul 2004 20:18:28 +0300 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: <20040708152947.GA340@mail.librelogiciel.com> References: <20040708152947.GA340@mail.librelogiciel.com> Message-ID: <20040708171828.GA5073@bitute.b4net.lt> On Thu, Jul 08, 2004 at 05:29:47PM +0200, Jerome Alet wrote: > You have to use RL's commercial tool named PageCatcher in order > to do this. ...but only, if you don't know how to write it by your own. -- 暮 Never trust a computer you can't repair yourself. From reportlab-users@reportlab.com Thu Jul 8 18:30:57 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Thu, 8 Jul 2004 18:30:57 +0100 Subject: [reportlab-users] retrieving an Image file. In-Reply-To: Message-ID: > image = r"c:/window/web/wallpaper/azul.jpg" > width = 7.5 * inch > height = 9.5 * inch > x = 10.25 * inch > y = 0.5 * inch > my_canvas = canvas.drawImage(self, image, width=x, height=y, mask=none) You are confusing the canvas module with the Canvas class, and never creating a Canvas object. I'd suggest this: from reportlab.pdfgen.canvas import Canvas my_canvas = Canvas('myfile.pdf') my_canvas.drawImage(self, image, width=x, height=y, mask=none) - Andy Robinson From reportlab-users@reportlab.com Thu Jul 8 18:30:57 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Thu, 8 Jul 2004 18:30:57 +0100 Subject: [reportlab-users] Installation Problems In-Reply-To: Message-ID: I suspect your path is wrong. Start Python and try the statement "import reportlab". If this gives an error, then you don't have the path set up correctly. The entry in the .pth file should be the directory ABOVE the reportlab directory. e.g. if I have c:\code\reportlab, I put 'c:\code' in my path file. - Andy > -----Original Message----- > From: reportlab-users-admin@reportlab.com > [mailto:reportlab-users-admin@reportlab.com]On Behalf Of Jody Burgess > Sent: 07 July 2004 18:33 > To: reportlab-users@reportlab.com > Subject: [reportlab-users] Installation Problems > Importance: High > > > Hi; > I am having some problems with the installation of the > ReportLab tools. > > When running the test_pdfgen_general program, as described in the user > guide, I get the following error. I have set up my paths correctly and > create the reportlab.pth file in my python home directory. > > ImportError: No module named reportlab.test > > Please let me know what if need anything other that what is in the > downloadable zipfile. > > Thanks. > Jody Burgess ISP > Systems Analyst > Seward Consulting Ltd. > 780.702.5103 > jody.burgess@sewardconsulting.com > > > _______________________________________________ > reportlab-users mailing list > reportlab-users@reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users From reportlab-users@reportlab.com Thu Jul 8 19:21:57 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Thu, 8 Jul 2004 20:21:57 +0200 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: <20040708171828.GA5073@bitute.b4net.lt> References: <20040708152947.GA340@mail.librelogiciel.com> <20040708171828.GA5073@bitute.b4net.lt> Message-ID: <20040708182157.GA1646@mail.librelogiciel.com> On Thu, Jul 08, 2004 at 08:18:28PM +0300, Bogdan M. Maryniuck wrote: > On Thu, Jul 08, 2004 at 05:29:47PM +0200, Jerome Alet wrote: > > You have to use RL's commercial tool named PageCatcher in order > > to do this. > > ...but only, if you don't know how to write it by your own. you said it ! from reading the PDF language documentation, this shouldn't be too difficult to do for simple page management. and I've even got some interesting project in standby mode which would allow things like that with an "interesting" approach, but I won't tell more today. When it will be ready I'll try to contribute it to RL. bye Jerome Alet From reportlab-users@reportlab.com Thu Jul 8 20:44:40 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Thu, 8 Jul 2004 13:44:40 -0600 Subject: [reportlab-users] Installation Problems Message-ID: Thanks, I had installed reportlab outside of my python home directory. I installed it into my python home directory and now all is good. Thanks. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Thu Jul 8 23:00:45 2004 From: reportlab-users@reportlab.com (Chris Withers) Date: Thu, 08 Jul 2004 23:00:45 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: References: Message-ID: <40EDC40D.2010901@simplistix.co.uk> Hi Andy, Andy Robinson wrote: > What goes wrong when you initialize a paragraph with plain text? > Do you have lots of '<', '>' and '&' characters? Not lots, but the odd one or two seem to be cropping up. I get: * Module reportlab.platypus.paragraph, line 379, in __init__ * Module reportlab.platypus.paragraph, line 404, in _setup xml parser error (bogus < or &) in paragraph beginning 'Faculty of Medicine & Dentistr' I guess I should quote < and & in stuff I send into paragraphs? How about stuff I'm putting on with canv.drawString? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From reportlab-users@reportlab.com Thu Jul 8 23:49:22 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 9 Jul 2004 00:49:22 +0200 Subject: [reportlab-users] suggestion for fonts Message-ID: <20040708224921.GA4941@mail.librelogiciel.com> Hi there, would it be possible to add "~/fonts" or something like that (and expand it at run time of course) to the list of path automatically searched for fonts, in a future release ? (~/rlfonts would do it as well) Thanks in advance Jerome Alet From reportlab-users@reportlab.com Fri Jul 9 00:19:44 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 9 Jul 2004 00:19:44 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: <40EDC40D.2010901@simplistix.co.uk> Message-ID: > I guess I should quote < and & in stuff I send into paragraphs? Yes, that's the easy way. There is a library function to do it >>> import xml.sax.saxutils >>> xml.sax.saxutils.escape("Medicine & Dentistry") 'Medicine & Dentistry' > How about stuff I'm putting on with canv.drawString? No, that is not treated as XML. The ONLY places where input is treated as XML are Paragraphs and Preformatted text objects. - Andy From reportlab-users@reportlab.com Fri Jul 9 00:29:56 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 9 Jul 2004 00:29:56 +0100 Subject: [reportlab-users] suggestion for fonts In-Reply-To: <20040708224921.GA4941@mail.librelogiciel.com> Message-ID: > -----Original Message----- > From: reportlab-users-admin@reportlab.com > [mailto:reportlab-users-admin@reportlab.com]On Behalf Of Jerome Alet > Sent: 08 July 2004 23:49 > To: reportlab-users@reportlab.com > Subject: [reportlab-users] suggestion for fonts > > > Hi there, > > would it be possible to add "~/fonts" or something like that > (and expand it at run time of course) to the list of path > automatically searched for fonts, in a future release ? > > (~/rlfonts would do it as well) Sensible, I just added this in. It will look for './fonts' in the current directory whenever reportlab is first imported. Our standard approach checks to see if lots of possible directories exist, and only existing ones end up on the path, so this is cheap. You do know that we already search for such a directory parallel to where reportlab is installed? When doing web server installs (rather than system-wide ones in site-packages), our customers usually have a copy of reportlab there, and just add their preferred fonts in alongside e.g. somewhere/cgi-bin #kickoff scripts cd into application1 and exec somewhere/htdocs somewhere/fonts somewhere/application1 somewhere/application2 somewhere/reportlab Also look in reportlab/rl_config.py T1SearchPath = ( # stuff omitted '%(REPORTLAB_DIR)s/fonts', #special '%(REPORTLAB_DIR)s/../fonts', #special '%(REPORTLAB_DIR)s/../../fonts', #special ) From reportlab-users@reportlab.com Fri Jul 9 01:34:24 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 9 Jul 2004 01:34:24 +0100 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: <20040708182157.GA1646@mail.librelogiciel.com> Message-ID: > from reading the PDF language documentation, this shouldn't be > too difficult to do for simple page management. > It looks like it isn't too hard and you might get away with the obvious approach for simple documents. But if you want to correctly cover all cases, including one page referring to other forms nested N levels deep; one document referencing a different subset of a font than another; all possible naming clashes between resources in the two PDFs; and lots of other wrinkles, then its actually rather hard. Not to mention finding other sources of PDFs that don't work quite like Adobe's - we've recently had fun with OpenOffice output. The only safe approach is to fully parse and 'cross-reference' the PDFs you are slurping in and check every data structure against the PDF spec. You may have noticed that there are not many open source PDF libraries which do this - it's not easy! We regard PageCatcher as a major competitive edge for our Enterprise framework. It's also the key piece of some substantial server side solutions we sell for five figures, which we could not sell if PageCatcher was free. However, we are happy to work our very reasonable deals for its use, or to offer under charitable/academic licenses, provided the users have the basic Python knowledge not to be a burden. Just ask :-) Best Regards, Andy Robinson From reportlab-users@reportlab.com Fri Jul 9 06:48:51 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 9 Jul 2004 08:48:51 +0300 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: References: <20040708182157.GA1646@mail.librelogiciel.com> Message-ID: <20040709054851.GA5571@bitute.b4net.lt> On Fri, Jul 09, 2004 at 01:34:24AM +0100, Andy Robinson wrote: > we've recently had fun with OpenOffice output. +1 ! -- 暮 VI is not editor. VI VI VI - The Roman Number of The Beast. Use Emacs! -- alt.religion.emacs From reportlab-users@reportlab.com Fri Jul 9 06:50:12 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 9 Jul 2004 08:50:12 +0300 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: <20040708182157.GA1646@mail.librelogiciel.com> References: <20040708152947.GA340@mail.librelogiciel.com> <20040708171828.GA5073@bitute.b4net.lt> <20040708182157.GA1646@mail.librelogiciel.com> Message-ID: <20040709055012.GB5571@bitute.b4net.lt> On Thu, Jul 08, 2004 at 08:21:57PM +0200, Jerome Alet wrote: > > ...but only, if you don't know how to write it by your own. > you said it ! I even doing it... -- 暮 Favorite MAC error message: "Not enough memory to eject disk!" From reportlab-users@reportlab.com Fri Jul 9 07:25:02 2004 From: reportlab-users@reportlab.com (Craig Ringer) Date: Fri, 09 Jul 2004 14:25:02 +0800 Subject: [reportlab-users] suggestion for fonts In-Reply-To: References: Message-ID: <1089354302.12817.8.camel@bucket.localnet> On Fri, 2004-07-09 at 07:29, Andy Robinson wrote: > Sensible, I just added this in. It will look for './fonts' in the > current directory whenever reportlab is first imported. Our > standard approach checks to see if lots of possible directories > exist, and only existing ones end up on the path, so this is cheap. On Linux, it might also be an idea to look at $HOME/.fonts as that's where FontConfig keeps user-installed fonts by default. -- Craig Ringer From reportlab-users@reportlab.com Fri Jul 9 08:06:19 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 9 Jul 2004 09:06:19 +0200 Subject: [reportlab-users] Need to append two pdf's together &/or append pages to the end of an existing PDF file. In-Reply-To: References: <20040708182157.GA1646@mail.librelogiciel.com> Message-ID: <20040709070619.GA8566@mail.librelogiciel.com> On Fri, Jul 09, 2004 at 01:34:24AM +0100, Andy Robinson wrote: > > from reading the PDF language documentation, this shouldn't be > > too difficult to do for simple page management. > > > > It looks like it isn't too hard and you might get away with > the obvious approach for simple documents. > > But if you want to correctly cover all cases, including one > page referring to other forms nested N levels deep; one document > referencing a different subset of a font than another; all > possible naming clashes between resources in the two PDFs; and lots > of other wrinkles, then its actually rather hard. Not to mention > finding other sources of PDFs that don't work quite like Adobe's - > we've recently had fun with OpenOffice output. > > The only safe approach is to fully parse and 'cross-reference' the PDFs > you are slurping in and check every data structure against the > PDF spec. You may have noticed that there are not > many open source PDF libraries which do this - it's not easy! Of course it's not easy, and PageCatcher seems to be really powerful, I didn't want to say it was easy to do, that's why I wrote "for simple page management" I'll send you a mail privately to talk about the project I'm working on (very slowly) bye Jerome Alet From reportlab-users@reportlab.com Fri Jul 9 08:09:43 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 9 Jul 2004 09:09:43 +0200 Subject: [reportlab-users] suggestion for fonts In-Reply-To: <1089354302.12817.8.camel@bucket.localnet> References: <1089354302.12817.8.camel@bucket.localnet> Message-ID: <20040709070943.GC8566@mail.librelogiciel.com> On Fri, Jul 09, 2004 at 02:25:02PM +0800, Craig Ringer wrote: > On Fri, 2004-07-09 at 07:29, Andy Robinson wrote: > > > Sensible, I just added this in. It will look for './fonts' in the > > current directory whenever reportlab is first imported. Our > > standard approach checks to see if lots of possible directories > > exist, and only existing ones end up on the path, so this is cheap. > > On Linux, it might also be an idea to look at $HOME/.fonts as that's > where FontConfig keeps user-installed fonts by default. yes would be fine as well. yesterday I forgot to say why I wanted this, so here's why : when you had enormous difficulties to have an hosting provider install ReportLab, and he did it NOT in your own directory but system wide, and now you want additionnal fonts, it's not as easy as it could be. any comment ? Jerome Alet From reportlab-users@reportlab.com Fri Jul 9 10:06:18 2004 From: reportlab-users@reportlab.com (Chris Withers) Date: Fri, 09 Jul 2004 10:06:18 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: References: Message-ID: <40EE600A.7000405@simplistix.co.uk> Andy Robinson wrote: >>I guess I should quote < and & in stuff I send into paragraphs? > > Yes, that's the easy way. There is a library function to do it Theres is? Where? I just subclasses Paragraph and provideda new constructor ;-) Where's the docs I should have read to find this? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From reportlab-users@reportlab.com Fri Jul 9 10:19:48 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Fri, 09 Jul 2004 10:19:48 +0100 Subject: [reportlab-users] suggestion for fonts In-Reply-To: <20040709070943.GC8566@mail.librelogiciel.com> References: <1089354302.12817.8.camel@bucket.localnet> <20040709070943.GC8566@mail.librelogiciel.com> Message-ID: <40EE6334.3060603@chamonix.reportlab.co.uk> Jerome Alet wrote: > On Fri, Jul 09, 2004 at 02:25:02PM +0800, Craig Ringer wrote: > >>On Fri, 2004-07-09 at 07:29, Andy Robinson wrote: >> >> >>>Sensible, I just added this in. It will look for './fonts' in the >>>current directory whenever reportlab is first imported. Our >>>standard approach checks to see if lots of possible directories >>>exist, and only existing ones end up on the path, so this is cheap. >> >>On Linux, it might also be an idea to look at $HOME/.fonts as that's >>where FontConfig keeps user-installed fonts by default. > > > yes would be fine as well. > > yesterday I forgot to say why I wanted this, so here's why : > > when you had enormous difficulties to have an hosting provider > install ReportLab, and he did it NOT in your own directory but > system wide, and now you want additionnal fonts, it's not as > easy as it could be. > > any comment ? > > Jerome Alet > _______________________________________________ .... We could add a HOME variable to the rl config stuff. Then you could do '%(HOME)s/fonts' in the search paths. HOME can be obtained from the environment and could default to '.' in the worst case of not being defined. -- Robin Becker From reportlab-users@reportlab.com Fri Jul 9 15:58:42 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 9 Jul 2004 15:58:42 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: <40EE600A.7000405@simplistix.co.uk> Message-ID: > Where's the docs I should have read to find this? Err, standard python library, xml.sax.saxutils. But it only does search-and-replace for '&','>' & '<' so rolling your own is not a great sin. - Andy From reportlab-users@reportlab.com Fri Jul 9 19:13:03 2004 From: reportlab-users@reportlab.com (Dennis Allison) Date: Fri, 9 Jul 2004 11:13:03 -0700 (PDT) Subject: [reportlab-users] PyRXP In-Reply-To: Message-ID: PyRXP is super, absolutely the best. I've been using it for a couple of years with great success. We are now re-engineering our system a bit and rethinking how things are organized. I vaguely remember a comment a while back that PyRXP is not thread-safe. We've been using it in a multi-threaded Python environment (Zope) without a problem, but the concurrency is fairly low and have never seen any problem. We are scaling up and so thread-safety will become more of an issue as loads increase. Has any thought/effort gone into making a thread-safe version? From reportlab-users@reportlab.com Sat Jul 10 14:58:31 2004 From: reportlab-users@reportlab.com (Michael Mauws) Date: Sat, 10 Jul 2004 07:58:31 -0600 Subject: [reportlab-users] Getting the name of the current (or next) page template In-Reply-To: <20040710060640.C6BF024F6D@two.pairlist.net> Message-ID: Can anyone tell me if there is an easy way to determine the name of the current or next page template? I'm a reportlab newbie so my apologies in advance if the answer is obvious (to some/most)... ...michael From reportlab-users@reportlab.com Sat Jul 10 17:16:10 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Sat, 10 Jul 2004 17:16:10 +0100 Subject: [reportlab-users] Getting the name of the current (or next) page template In-Reply-To: References: Message-ID: <40F0164A.9040606@jessikat.fsnet.co.uk> Michael Mauws wrote: > Can anyone tell me if there is an easy way to determine the name of the > current or next page template? I'm a reportlab newbie so my apologies in > advance if the answer is obvious (to some/most)... > > > ...michael If doc is your BaseDocTemplate, then the current page template is doc.pageTemplate so you can get its id as doc.pageTemplate.id Normally the current pageTemplate persists. If you have called doc.handle_nextPageTemplate(pt) with pt as the id of the new page template then doc will have an attribute _nextPageTemplateIndex. Thus you should be able to get the name of the next page template as x = getattr(doc,'_nextPageTemplateIndex',None) if x is None: nextptid = doc.pageTemplate.id else: nextptid = doc.pageTemplates[x].id hope this helps. -- Robin Becker From reportlab-users@reportlab.com Mon Jul 12 09:15:00 2004 From: reportlab-users@reportlab.com (Chris Withers) Date: Mon, 12 Jul 2004 09:15:00 +0100 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: References: Message-ID: <40F24884.20604@simplistix.co.uk> Andy Robinson wrote: >>Where's the docs I should have read to find this? > > Err, standard python library, xml.sax.saxutils. Ah right, I thought you meant there was something in ReportLab for this... That said, where are the canonical API docs and other references for ReportLab? > But it only does search-and-replace for > '&','>' & '<' so rolling your own is not a great > sin. I wonder why it replaces >? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From reportlab-users@reportlab.com Mon Jul 12 09:16:00 2004 From: reportlab-users@reportlab.com (Chris Withers) Date: Mon, 12 Jul 2004 09:16:00 +0100 Subject: [reportlab-users] PyRXP In-Reply-To: References: Message-ID: <40F248C0.7080802@simplistix.co.uk> Dennis Allison wrote: > We are now re-engineering our system a bit and rethinking how things are > organized. I vaguely remember a comment a while back that PyRXP is not > thread-safe. We've been using it in a multi-threaded Python environment > (Zope) without a problem, but the concurrency is fairly low and have never > seen any problem. We are scaling up and so thread-safety will become more > of an issue as loads increase. Has any thought/effort gone into making a > thread-safe version? Depending on how heavily used the PyRXP process is, you can just put a bulk-lock around however it's being called... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From reportlab-users@reportlab.com Mon Jul 12 09:17:59 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Mon, 12 Jul 2004 11:17:59 +0300 Subject: [reportlab-users] Disable XML parsing in Paragraph(..) In-Reply-To: <40F24884.20604@simplistix.co.uk> References: <40F24884.20604@simplistix.co.uk> Message-ID: <20040712081759.GA10785@bitute.b4net.lt> On Mon, Jul 12, 2004 at 09:15:00AM +0100, Chris Withers wrote: > I wonder why it replaces >? To make it sure... :-) -- 暮 This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court. From reportlab-users@reportlab.com Mon Jul 12 11:21:12 2004 From: reportlab-users@reportlab.com (Gert Steyn) Date: Mon, 12 Jul 2004 12:21:12 +0200 Subject: [reportlab-users] two Y-axes on bar/line chart Message-ID: Hi Does anyone know if it is possible to get Reportlab to generate a bar/line chart with two Y-axes? I.e. Say I want a chart that shows the relationship between the amount of coffee consumed and the number of lines coded by a development team. I want: 1) X-axis -> time 2) Primary Y-axis -> the number of lines coded 3) Secondary Y-axis (right hand side of the chart) -> litres of coffee consumed Because the units of the Y-axes differ they cannot be plotted on the same axis, thus the need for the primary and secondary axis. Has anyone ever done something similar with ReportLab? Regards Gert Steyn ____________________________________________ ISE Technologies (Pty) Ltd Innovation Centre, Technopark, Stellenbosch, 7650, South Africa Tel: +27 (0) 21 880 2456 Fax: +27 (0) 21 880 2457 Web: www.ise.co.za ____________________________________________ From reportlab-users@reportlab.com Mon Jul 12 13:21:26 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Mon, 12 Jul 2004 13:21:26 +0100 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London Message-ID: ReportLab will be speaking at a one day talk in the City on 22nd July about the "Zope Economy": http://www.zope.com/Corporate/News/UKConf.html This day includes Rob Page, CEO of Zope Corporation, as well as a number of UK firms putting Python and Zope to serious commercial use. The event will have a business rather than a technical focus. During the ReportLab talk I'll be explaining how ReportLab solutions add value and how our reseller network will operate. Come and see us there! Best Regards, Andy Robinson CEO/Chief Architect ReportLab Europe Ltd. mobile +44-7976-355742 office +44-20-8544-8049 From reportlab-users@reportlab.com Mon Jul 12 18:07:31 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Mon, 12 Jul 2004 11:07:31 -0600 Subject: [reportlab-users] Importing a Multipage .Tif file. Message-ID: Hi; I am using ReportLab to create a pdf and have been successfull in importing all flavours of ".tif" files. However, I am having problems when the tif file contains mutiple images. What I need to do is for each image contained in the .tif file (there are > 1 image stored in each tif file), I need to create a separate page in the resulting pdf file. Can anyone assist with this? Thanks Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Mon Jul 12 22:27:10 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Mon, 12 Jul 2004 15:27:10 -0600 Subject: [reportlab-users] RE: Another Newbie question. Adding a directory(table of contents) and bookmarks In-Reply-To: Message-ID: I've been trying to use the following statements to created a directory and bookmarks. This code is inside of a for loop and would occur each time a new windows path is traversed. my_canvas.bookmarkPage(basepath,fitType=Fit,None,None,None,None,None) my_canvas.addOutlineEntry(text,text, 0,0) # text contains "Section:" + basepath # basepath is a unique string such as 'C:/temp/mytest_directory' I think I have these statements as outlined in the documentation (User Guide) but I keep getting syntax errors. Can someone please help me out on this one? Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Tue Jul 13 01:17:05 2004 From: reportlab-users@reportlab.com (Damon Lynch) Date: Tue, 13 Jul 2004 12:17:05 +1200 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London In-Reply-To: References: Message-ID: <1089677825.5663.35.camel@damon.asianreflection.com> On Tue, 2004-07-13 at 00:21, Andy Robinson wrote: > ReportLab will be speaking at a one day talk in the > City on 22nd July about the "Zope Economy": > http://www.zope.com/Corporate/News/UKConf.html > > > This day includes Rob Page, CEO of Zope Corporation, > as well as a number of UK firms putting Python and > Zope to serious commercial use. The event will have > a business rather than a technical focus. During the > ReportLab talk I'll be explaining how ReportLab solutions > add value and how our reseller network will operate. > > Come and see us there! Greetings from NZ, Looks good! I will not be attending the talk, but if anyone is interested I have some code that combines CMFReportTool, CMFNewsletter, and PortalTransport to allow Plone sites to send e-mail newsletters in PDF format in addition to HTML and text. I am currently doing a simple Plone product to separate out the PDF templating out of PortalTransport (which is where I initially stuck it), so it is more reusable. When I've done this I'll check this code into CMFNewsletter and PortalTransport in the Plone collective. BTW the author of CMFReportTool copied and pasted the entire Paragraph.py and made some minor changes in it for use in CMFReportTool, probably to try to fix bugs. I'm not aware that these have been rolled back into the main code. As a separate issue, the HTML parser in CMFReportTool needs a rewrite. Best wishes, Damon From reportlab-users@reportlab.com Tue Jul 13 06:37:01 2004 From: reportlab-users@reportlab.com (Craig Ringer) Date: Tue, 13 Jul 2004 13:37:01 +0800 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: References: Message-ID: <1089697021.15241.12.camel@bucket.localnet> On Tue, 2004-07-13 at 01:07, Jody Burgess wrote: > Hi; > I am using ReportLab to create a pdf and have been successfull in importing > all flavours of ".tif" files. However, I am having problems when the tif > file contains mutiple images. What I need to do is for each image contained > in the .tif file (there are > 1 image stored in each tif file), I need to > create a separate page in the resulting pdf file. Can anyone assist with > this? Does the PIL support multi-page TIFFs? Lots of image libraries don't. If it does, you might want to use the PIL to load the TIF, read each page's data in and create a ReportLab image from the image data in memory. Just a guess. -- Craig Ringer From reportlab-users@reportlab.com Tue Jul 13 07:33:16 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Tue, 13 Jul 2004 07:33:16 +0100 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London In-Reply-To: <1089677825.5663.35.camel@damon.asianreflection.com> Message-ID: > BTW the author of CMFReportTool copied and pasted the entire > Paragraph.py and made some minor changes in it for use in CMFReportTool, > probably to try to fix bugs. I'm not aware that these have been rolled > back into the main code. As a separate issue, the HTML parser in > CMFReportTool needs a rewrite. > That's interesting. None of us here are on Zope lists - and if we were, we'd have even less time for the core code ;-). Perhaps you could hint to the author that we don't mind patches... - Andy From reportlab-users@reportlab.com Tue Jul 13 07:43:22 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Tue, 13 Jul 2004 07:43:22 +0100 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: Message-ID: > Hi; > I am using ReportLab to create a pdf and have been > successfull in importing > all flavours of ".tif" files. However, I am having problems when the tif > file contains mutiple images. What I need to do is for each image > contained > in the .tif file (there are > 1 image stored in each tif file), I need to > create a separate page in the resulting pdf file. Can anyone assist with > this? This is an issue of the Python Imaging Library, not ReportLab. I doubt PIL supports multipage images. However, there is a suite of tools called 'libtiff' at www.libtiff.org which can split them, with a usage example here: http://forums.devshed.com/showthread.php?p=690458#post690458 - Andy Robinson From reportlab-users@reportlab.com Tue Jul 13 14:24:44 2004 From: reportlab-users@reportlab.com (Marc Stober) Date: Tue, 13 Jul 2004 09:24:44 -0400 Subject: [reportlab-users] Re: two Y-axes on bar/line chart Message-ID: <2546C8F5D3D2D411857F00508BDCA4E804576029@dalbar_mail.dalbar.com> Hi Gert, It is pretty easy to do this by creating two separate chart objects and overlaying them on the same drawing. Hope this helps, Marc Message: 4 From: "Gert Steyn" To: Date: Mon, 12 Jul 2004 12:21:12 +0200 Subject: [reportlab-users] two Y-axes on bar/line chart Reply-To: reportlab-users@reportlab.com Hi Does anyone know if it is possible to get Reportlab to generate a bar/line chart with two Y-axes? I.e. Say I want a chart that shows the relationship between the amount of coffee consumed and the number of lines coded by a development team. I want: 1) X-axis -> time 2) Primary Y-axis -> the number of lines coded 3) Secondary Y-axis (right hand side of the chart) -> litres of coffee consumed Because the units of the Y-axes differ they cannot be plotted on the same axis, thus the need for the primary and secondary axis. Has anyone ever done something similar with ReportLab? Regards Gert Steyn ____________________________________________ ISE Technologies (Pty) Ltd Innovation Centre, Technopark, Stellenbosch, 7650, South Africa Tel: +27 (0) 21 880 2456 Fax: +27 (0) 21 880 2457 Web: www.ise.co.za ____________________________________________ From reportlab-users@reportlab.com Tue Jul 13 16:16:09 2004 From: reportlab-users@reportlab.com (Larry Bates) Date: Tue, 13 Jul 2004 10:16:09 -0500 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: <20040713060743.B83C92504E@two.pairlist.net> Message-ID: <012d01c468ec$543904d0$5d00a8c0@LABWXP> Use PIL to open the file. Use image.seek(pageno) inside a loop to seek to each page and place them on a new page in your .PDF document. HTH, Larry Bates Syscon, Inc. Hi; I am using ReportLab to create a pdf and have been successfull in importing all flavours of ".tif" files. However, I am having problems when the tif file contains mutiple images. What I need to do is for each image contained in the .tif file (there are > 1 image stored in each tif file), I need to create a separate page in the resulting pdf file. Can anyone assist with this? Thanks Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Wed Jul 14 12:31:16 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Wed, 14 Jul 2004 12:31:16 +0100 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: <012d01c468ec$543904d0$5d00a8c0@LABWXP> Message-ID: > Use PIL to open the file. Use image.seek(pageno) inside a loop to seek > to each page and place them on a new page in your .PDF document. Wow. Never new PIL could do this. Thanks, Larry! - Andy From reportlab-users@reportlab.com Wed Jul 14 16:09:54 2004 From: reportlab-users@reportlab.com (Jesse Andrews) Date: Wed, 14 Jul 2004 11:09:54 -0400 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: References: Message-ID: <8677a6f8040714080943da13c6@mail.gmail.com> Yeah, I just wish we could save to TIF layer 4 using multipage :) --- someday :) - Jesse On Wed, 14 Jul 2004 12:31:16 +0100, Andy Robinson wrote: > > Use PIL to open the file. Use image.seek(pageno) inside a loop to seek > > to each page and place them on a new page in your .PDF document. > Wow. Never new PIL could do this. Thanks, Larry! > > - Andy > > > _______________________________________________ > reportlab-users mailing list > reportlab-users@reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > From reportlab-users@reportlab.com Thu Jul 15 15:06:19 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Thu, 15 Jul 2004 08:06:19 -0600 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #157 - 2 msgs In-Reply-To: <20040715105436.08E75250A5@two.pairlist.net> Message-ID: Do you have an example? Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com -----Original Message----- From: reportlab-users-admin@reportlab.com [mailto:reportlab-users-admin@reportlab.com]On Behalf Of reportlab-users-request@reportlab.com Sent: Thursday, July 15, 2004 4:55 AM To: reportlab-users@reportlab.com Subject: reportlab-users digest, Vol 2 #157 - 2 msgs Send reportlab-users mailing list submissions to reportlab-users@reportlab.com To subscribe or unsubscribe via the World Wide Web, visit http://two.pairlist.net/mailman/listinfo/reportlab-users or, via email, send a message with subject or body 'help' to reportlab-users-request@reportlab.com You can reach the person managing the list at reportlab-users-admin@reportlab.com When replying, please edit your Subject line so it is more specific than "Re: Contents of reportlab-users digest..." Today's Topics: 1. RE: Importing a Multipage .Tif file. (Andy Robinson) 2. Re: Importing a Multipage .Tif file. (Jesse Andrews) --__--__-- Message: 1 From: "Andy Robinson" To: Subject: RE: [reportlab-users] Importing a Multipage .Tif file. Date: Wed, 14 Jul 2004 12:31:16 +0100 Reply-To: reportlab-users@reportlab.com > Use PIL to open the file. Use image.seek(pageno) inside a loop to seek > to each page and place them on a new page in your .PDF document. Wow. Never new PIL could do this. Thanks, Larry! - Andy --__--__-- Message: 2 Date: Wed, 14 Jul 2004 11:09:54 -0400 From: Jesse Andrews To: reportlab-users@reportlab.com Subject: Re: [reportlab-users] Importing a Multipage .Tif file. Reply-To: reportlab-users@reportlab.com Yeah, I just wish we could save to TIF layer 4 using multipage :) --- someday :) - Jesse On Wed, 14 Jul 2004 12:31:16 +0100, Andy Robinson wrote: > > Use PIL to open the file. Use image.seek(pageno) inside a loop to seek > > to each page and place them on a new page in your .PDF document. > Wow. Never new PIL could do this. Thanks, Larry! > > - Andy > > > _______________________________________________ > reportlab-users mailing list > reportlab-users@reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users > --__--__-- _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users End of reportlab-users Digest From reportlab-users@reportlab.com Thu Jul 15 15:59:37 2004 From: reportlab-users@reportlab.com (Larry Bates) Date: Thu, 15 Jul 2004 09:59:37 -0500 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: <20040715105436.08E75250A5@two.pairlist.net> Message-ID: <002a01c46a7c$59790990$5d00a8c0@LABWXP> Andy, BTW-This also works for .DCX files (which I get from our Castelle fax server) and I believe .PCX files. -Larry Message: 1 From: "Andy Robinson" To: Subject: RE: [reportlab-users] Importing a Multipage .Tif file. Date: Wed, 14 Jul 2004 12:31:16 +0100 Reply-To: reportlab-users@reportlab.com > Use PIL to open the file. Use image.seek(pageno) inside a loop to seek > to each page and place them on a new page in your .PDF document. Wow. Never new PIL could do this. Thanks, Larry! - Andy From reportlab-users@reportlab.com Thu Jul 15 18:22:00 2004 From: reportlab-users@reportlab.com (Chris Withers) Date: Thu, 15 Jul 2004 18:22:00 +0100 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London In-Reply-To: <1089677825.5663.35.camel@damon.asianreflection.com> References: <1089677825.5663.35.camel@damon.asianreflection.com> Message-ID: <40F6BD38.8060001@simplistix.co.uk> Damon Lynch wrote: > Looks good! I will not be attending the talk, but if anyone is > interested I have some code that combines CMFReportTool, CMFNewsletter, > and PortalTransport to allow Plone sites to send e-mail newsletters in > PDF format in addition to HTML and text. It'd certainly be interesting to see that code... I assume it only uses the non-commercial parts of the ReportLab library? > BTW the author of CMFReportTool copied and pasted the entire > Paragraph.py and made some minor changes in it for use in CMFReportTool, > probably to try to fix bugs. Have you got a URL to that file in the public repository? (I'm thinking ViewCVS here ;-) > I'm not aware that these have been rolled > back into the main code. As a separate issue, the HTML parser in > CMFReportTool needs a rewrite. Why not just use HTMLParser.py, included in the main python distribution and heavilly used by ZPT? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk From reportlab-users@reportlab.com Thu Jul 15 10:48:33 2004 From: reportlab-users@reportlab.com (=?ISO-8859-1?Q?Aitzol_Naberan_Burga=F1a?=) Date: Thu, 15 Jul 2004 11:48:33 +0200 Subject: [reportlab-users] Table and Paragraph Message-ID: <40F652F1.1070502@codesyntax.com> Hi all,
I'm new using reportlab and I have some troubles with tables.
I want insert a pargraph into a table cell (data.append([Paragraph(text,style),Paragraph(text1,style)]), two colums one row table, I think)
But when I try to build my pdf file I get this error:

Traceback (most recent call last):
  File "taula.py", line 111, in ?
    go()
  File "taula.py", line 107, in go
    doc.build(getFlowables())
  File "/usr/lib/python2.3/reportlab/platypus/doctemplate.py", line 579, in build
    self.handle_flowable(flowables)
  File "/usr/lib/python2.3/reportlab/platypus/doctemplate.py", line 496, in handle_flowable
    if self.frame.add(f, self.canv, trySplit=self.allowSplitting):
  File "/usr/lib/python2.3/reportlab/platypus/frames.py", line 111, in _add
    w, h = flowable.wrap(self._aW, h)
  File "/usr/lib/python2.3/reportlab/platypus/tables.py", line 451, in wrap
    self._calc()
  File "/usr/lib/python2.3/reportlab/platypus/tables.py", line 325, in _calc
    self._calc_height()
  File "/usr/lib/python2.3/reportlab/platypus/tables.py", line 296, in _calc_height
    raise ValueError, "Flowable %s in cell(%d,%d) can't have auto width in\n%s" % (v[0].identity(30),i,j,self.identity(30))
ValueError: Flowable <Paragraph at 1079373196>Isabel I.aren (1558-163) eta J in cell(0,1) can't have auto width in
<Table at 1079373164 27 rows x 2 cols> with cell(0,0) containing
'<Paragraph at 1079373196>Isabel I.aren (1558-163) eta J'

It seems something with the Paragraph width, but I don't know what. I search the usermanual and reference guide for something to set the paragraph width, but I don't see nothing.

Any hint with this????

--
firma Aitzol Naberan Burgaña
CodeSyntax
anaberan@codesyntax.com
www.codesyntax.com
Tel: 943  82 17 80
From reportlab-users@reportlab.com Fri Jul 16 09:26:42 2004 From: reportlab-users@reportlab.com (Damon Lynch) Date: Fri, 16 Jul 2004 20:26:42 +1200 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London In-Reply-To: <40F6BD38.8060001@simplistix.co.uk> References: <1089677825.5663.35.camel@damon.asianreflection.com> <40F6BD38.8060001@simplistix.co.uk> Message-ID: <1089966402.17450.18.camel@damon.asianreflection.com> Sorry about the delayed reply. On Fri, 2004-07-16 at 05:22, Chris Withers wrote: > Damon Lynch wrote: > > Looks good! I will not be attending the talk, but if anyone is > > interested I have some code that combines CMFReportTool, CMFNewsletter, > > and PortalTransport to allow Plone sites to send e-mail newsletters in > > PDF format in addition to HTML and text. > > It'd certainly be interesting to see that code... I assume it only uses the > non-commercial parts of the ReportLab library? Uses CMFReportTool, so that should not be a problem. > > > BTW the author of CMFReportTool copied and pasted the entire > > Paragraph.py and made some minor changes in it for use in CMFReportTool, > > probably to try to fix bugs. > > Have you got a URL to that file in the public repository? > (I'm thinking ViewCVS here ;-) http://cvs.sourceforge.net/viewcvs.py/collective/CMFReportTool/ > > > I'm not aware that these have been rolled > > back into the main code. As a separate issue, the HTML parser in > > CMFReportTool needs a rewrite. > > Why not just use HTMLParser.py, included in the main python distribution and > heavilly used by ZPT? Good question... you could ask author of CMFReportTool ;) Best wishes, Damon > > Chris From reportlab-users@reportlab.com Fri Jul 16 09:28:15 2004 From: reportlab-users@reportlab.com (Damon Lynch) Date: Fri, 16 Jul 2004 20:28:15 +1200 Subject: [reportlab-users] ReportLab and Zope - Thursday 22nd July, London In-Reply-To: References: Message-ID: <1089966495.17450.20.camel@damon.asianreflection.com> On Tue, 2004-07-13 at 18:33, Andy Robinson wrote: > That's interesting. None of us here are on Zope lists - and if we were, > we'd have even less time for the core code ;-). Perhaps you could hint > to the author that we don't mind patches... I did prompt him some months ago ;-) Here is the code if you are curious, Paragraph.py: http://cvs.sourceforge.net/viewcvs.py/collective/CMFReportTool/RenderPDF/ Kind regards Damon From reportlab-users@reportlab.com Fri Jul 16 13:03:52 2004 From: reportlab-users@reportlab.com (=?ISO-8859-1?Q?Aitzol_Naberan_Burga=F1a?=) Date: Fri, 16 Jul 2004 14:03:52 +0200 Subject: [reportlab-users] Hello and question:XPreformated in Table Message-ID: <40F7C428.7010408@codesyntax.com> Hi all, I'm new with reportlab. I have one problem with tables and XPreformatted flowables. I'm trying to inser one XPreformatted object in a table cell, but it appears in a line (out of cell limits) If I do the same using Paragraph the text is fine into the cell, but doesn't do anything with the
tag. Any help will be apreciated This is my code (only the table creation, if you need more I will post it) #I'm doing a two columns table for i in range(len(list)): data.append([XPreformatted(list[i],estiloa),XPreformatted(list[i],estiloa)]) table=LongTable(data,colWidths=[doc.width/2.0,doc.width/2.0]) story.append(table) And then I build the document with the story -- Aitzol Naberan Burgaña CodeSyntax anaberan@codesyntax.com www.codesyntax.com Tel: 943 82 17 80 From reportlab-users@reportlab.com Sat Jul 17 12:26:10 2004 From: reportlab-users@reportlab.com (Dinu Gherman) Date: Sat, 17 Jul 2004 13:26:10 +0200 Subject: [reportlab-users] Importing a Multipage .Tif file. In-Reply-To: References: Message-ID: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> Jody Burgess: > I am using ReportLab to create a pdf and have been successfull in > importing > all flavours of ".tif" files. However, I am having problems when the > tif > file contains mutiple images. What I need to do is for each image > contained > in the .tif file (there are > 1 image stored in each tif file), I need > to > create a separate page in the resulting pdf file. Can anyone assist > with > this? Hi Jody, a Python/PIL-independant solution to your problem - yes, even on Win32 as it seems, would be to use libtiff externally for splitting such files. I'd asume libtiff is handling more TIFF variants than PIL, which at least used to have some problems with TIFF files generated on a Mac. http://www.libtiff.org/tools.html Regards, Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... I miss you! - http://www.angelika-birck.info From reportlab-users@reportlab.com Mon Jul 19 21:42:23 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Mon, 19 Jul 2004 14:42:23 -0600 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg In-Reply-To: <20040718060628.BA4DE25034@two.pairlist.net> Message-ID: Hi; I have another question about reportLabs processing. I need to be able to encode certain pages to print from specific print trays. For example: A section heading page would be encoded to print from papertray 1 and the detailed pages from papertray 2. Can I do this with ReportLabs? If so, how? If not, how do I accomplish this? P.S. (example code is very much appreciated and more useful than a statement like "use Win32all API" Thanks Very much. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com -----Original Message----- From: reportlab-users-admin@reportlab.com [mailto:reportlab-users-admin@reportlab.com]On Behalf Of reportlab-users-request@reportlab.com Sent: Sunday, July 18, 2004 12:06 AM To: reportlab-users@reportlab.com Subject: reportlab-users digest, Vol 2 #160 - 1 msg Send reportlab-users mailing list submissions to reportlab-users@reportlab.com To subscribe or unsubscribe via the World Wide Web, visit http://two.pairlist.net/mailman/listinfo/reportlab-users or, via email, send a message with subject or body 'help' to reportlab-users-request@reportlab.com You can reach the person managing the list at reportlab-users-admin@reportlab.com When replying, please edit your Subject line so it is more specific than "Re: Contents of reportlab-users digest..." Today's Topics: 1. Re: Importing a Multipage .Tif file. (Dinu Gherman) --__--__-- Message: 1 Cc: Jody Burgess From: Dinu Gherman Subject: Re: [reportlab-users] Importing a Multipage .Tif file. Date: Sat, 17 Jul 2004 13:26:10 +0200 To: reportlab-users@reportlab.com Reply-To: reportlab-users@reportlab.com Jody Burgess: > I am using ReportLab to create a pdf and have been successfull in > importing > all flavours of ".tif" files. However, I am having problems when the > tif > file contains mutiple images. What I need to do is for each image > contained > in the .tif file (there are > 1 image stored in each tif file), I need > to > create a separate page in the resulting pdf file. Can anyone assist > with > this? Hi Jody, a Python/PIL-independant solution to your problem - yes, even on Win32 as it seems, would be to use libtiff externally for splitting such files. I'd asume libtiff is handling more TIFF variants than PIL, which at least used to have some problems with TIFF files generated on a Mac. http://www.libtiff.org/tools.html Regards, Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... I miss you! - http://www.angelika-birck.info --__--__-- _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users End of reportlab-users Digest From reportlab-users@reportlab.com Mon Jul 19 23:21:27 2004 From: reportlab-users@reportlab.com (John Pywtorak) Date: Mon, 19 Jul 2004 15:21:27 -0700 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg In-Reply-To: References: Message-ID: <200407191521.27276.jpywtora@calpoly.edu> On Monday 19 July 2004 01:42 pm, Jody Burgess wrote: > Hi; > I have another question about reportLabs processing. I need to be able to > encode certain pages to print from specific print trays. For example: A > section heading page would be encoded to print from papertray 1 and the > detailed pages from papertray 2. Can I do this with ReportLabs? If so, how? > If not, how do I accomplish this? P.S. (example code is very much > appreciated and more useful than a statement like "use Win32all API" *snip* Is that on the PDF spec? Can Adobe Acrobat do it? I don't think so, seems like that is something external to the pdf specification. Maybe I am wrong, have been before. Seems like a job for something like distiller, or a unix equivalent that could control the stream to CUPS, or lpd, etc. -- Windows Start Here Frustrating Hanging Crashing Blue Screen of Death Reboot From reportlab-users@reportlab.com Mon Jul 19 10:59:04 2004 From: reportlab-users@reportlab.com (Ulrich Weber) Date: Mon, 19 Jul 2004 11:59:04 +0200 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry Message-ID: When using the setfont tag in RML with a font name different from "Helvetica" or "Times-Roman" I get a python exception as shown in the following example: RML-Code: This is the "story". This is the part of the RML document where your text is placed. Resulting python message: Traceback (most recent call last): File "D:\Program Files\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? x = parseString(rml) File "trml2pdf\trml2pdf.py", line 518, in parseString File "trml2pdf\trml2pdf.py", line 148, in render File "trml2pdf\trml2pdf.py", line 507, in render File "D:\Program Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line 650, in build self._endBuild() File "D:\Program Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line 607, in _endBuild if getattr(self,'_doSave',1): self.canv.save() File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfgen\canvas.py", line 847, in save self._doc.SaveToFile(self._filename, self) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 234, in SaveToFile f.write(self.GetPDFData(canvas)) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 256, in GetPDFData return self.format() File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 413, in format return File.format(self) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 770, in format return string.join(self.strings, "") File "D:\Program Files\Python23\Lib\string.py", line 135, in join return sep.join(words) UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 11: ordinal not in range(128) As stated above, font names "Helvetica" and "Times-Roman" work fine, all other font names don't work. I am using Python 2.3; may this cause the problem ? I am looking forward to your advice! Ulrich Weber From reportlab-users@reportlab.com Tue Jul 20 09:31:18 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Tue, 20 Jul 2004 11:31:18 +0300 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: References: Message-ID: <20040720083118.GA3000@bitute.b4net.lt> On Mon, Jul 19, 2004 at 11:59:04AM +0200, Ulrich Weber wrote: > Traceback (most recent call last): > File "D:\Program > Files\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in __main__.__dict__ > File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? > x = parseString(rml) > File "trml2pdf\trml2pdf.py", line 518, in parseString > File "trml2pdf\trml2pdf.py", line 148, in render > File "trml2pdf\trml2pdf.py", line 507, in render > File "D:\Program > Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line > 650, in build > self._endBuild() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line > 607, in _endBuild > if getattr(self,'_doSave',1): self.canv.save() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfgen\canvas.py", line 847, in > save > self._doc.SaveToFile(self._filename, self) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 234, in > SaveToFile > f.write(self.GetPDFData(canvas)) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 256, in > GetPDFData > return self.format() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 413, in > format > return File.format(self) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 770, in > format > return string.join(self.strings, "") > File "D:\Program Files\Python23\Lib\string.py", line 135, in join > return sep.join(words) > UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 11: > ordinal not in range(128) 1. Unicode && TTF's are supported in my fork of this project. But I never had tried it (and probably never will) on Win32 OS. 2. Current recipe to you: yourunicodestring.encode(yourcharset) for your strings. -- æš® reduce(lambda c,d:chr(ord(d)-2)+c, 'ofcpqkekhhC"zwpkN"fgtgyqR/pqjv{R') From reportlab-users@reportlab.com Tue Jul 20 09:37:51 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Tue, 20 Jul 2004 09:37:51 +0100 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: References: Message-ID: <40FCD9DF.8010402@chamonix.reportlab.co.uk> Ulrich Weber wrote: > > > When using the setfont tag in RML with a font name different from > "Helvetica" or "Times-Roman" I get a python exception as shown in the > following example: > > RML-Code: > > > > > > > > > This is the "story". This is the part of the RML document where > your text is placed. > > > > Resulting python message: > > Traceback (most recent call last): ........ > I am using Python 2.3; may this cause the problem ? > > I am looking forward to your advice! > > Ulrich Weber Ulrich I tried this exact source with the current SVN version of rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 under win32 and freebsd. Since Helvetica-Bold is one of the standard fonts it should be available always. Is it possible that your source text is encoded in some way? I can't seem to find character 0x93 in your example probably. When I use that character explicitly pasted in (it seems to be a special double quote) I still get a working PDF. Can you say which version or rml2pdf/reportlab you are using? -- Robin Becker From reportlab-users@reportlab.com Tue Jul 20 09:41:31 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Tue, 20 Jul 2004 09:41:31 +0100 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <40FCD9DF.8010402@chamonix.reportlab.co.uk> References: <40FCD9DF.8010402@chamonix.reportlab.co.uk> Message-ID: <40FCDABB.4060301@chamonix.reportlab.co.uk> Robin Becker wrote: ....... >> I am using Python 2.3; may this cause the problem ? >> >> I am looking forward to your advice! >> >> Ulrich Weber > > > Ulrich I tried this exact source with the current SVN version of > rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 > under win32 and freebsd. Since Helvetica-Bold is one of the standard > fonts it should be available always. > > Is it possible that your source text is encoded in some way? I can't > seem to find character 0x93 in your example probably. When I use that > character explicitly pasted in (it seems to be a special double quote) I > still get a working PDF. > > Can you say which version or rml2pdf/reportlab you are using? my colleague points out that your traceback seems to indicate that you're using someone elses version of rml2pdf eg File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? x = parseString(rml) File "trml2pdf\trml2pdf.py", line 518, in parseString File "trml2pdf\trml2pdf.py", line 148, in render File "trml2pdf\trml2pdf.py", line 507, in render in which case all bets are off. You probably better consult the author directly. -- Robin Becker From reportlab-users@reportlab.com Tue Jul 20 09:45:18 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Tue, 20 Jul 2004 11:45:18 +0300 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <40FCD9DF.8010402@chamonix.reportlab.co.uk> References: <40FCD9DF.8010402@chamonix.reportlab.co.uk> Message-ID: <20040720084518.GA4451@bitute.b4net.lt> On Tue, Jul 20, 2004 at 09:37:51AM +0100, Robin Becker wrote: > rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 Robin, I don't think you _expect_ Traceback when using your *commertial* RML2PDF! ;-) But seems like Ulrich uses TinyRML from www.openreport.org instead of RML2PDF from RL. -- æš® > find /lib/modules/2.4.17-expt/kernel/ -type f|while read i; do insmod $i; done You're sick. I like you. -- Andrew Morton on lkml From reportlab-users@reportlab.com Tue Jul 20 12:24:14 2004 From: reportlab-users@reportlab.com (reportlab-users@reportlab.com) Date: Tue, 20 Jul 2004 04:24:14 -0700 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg In-Reply-To: Message-ID: This has been done but is not easy. It is possible to insert postscript 'tray commands' in the document at certain points. However, the commands to insert require detailed knowledge of your specific printer and its postscript drivers. It is officially 'no longer supported' by Adobe and may require you to print from an older copy of Acrobat Reader (4.0 works for us). The best thing would be for you to email the precise printer model and any driver details to us at support@reportlab.com, and I will try to dig out what we did on the most recent similar consulting project. Thanks, Andy Robinson CEO/Chief Architect RepoortLab Europe Ltd. tel +44 20 8544 8049 -----Original Message----- From: Jody Burgess To: reportlab-users@reportlab.com Sent: Mon, 19 Jul 2004 14:42:23 -0600 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg Hi; I have another question about reportLabs processing. I need to be able to encode certain pages to print from specific print trays. For example: A section heading page would be encoded to print from papertray 1 and the detailed pages from papertray 2. Can I do this with ReportLabs? If so, how? If not, how do I accomplish this? P.S. (example code is very much appreciated and more useful than a statement like "use Win32all API" Thanks Very much. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com -----Original Message----- From: reportlab-users-admin@reportlab.com [mailto:reportlab-users-admin@reportlab.com]On Behalf Of reportlab-users-request@reportlab.com Sent: Sunday, July 18, 2004 12:06 AM To: reportlab-users@reportlab.com Subject: reportlab-users digest, Vol 2 #160 - 1 msg Send reportlab-users mailing list submissions to reportlab-users@reportlab.com To subscribe or unsubscribe via the World Wide Web, visit http://two.pairlist.net/mailman/listinfo/reportlab-users or, via email, send a message with subject or body 'help' to reportlab-users-request@reportlab.com You can reach the person managing the list at reportlab-users-admin@reportlab.com When replying, please edit your Subject line so it is more specific than "Re: Contents of reportlab-users digest..." Today's Topics: 1. Re: Importing a Multipage .Tif file. (Dinu Gherman) --__--__-- Message: 1 Cc: Jody Burgess From: Dinu Gherman Subject: Re: [reportlab-users] Importing a Multipage .Tif file. Date: Sat, 17 Jul 2004 13:26:10 +0200 To: reportlab-users@reportlab.com Reply-To: reportlab-users@reportlab.com Jody Burgess: > I am using ReportLab to create a pdf and have been successfull in > importing > all flavours of ".tif" files. However, I am having problems when the > tif > file contains mutiple images. What I need to do is for each image > contained > in the .tif file (there are > 1 image stored in each tif file), I need > to > create a separate page in the resulting pdf file. Can anyone assist > with > this? Hi Jody, a Python/PIL-independant solution to your problem - yes, even on Win32 as it seems, would be to use libtiff externally for splitting such files. I'd asume libtiff is handling more TIFF variants than PIL, which at least used to have some problems with TIFF files generated on a Mac. http://www.libtiff.org/tools.html Regards, Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... I miss you! - http://www.angelika-birck.info --__--__-- _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users End of reportlab-users Digest _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users From reportlab-users@reportlab.com Wed Jul 21 15:27:01 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Wed, 21 Jul 2004 08:27:01 -0600 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #162 - 6 msgs In-Reply-To: <20040721060739.8F8CB250E0@two.pairlist.net> Message-ID: Thanks Andy. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com -----Original Message----- From: reportlab-users-admin@reportlab.com [mailto:reportlab-users-admin@reportlab.com]On Behalf Of reportlab-users-request@reportlab.com Sent: Wednesday, July 21, 2004 12:08 AM To: reportlab-users@reportlab.com Subject: reportlab-users digest, Vol 2 #162 - 6 msgs Send reportlab-users mailing list submissions to reportlab-users@reportlab.com To subscribe or unsubscribe via the World Wide Web, visit http://two.pairlist.net/mailman/listinfo/reportlab-users or, via email, send a message with subject or body 'help' to reportlab-users-request@reportlab.com You can reach the person managing the list at reportlab-users-admin@reportlab.com When replying, please edit your Subject line so it is more specific than "Re: Contents of reportlab-users digest..." Today's Topics: 1. "setfont" tag in RML seems not to work propelry (Ulrich Weber) 2. Re: "setfont" tag in RML seems not to work propelry (Bogdan M. Maryniuck) 3. Re: "setfont" tag in RML seems not to work propelry (Robin Becker) 4. Re: "setfont" tag in RML seems not to work propelry (Robin Becker) 5. Re: "setfont" tag in RML seems not to work propelry (Bogdan M. Maryniuck) 6. Re: RE: reportlab-users digest, Vol 2 #160 - 1 msg (andy@reportlab.com) --__--__-- Message: 1 To: reportlab-users@reportlab.com From: Ulrich Weber Date: Mon, 19 Jul 2004 11:59:04 +0200 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry Reply-To: reportlab-users@reportlab.com When using the setfont tag in RML with a font name different from "Helvetica" or "Times-Roman" I get a python exception as shown in the following example: RML-Code: This is the "story". This is the part of the RML document where your text is placed. Resulting python message: Traceback (most recent call last): File "D:\Program Files\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in __main__.__dict__ File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? x = parseString(rml) File "trml2pdf\trml2pdf.py", line 518, in parseString File "trml2pdf\trml2pdf.py", line 148, in render File "trml2pdf\trml2pdf.py", line 507, in render File "D:\Program Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line 650, in build self._endBuild() File "D:\Program Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line 607, in _endBuild if getattr(self,'_doSave',1): self.canv.save() File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfgen\canvas.py", line 847, in save self._doc.SaveToFile(self._filename, self) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 234, in SaveToFile f.write(self.GetPDFData(canvas)) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 256, in GetPDFData return self.format() File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 413, in format return File.format(self) File "D:\Program Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 770, in format return string.join(self.strings, "") File "D:\Program Files\Python23\Lib\string.py", line 135, in join return sep.join(words) UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 11: ordinal not in range(128) As stated above, font names "Helvetica" and "Times-Roman" work fine, all other font names don't work. I am using Python 2.3; may this cause the problem ? I am looking forward to your advice! Ulrich Weber --__--__-- Message: 2 Date: Tue, 20 Jul 2004 11:31:18 +0300 To: reportlab-users@reportlab.com Subject: Re: [reportlab-users] "setfont" tag in RML seems not to work propelry From: bo@bitute.b4net.lt (Bogdan M. Maryniuck) Reply-To: reportlab-users@reportlab.com On Mon, Jul 19, 2004 at 11:59:04AM +0200, Ulrich Weber wrote: > Traceback (most recent call last): > File "D:\Program > Files\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", > line 310, in RunScript > exec codeObject in __main__.__dict__ > File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? > x = parseString(rml) > File "trml2pdf\trml2pdf.py", line 518, in parseString > File "trml2pdf\trml2pdf.py", line 148, in render > File "trml2pdf\trml2pdf.py", line 507, in render > File "D:\Program > Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line > 650, in build > self._endBuild() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\platypus\doctemplate.py", line > 607, in _endBuild > if getattr(self,'_doSave',1): self.canv.save() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfgen\canvas.py", line 847, in > save > self._doc.SaveToFile(self._filename, self) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 234, in > SaveToFile > f.write(self.GetPDFData(canvas)) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 256, in > GetPDFData > return self.format() > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 413, in > format > return File.format(self) > File "D:\Program > Files\Python23\lib\site-packages\reportlab\pdfbase\pdfdoc.py", line 770, in > format > return string.join(self.strings, "") > File "D:\Program Files\Python23\Lib\string.py", line 135, in join > return sep.join(words) > UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 11: > ordinal not in range(128) 1. Unicode && TTF's are supported in my fork of this project. But I never had tried it (and probably never will) on Win32 OS. 2. Current recipe to you: yourunicodestring.encode(yourcharset) for your strings. -- æš® reduce(lambda c,d:chr(ord(d)-2)+c, 'ofcpqkekhhC"zwpkN"fgtgyqR/pqjv{R') --__--__-- Message: 3 Date: Tue, 20 Jul 2004 09:37:51 +0100 From: Robin Becker To: reportlab-users@reportlab.com Subject: Re: [reportlab-users] "setfont" tag in RML seems not to work propelry Reply-To: reportlab-users@reportlab.com Ulrich Weber wrote: > > > When using the setfont tag in RML with a font name different from > "Helvetica" or "Times-Roman" I get a python exception as shown in the > following example: > > RML-Code: > > > > > > > > > This is the "story". This is the part of the RML document where > your text is placed. > > > > Resulting python message: > > Traceback (most recent call last): ........ > I am using Python 2.3; may this cause the problem ? > > I am looking forward to your advice! > > Ulrich Weber Ulrich I tried this exact source with the current SVN version of rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 under win32 and freebsd. Since Helvetica-Bold is one of the standard fonts it should be available always. Is it possible that your source text is encoded in some way? I can't seem to find character 0x93 in your example probably. When I use that character explicitly pasted in (it seems to be a special double quote) I still get a working PDF. Can you say which version or rml2pdf/reportlab you are using? -- Robin Becker --__--__-- Message: 4 Date: Tue, 20 Jul 2004 09:41:31 +0100 From: Robin Becker To: reportlab-users@reportlab.com Subject: Re: [reportlab-users] "setfont" tag in RML seems not to work propelry Reply-To: reportlab-users@reportlab.com Robin Becker wrote: ....... >> I am using Python 2.3; may this cause the problem ? >> >> I am looking forward to your advice! >> >> Ulrich Weber > > > Ulrich I tried this exact source with the current SVN version of > rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 > under win32 and freebsd. Since Helvetica-Bold is one of the standard > fonts it should be available always. > > Is it possible that your source text is encoded in some way? I can't > seem to find character 0x93 in your example probably. When I use that > character explicitly pasted in (it seems to be a special double quote) I > still get a working PDF. > > Can you say which version or rml2pdf/reportlab you are using? my colleague points out that your traceback seems to indicate that you're using someone elses version of rml2pdf eg File "D:\AR_Tool\AR_Tool_V9.1\AR_Tool\Script1.py", line 27, in ? x = parseString(rml) File "trml2pdf\trml2pdf.py", line 518, in parseString File "trml2pdf\trml2pdf.py", line 148, in render File "trml2pdf\trml2pdf.py", line 507, in render in which case all bets are off. You probably better consult the author directly. -- Robin Becker --__--__-- Message: 5 Date: Tue, 20 Jul 2004 11:45:18 +0300 To: reportlab-users@reportlab.com Subject: Re: [reportlab-users] "setfont" tag in RML seems not to work propelry From: bo@bitute.b4net.lt (Bogdan M. Maryniuck) Reply-To: reportlab-users@reportlab.com On Tue, Jul 20, 2004 at 09:37:51AM +0100, Robin Becker wrote: > rml2pdf/reportlab and it works perfectly (as expected) with Python 2.3 Robin, I don't think you _expect_ Traceback when using your *commertial* RML2PDF! ;-) But seems like Ulrich uses TinyRML from www.openreport.org instead of RML2PDF from RL. -- æš® > find /lib/modules/2.4.17-expt/kernel/ -type f|while read i; do insmod $i; done You're sick. I like you. -- Andrew Morton on lkml --__--__-- Message: 6 Date: Tue, 20 Jul 2004 04:24:14 -0700 From: Subject: Re: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg To: reportlab-users@reportlab.com Reply-To: reportlab-users@reportlab.com This has been done but is not easy. It is possible to insert postscript 'tray commands' in the document at certain points. However, the commands to insert require detailed knowledge of your specific printer and its postscript drivers. It is officially 'no longer supported' by Adobe and may require you to print from an older copy of Acrobat Reader (4.0 works for us). The best thing would be for you to email the precise printer model and any driver details to us at support@reportlab.com, and I will try to dig out what we did on the most recent similar consulting project. Thanks, Andy Robinson CEO/Chief Architect RepoortLab Europe Ltd. tel +44 20 8544 8049 -----Original Message----- From: Jody Burgess To: reportlab-users@reportlab.com Sent: Mon, 19 Jul 2004 14:42:23 -0600 Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #160 - 1 msg Hi; I have another question about reportLabs processing. I need to be able to encode certain pages to print from specific print trays. For example: A section heading page would be encoded to print from papertray 1 and the detailed pages from papertray 2. Can I do this with ReportLabs? If so, how? If not, how do I accomplish this? P.S. (example code is very much appreciated and more useful than a statement like "use Win32all API" Thanks Very much. Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com -----Original Message----- From: reportlab-users-admin@reportlab.com [mailto:reportlab-users-admin@reportlab.com]On Behalf Of reportlab-users-request@reportlab.com Sent: Sunday, July 18, 2004 12:06 AM To: reportlab-users@reportlab.com Subject: reportlab-users digest, Vol 2 #160 - 1 msg Send reportlab-users mailing list submissions to reportlab-users@reportlab.com To subscribe or unsubscribe via the World Wide Web, visit http://two.pairlist.net/mailman/listinfo/reportlab-users or, via email, send a message with subject or body 'help' to reportlab-users-request@reportlab.com You can reach the person managing the list at reportlab-users-admin@reportlab.com When replying, please edit your Subject line so it is more specific than "Re: Contents of reportlab-users digest..." Today's Topics: 1. Re: Importing a Multipage .Tif file. (Dinu Gherman) -- __--__-- Message: 1 Cc: Jody Burgess From: Dinu Gherman Subject: Re: [reportlab-users] Importing a Multipage .Tif file. Date: Sat, 17 Jul 2004 13:26:10 +0200 To: reportlab-users@reportlab.com Reply-To: reportlab-users@reportlab.com Jody Burgess: > I am using ReportLab to create a pdf and have been successfull in > importing > all flavours of ".tif" files. However, I am having problems when the > tif > file contains mutiple images. What I need to do is for each image > contained > in the .tif file (there are > 1 image stored in each tif file), I need > to > create a separate page in the resulting pdf file. Can anyone assist > with > this? Hi Jody, a Python/PIL-independant solution to your problem - yes, even on Win32 as it seems, would be to use libtiff externally for splitting such files. I'd asume libtiff is handling more TIFF variants than PIL, which at least used to have some problems with TIFF files generated on a Mac. http://www.libtiff.org/tools.html Regards, Dinu -- Dinu C. Gherman - http://python.net/~gherman ...................................................................... I miss you! - http://www.angelika-birck.info -- __--__-- _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users End of reportlab-users Digest _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users --__--__-- _______________________________________________ reportlab-users mailing list reportlab-users@reportlab.com http://two.pairlist.net/mailman/listinfo/reportlab-users End of reportlab-users Digest From reportlab-users@reportlab.com Wed Jul 21 22:04:28 2004 From: reportlab-users@reportlab.com (Ian Sparks) Date: Wed, 21 Jul 2004 17:04:28 -0400 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry Message-ID: <41A1CBC76FDECC42B67946519C6677A9018C2F0D@pippin.int.etrials.com> PiBCdXQgc2VlbXMgbGlrZSBVbHJpY2ggdXNlcyBUaW55Uk1MIGZyb20gd3d3Lm9wZW5yZXBvcnQu b3JnIA0KPiBpbnN0ZWFkIG9mIFJNTDJQREYgZnJvbSBSTC4NCg0KSXQncyBuaWNlIHRvIGhhdmUg YW4gb3BlbiBzb3VyY2UgdmVyc2lvbiBvZiBSTUwyUERGIGJ1dCBwZXJoYXBzIEZhYmllbiBjb3Vs ZCBkbyBhIGxpdHRsZSBtb3JlIHRvIHByb21vdGUgUmVwb3J0TGFiIGF0IHd3dy5vcGVucmVwb3J0 Lm9yZy4gVGlueVJNTCBtYXkgbm90IGJlIGludGVuZGVkIGFzIGEgZnVsbCBjb21wZXRpdG9yIHRv IFJlcG9ydExhYiBSTUwgYnV0IGl0IGFwcGVhcnMgdG8gdXNlIHRoZSBzYW1lIChSZXBvcnRMYWIp IHNwZWNpZmljYXRpb24gYW5kIGhhcyB0aGUgcG90ZW50aWFsIHRvIHN0ZWFsIHBheWluZyBjbGll bnRzIGZyb20gUmVvcnRMYWJzJyBvZmZlcmluZy4NCg0KQW4gb3Blbi1zb3VyY2UgdmVyc2lvbiBv ZiBSTUwgd2FzIGluZXZpdGFibGUgKGFuZCB0byBtZSB3ZWxjb21lKSBidXQgaXQgc2hvdWxkIHN0 aWxsIHBsYXkgbmljZSB3aXRoIHRoZSBSZXBvcnRMYWIgY29tbXVuaXR5IGFuZCBwYXJ0IG9mIHBs YXlpbmctbmljZSBpcyB0byBzdXBwb3J0IFJlcG9ydExhYnMnIGNvbW1lcmNpYWwgYWN0aXZpdGll cyBzbyB0aGF0IHdlIGNhbiBjb250aW51ZSB0byBlbmpveSB0aGUgdHJpY2tsZS1kb3duIGZydWl0 cyBvZiB0aGF0IHByb2dyYW1tZSBpbiB0aGUgb3Blbi1zb3VyY2UgdG9vbHMuDQoNCkNyZWRpdCB3 aGVyZSBpdCdzIGR1ZSBhbmQgYSBsaW5rIHRvIHRoZSBSZXBvcnRMYWIuY29tIHNpdGUgZm9yICJw ZW9wbGUgd2hvIHdhbnQgdGhlIG9yaWdpbmFsLCBwcm9mZXNzaW9uYWxseSBzdXBwb3J0ZWQgdmVy c2lvbiIgaXMgcHJvYmFibHkgYXBwcm9wcmlhdGUuDQoNCkZvciB0aGUgcmVjb3JkLCBpdCBhcHBl YXJzIHRoYXQgVGlueVJNTCB1c2VzIE9TRSB3aGljaCBpcyBsaWNlbmNlZCB1bmRlciB0aGUgKGJh c2ljYWxseSBub25jb21tZXJjaWFsKSBRUEwgKGh0dHA6Ly9vc2Uuc291cmNlZm9yZ2UubmV0L2Jy b3dzZS5waHA/Z3JvdXA9Z2VuZXJhbC1pbmZvcm1hdGlvbiZlbnRyeT1saWNlbnNlLmh0bSkgcmF0 aGVyIHRoYW4gdW5kZXIgdGhlIFJlcG9ydExhYiBCU0QgbGljZW5jZS4gVGhhdCBtYWtlcyBpdCBz ZWVtIGxpa2UgYSBub24tY29tcGV0aXRvciBidXQgSSBjYW4ndCBiZWxpZXZlIHRoYXQgY3V0dGlu ZyBPU0Ugb3V0IG9mIHRoZSBwaWN0dXJlIHdvdWxkIGJlIHRoYXQgdG91Z2guDQo= From reportlab-users@reportlab.com Thu Jul 22 00:38:38 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Thu, 22 Jul 2004 00:38:38 +0100 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <41A1CBC76FDECC42B67946519C6677A9018C2F0D@pippin.int.etrials.com> Message-ID: > It's nice to have an open source version of RML2PDF but perhaps=20 > Fabien could do a little more to promote ReportLab at=20 > www.openreport.org. TinyRML may not be intended as a full=20 > competitor to ReportLab RML but it appears to use the same=20 > (ReportLab) specification and has the potential to steal paying=20 > clients from ReortLabs' offering. >=20 =20 > Credit where it's due and a link to the ReportLab.com site for=20 > "people who want the original, professionally supported version"=20 > is probably appropriate. >=20 > An open-source version of RML was inevitable (and to me welcome)=20 > but it should still play nice with the ReportLab community and=20 > part of playing-nice is to support ReportLabs' commercial=20 > activities so that we can continue to enjoy the trickle-down=20 > fruits of that programme in the open-source tools. Thanks for this sentiment. I am actually aware of 3 other packages which offer general-purpose formatters based on our package: Zope's CMFReportTool, Spirito's Pisa, and www.openreport.org. =20 I certainly feel 'less annoyed' about open source versions than=20 about rival commercial formatters built on our libraries, but at=20 some point we will have to 'defend our position' by having clear=20 feature comparisons and explaining to our commercial customers what the (considerable) differences are. The fact is that if we can't sell enterprise-priced document servers, there will be no business case for us to spend considerable salaried time extending and maintaining the core libraries you all depend on. =20 However, there is little evidence that any of these tools has any=20 kind of critical mass behind them at the moment, so there's no point worrying. I would personally like to see anyone building 'rival' formatting languages help share some of the burden with us; if the world would like to use RML as a standard, they could contribute to open source features, share the load of properly internationalizing paragraphs and so on, or (at the very least) contribute to a formal=20 compliance test suite, which would help all of us. This could all evolve in a 'nice' way with a base standard useful to everyone, and useful extra features in commercial versions. We might even eventually be able to promote it as a standard - and one in which Python had the first implementation out of the door. I am also quite happy that some clever academics have agreed with us = that=20 "RML is a more powerful, simple and flexible alternative to XSL:FO" ;-) However, it may be premature to worry as there is no real evidence yet of a large user group or sustained resources which would destabilise what we do; if this was basically Fabien's thesis rather than a bid for=20 global domination, I can only congratulate him on a great piece of work! Best Regards, Andy Robinson > For the record, it appears that TinyRML uses OSE which is=20 > licenced under the (basically noncommercial) QPL=20 (http://ose.sourceforge.net/browse.php?group=3Dgeneral-information&entry=3D= license.htm) rather than under the ReportLab BSD licence. That makes it = seem like a non-competitor but I can't believe that cutting OSE out of = the picture would be that tough. n XXizzVr=7F (?+-=7F?+-w ei? From reportlab-users@reportlab.com Thu Jul 22 08:42:57 2004 From: reportlab-users@reportlab.com (Guillaume Constant) Date: Thu, 22 Jul 2004 09:42:57 +0200 Subject: [reportlab-users] bug? Message-ID: <000801c46fbf$81a88c40$8901a8c0@cedrat659> This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C46FD0.44EF9850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable First : it has certainly ever been noticed but "__doc__" of "Table" = module can't be read with pydoc Second and more awkard : 2 Table methods are not defined: look at tables.py: from line 688: def _drawHLines(self, (sc, sr), (ec, er), weight, color): ecp =3D self._colpositions[sc:ec+2] rp =3D self._rowpositions[sr:er+1] ... _colpositions and _rowpositions ar not defined anywhere (neither in = Table nor in parent Class) ------=_NextPart_000_0005_01C46FD0.44EF9850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
First : it has certainly ever been = noticed but=20 "__doc__" of "Table" module can't be read with pydoc
 
Second and more awkard : 2 Table = methods are not=20 defined:
look at tables.py:
    from line = 688:
        = def=20 _drawHLines(self, (sc, sr), (ec, er), weight,=20 color):
            = ecp =3D=20 self._colpositions[sc:ec+2]
       = =20     rp =3D self._rowpositions[sr:er+1]
    =    =20     ...
_colpositions and _rowpositions ar not = defined=20 anywhere (neither in Table nor in parent = Class)
------=_NextPart_000_0005_01C46FD0.44EF9850-- From reportlab-users@reportlab.com Thu Jul 22 16:55:26 2004 From: reportlab-users@reportlab.com (Tim Roberts) Date: Thu, 22 Jul 2004 08:55:26 -0700 Subject: [reportlab-users] Re: reportlab-users digest, Vol 2 #163 - 3 msgs In-Reply-To: <20040722060633.59C682500D@two.pairlist.net> References: <20040722060633.59C682500D@two.pairlist.net> Message-ID: <40FFE36E.8030703@probo.com> PLEASE, Jody, when you are replying to a digest message, PLEASE do not quote the entire digest message in your reply. This last message from you consisted of one line of new text, with a 5-line signature, and a 500-line quote of the last digest. Ironically enough, one of the message in THAT digest was ANOTHER message from you, quoting an earlier digest. Also, PLEASE make sure to cut-and-paste the subject line of the one message you are replying to. The price we pay for the convenience of the digest is that it takes more work to do a proper reply. One might also ask whether it is really necessary to post "thanks" messages to the whole list, rather than to the individual, but we'll leave that for another day. -- - Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc. On Wed, 21 Jul 2004 08:27:01 -0600,. "Jody Burgess" >To: >Date: >Subject: [reportlab-users] RE: reportlab-users digest, Vol 2 #162 - 6 msgs >Reply-To: reportlab-users@reportlab.com > >Thanks Andy. > >Jody Burgess ISP >Systems Analyst >Seward Consulting Ltd. >780.702.5103 >jody.burgess@sewardconsulting.com > > >-----Original Message----- >From: reportlab-users-admin@reportlab.com >[mailto:reportlab-users-admin@reportlab.com]On Behalf Of >reportlab-users-request@reportlab.com >Sent: Wednesday, July 21, 2004 12:08 AM >To: reportlab-users@reportlab.com >Subject: reportlab-users digest, Vol 2 #162 - 6 msgs > > >Send reportlab-users mailing list submissions to > reportlab-users@reportlab.com > >To subscribe or unsubscribe via the World Wide Web, visit > http://two.pairlist.net/mailman/listinfo/reportlab-users >or, via email, send a message with subject or body 'help' to > reportlab-users-request@reportlab.com > >You can reach the person managing the list at > reportlab-users-admin@reportlab.com > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of reportlab-users digest..." > > >Today's Topics: > ... 450 more lines of digest removed ... From reportlab-users@reportlab.com Fri Jul 23 07:48:21 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 23 Jul 2004 09:48:21 +0300 Subject: [reportlab-users] How to make smaller PDF? Message-ID: <20040723064821.GA15455@bitute.b4net.lt> Hello. I had generated PDF which contains ~1600 A4 pages. Its size is about ~100Mb. Usually, documentation from the Oracle with the same count of pages approximately takes up to 7-10Mb only. And, ironically, Oracle's PDF contains images, graphics and so on, but mine only a table grids. Well, I have to tell that I use Unicode TTF fonts support. Can anybody explain me this? Maybe there is some compression ability, but I just never use it? Or this is TTF support doing this? For example, single page PDF takes approximately from ~50 up to ~80Kb. -- æš® Win32-API is wonderful : Full of things to wonder about... From reportlab-users@reportlab.com Fri Jul 23 08:02:01 2004 From: reportlab-users@reportlab.com (Craig Ringer) Date: Fri, 23 Jul 2004 15:02:01 +0800 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <20040723064821.GA15455@bitute.b4net.lt> References: <20040723064821.GA15455@bitute.b4net.lt> Message-ID: <1090566121.7358.31.camel@albert.localnet> On Fri, 2004-07-23 at 14:48, Bogdan M. Maryniuck wrote: > Hello. > > I had generated PDF which contains ~1600 A4 pages. Its size is about ~100Mb. > Usually, documentation from the Oracle with the same count of pages > approximately takes up to 7-10Mb only. And, ironically, Oracle's PDF contains > images, graphics and so on, but mine only a table grids. Well, I have to > tell that I use Unicode TTF fonts support. If you have Adobe Acrobat 6, you might want to run its space usage report over the file and find out what's taking up all the space. It's not too detailed, but can be very helpful. PDFs I make here are ~24kb for the first page, and that includes a logo. Subsequent pages are only a few kb each. If I use any custom PostScript fonts, the size goes up massively (IIRC, about 700Kb for the first page). It appears that ReportLab does not subset the embedded font, and an entire PostScript font is not small so this would explain it. If you're using a lot of non-standard fonts, they add up in a hurry. -- Craig Ringer From reportlab-users@reportlab.com Fri Jul 23 08:33:09 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 23 Jul 2004 08:33:09 +0100 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <20040723064821.GA15455@bitute.b4net.lt> Message-ID: This sounds strange. Is compression on? i.e. if you look in the file, are any words in English or numbers from the source document, or is each page a stream of unreadable 'goop' with something about 'filters' and 'flate'? If for some reason zlib is not importable on your system, compression will turn itself off. =20 If you could cut out and upload one representative page somewhere we could comment on this; it may be that you really do have a large amount of information. Each cell could be doing line dawing=20 instructions, setFont calls and other things; but 50kb of compressed output for highy repetitive stuff suggests 500kb uncompressed, which I find hard to believe. thanks, Andy > -----Original Message----- > From: reportlab-users-admin@reportlab.com > [mailto:reportlab-users-admin@reportlab.com]On Behalf Of Bogdan M. > Maryniuck > Sent: 23 July 2004 07:48 > To: reportlab-users@reportlab.com > Subject: [reportlab-users] How to make smaller PDF? >=20 >=20 > Hello. >=20 > I had generated PDF which contains ~1600 A4 pages. Its size is=20 > about ~100Mb. > Usually, documentation from the Oracle with the same count of pages > approximately takes up to 7-10Mb only. And, ironically, Oracle's=20 > PDF contains > images, graphics and so on, but mine only a table grids. Well, I have = to > tell that I use Unicode TTF fonts support. >=20 > Can anybody explain me this? Maybe there is some compression=20 > ability, but I > just never use it? Or this is TTF support doing this? >=20 > For example, single page PDF takes approximately from ~50 up to ~80Kb. >=20 > --=20 > =E6=9A=AE >=20 > Win32-API is wonderful : Full of things to wonder about... > _______________________________________________ > reportlab-users mailing list > reportlab-users@reportlab.com > http://two.pairlist.net/mailman/listinfo/reportlab-users >=20 From reportlab-users@reportlab.com Fri Jul 23 08:33:09 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 23 Jul 2004 08:33:09 +0100 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <1090566121.7358.31.camel@albert.localnet> Message-ID: > PDFs I make here are ~24kb for the first page, and that includes a logo. > Subsequent pages are only a few kb each. If I use any custom PostScript > fonts, the size goes up massively (IIRC, about 700Kb for the first > page). It appears that ReportLab does not subset the embedded font, and > an entire PostScript font is not small so this would explain it. Yes, but we only include a font once per file. 50kb for each of 4 fonts is a big overhead on a 2-page invoice but not a problem for a 1000-page manual. - Andy From reportlab-users@reportlab.com Fri Jul 23 08:34:48 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 23 Jul 2004 10:34:48 +0300 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <1090566121.7358.31.camel@albert.localnet> References: <20040723064821.GA15455@bitute.b4net.lt> <1090566121.7358.31.camel@albert.localnet> Message-ID: <20040723073448.GA27060@bitute.b4net.lt> On Fri, Jul 23, 2004 at 03:02:01PM +0800, Craig Ringer wrote: > If you have Adobe Acrobat 6, you might want to run its space usage > report over the file and find out what's taking up all the space. It's > not too detailed, but can be very helpful. No Acrobat 6 for Linux yet, but my friend near me with Windows2000 has it. Though we didn't find such "space usage report" tool. How to run it? ;-) Is it some plug-in or so? -- æš® int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? From reportlab-users@reportlab.com Fri Jul 23 08:53:02 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Fri, 23 Jul 2004 10:53:02 +0300 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: References: <20040723064821.GA15455@bitute.b4net.lt> Message-ID: <20040723075302.GB27060@bitute.b4net.lt> On Fri, Jul 23, 2004 at 08:33:09AM +0100, Andy Robinson wrote: > If for some reason zlib is not importable on your system, > compression will turn itself off. Yes, I know this. I even had walked over RL source and everywhere set "9": zlib.compress(text, zlib.Z_BEST_COMPRESSION) Files gets a bit smaller... But not that so much. When I turn off TTF, than PDF gets ~24 Kb size, but when TTF support is turned on, it gets ~90 Kb size. Any ideas? -- æš® This message has been ROT-13 encrypted twice for higher security. From reportlab-users@reportlab.com Fri Jul 23 10:34:13 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Fri, 23 Jul 2004 10:34:13 +0100 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: References: Message-ID: <4100DB95.1020509@chamonix.reportlab.co.uk> Andy Robinson wrote: >>PDFs I make here are ~24kb for the first page, and that includes a logo. >>Subsequent pages are only a few kb each. If I use any custom PostScript >>fonts, the size goes up massively (IIRC, about 700Kb for the first >>page). It appears that ReportLab does not subset the embedded font, and >>an entire PostScript font is not small so this would explain it. > > > Yes, but we only include a font once per file. 50kb for each of 4 fonts > is a big overhead on a 2-page invoice but not a problem for a 1000-page > manual. > > - Andy .... as a confirmation I changed one of the test_pdfbase_ttfonts tests to allow generation of 1 or 3 page document with the same characters used. The font descriptors are created just once as needed and seem to be reused. The 1 page form is 107k, the 3 page document is 130k. As an additional aside I note that ttf fonts are delayed objects and are implemented once only at the end of the pdf generation. -- Robin Becker From reportlab-users@reportlab.com Fri Jul 23 11:31:59 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Fri, 23 Jul 2004 11:31:59 +0100 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <20040723075302.GB27060@bitute.b4net.lt> Message-ID: > Yes, I know this. I even had walked over RL source and everywhere set = "9": > Files gets a bit smaller... But not that so much. When I turn off=20 > TTF, than > PDF gets ~24 Kb size, but when TTF support is turned on, it gets=20 > ~90 Kb size. Roughly what does a page look like? How many table cells on average? Can you make a small document and put it somewhere for me and my colleagues to look at? - Andy From reportlab-users@reportlab.com Fri Jul 23 16:40:40 2004 From: reportlab-users@reportlab.com (Craig Ringer) Date: Fri, 23 Jul 2004 23:40:40 +0800 Subject: [reportlab-users] How to make smaller PDF? In-Reply-To: <20040723073448.GA27060@bitute.b4net.lt> References: <20040723064821.GA15455@bitute.b4net.lt> <1090566121.7358.31.camel@albert.localnet> <20040723073448.GA27060@bitute.b4net.lt> Message-ID: <1090597240.17546.2.camel@rasputin.localnet> On Fri, 2004-07-23 at 15:34, Bogdan M. Maryniuck wrote: > On Fri, Jul 23, 2004 at 03:02:01PM +0800, Craig Ringer wrote: > > If you have Adobe Acrobat 6, you might want to run its space usage > > report over the file and find out what's taking up all the space. It's > > not too detailed, but can be very helpful. > > No Acrobat 6 for Linux yet, but my friend near me with Windows2000 has it. > Though we didn't find such "space usage report" tool. How to run it? ;-) > Is it some plug-in or so? I guess it could be - I have PitStop installed, and have never used Acrobat 6 without it. Nonetheless, I am under the impression that if it's a plug-in it's one that ships with Acrobat. Advanced -> PDF Optimise and in the resulting dialog, click on the "Audit Space Usage" button. BTW, I was able to crash the Acrobat 6 Demo I was testing earlier by trying to preflight the ReportLab font sample documents. I'll try the final version to see if it still happens and let you folks know. -- Craig Ringer From reportlab-users@reportlab.com Fri Jul 23 17:29:36 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 23 Jul 2004 18:29:36 +0200 Subject: [reportlab-users] font problem Message-ID: <20040723162936.GA12181@mail.librelogiciel.com> Hi there, I had to dynamize a PDF ordering form for a client, and reuse the fonts he provided to me for this. I've got problem with accented characters (french) : some letters are too much on the right, so they are "in" the next letter, and some are too much on the left, so they are "in" the previous letter non accented characters are ok font is VectoraLH-Light in .PFM + .PFB files which I converted to .AFM IIRC with pf2afm any idea of what could be the problem ? thanks in advance Jerome Alet From reportlab-users@reportlab.com Fri Jul 23 17:37:50 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 23 Jul 2004 18:37:50 +0200 Subject: [reportlab-users] font problem In-Reply-To: <20040723162936.GA12181@mail.librelogiciel.com> References: <20040723162936.GA12181@mail.librelogiciel.com> Message-ID: <20040723163750.GB12181@mail.librelogiciel.com> On Fri, Jul 23, 2004 at 06:29:36PM +0200, Jerome Alet wrote: > Hi there, > > I had to dynamize a PDF ordering form for a client, and reuse > the fonts he provided to me for this. > > I've got problem with accented characters (french) : some letters > are too much on the right, so they are "in" the next letter, and > some are too much on the left, so they are "in" the previous letter > > non accented characters are ok > > font is VectoraLH-Light in .PFM + .PFB files which > I converted to .AFM IIRC with pf2afm > > any idea of what could be the problem ? I forgot : actual solution for letters to much on the right, is to put two spaces just after and it's ok, for example : for : jerome I have to use : je rome and then it's displayed correctly in the PDF as "jerome" this sucks as a solution, unfortunately bye Jerome Alet From reportlab-users@reportlab.com Fri Jul 23 22:20:12 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Fri, 23 Jul 2004 22:20:12 +0100 Subject: [reportlab-users] font problem In-Reply-To: <20040723163750.GB12181@mail.librelogiciel.com> References: <20040723162936.GA12181@mail.librelogiciel.com> <20040723163750.GB12181@mail.librelogiciel.com> Message-ID: <4101810C.4080402@jessikat.fsnet.co.uk> Jerome Alet wrote: > On Fri, Jul 23, 2004 at 06:29:36PM +0200, Jerome Alet wrote: > >>Hi there, >> >>I had to dynamize a PDF ordering form for a client, and reuse >>the fonts he provided to me for this. >> >>I've got problem with accented characters (french) : some letters >>are too much on the right, so they are "in" the next letter, and >>some are too much on the left, so they are "in" the previous letter >> >>non accented characters are ok >> >>font is VectoraLH-Light in .PFM + .PFB files which >>I converted to .AFM IIRC with pf2afm >> >>any idea of what could be the problem ? > > > I forgot : > > actual solution for letters to much on the right, is to > put two spaces just after and it's ok, for example : > > for : > jerome > > I have to use : > > je rome > > and then it's displayed correctly in the PDF as "jerome" > > this sucks as a solution, unfortunately > > bye > > Jerome Alet .... does the error chamge with viewer magnification -- Robin Becker From reportlab-users@reportlab.com Fri Jul 23 22:32:32 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Fri, 23 Jul 2004 23:32:32 +0200 Subject: [reportlab-users] font problem In-Reply-To: <4101810C.4080402@jessikat.fsnet.co.uk> References: <20040723162936.GA12181@mail.librelogiciel.com> <20040723163750.GB12181@mail.librelogiciel.com> <4101810C.4080402@jessikat.fsnet.co.uk> Message-ID: <20040723213232.GB14879@mail.librelogiciel.com> On Fri, Jul 23, 2004 at 10:20:12PM +0100, Robin Becker wrote: > Jerome Alet wrote: > >On Fri, Jul 23, 2004 at 06:29:36PM +0200, Jerome Alet wrote: > >... > >I forgot : > > > >actual solution for letters to much on the right, is to > >put two spaces just after and it's ok, for example : > > > >for : > > jerome > > > >I have to use : > > > > je rome > > > >and then it's displayed correctly in the PDF as "jerome" (in my firstname there's an accent on the first "e") > >this sucks as a solution, unfortunately > .... > does the error chamge with viewer magnification no, same problem. bye Jerome Alet From reportlab-users@reportlab.com Sat Jul 24 00:11:56 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Sat, 24 Jul 2004 00:11:56 +0100 Subject: [reportlab-users] font problem In-Reply-To: <20040723162936.GA12181@mail.librelogiciel.com> Message-ID: > font is VectoraLH-Light in .PFM + .PFB files which > I converted to .AFM IIRC with pf2afm AFM files are somewhat readable. My guess is that the bounding boxes are wrong. You could try making a document with each glyph drawn huge (100pt) and a rectangle around it based on the width given by stringWidth. This would tell you if the width declared in the AFM file matches the width it should be, i.e. if it's our bug or the font. - Andy From reportlab-users@reportlab.com Mon Jul 26 15:31:16 2004 From: reportlab-users@reportlab.com (Jody Burgess) Date: Mon, 26 Jul 2004 08:31:16 -0600 Subject: [reportlab-users] Canvas Size Message-ID: Good Morning; I have another newbie question: 1) is there a way to set canvas &/or page properties based on the size and resolution of an image that is being imported? For example; if I have several TIF images that were scanned as 8.5x11" and some that were scanned as 8.5x14" and some that were scanned as 11x17" is there a way to set the size and format (landscape of portrait) of each page prior to it being created in the target PDF file? Thanks Jody Burgess ISP Systems Analyst Seward Consulting Ltd. 780.702.5103 jody.burgess@sewardconsulting.com From reportlab-users@reportlab.com Mon Jul 26 16:52:28 2004 From: reportlab-users@reportlab.com (Ian) Date: Mon, 26 Jul 2004 16:52:28 +0100 Subject: [reportlab-users] Spam Problem on list? (Not a Reportlab Question) Message-ID: <004901c47328$8dc328c0$0500a8c0@ALONSO> I set up a dedicated email address for this mailing list, as I do with all mailing lists, to monitor the source of spam. I periodically get spam mail messages (mostly penis enlargement!), about once every month or so on my reportlab-user@agon.com list. Is this mailing list mirrored on the web somewhere that a crawler could have got it? Has anyone else noticed this? Does the list have a security problem? Otherwise I guess my mail has been scanned and mined for addresses. Ian. . From reportlab-users@reportlab.com Mon Jul 26 19:39:42 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Mon, 26 Jul 2004 19:39:42 +0100 Subject: [reportlab-users] Spam Problem on list? (Not a Reportlab Question) In-Reply-To: <004901c47328$8dc328c0$0500a8c0@ALONSO> References: <004901c47328$8dc328c0$0500a8c0@ALONSO> Message-ID: <41054FEE.7000802@chamonix.reportlab.co.uk> Ian wrote: > I set up a dedicated email address for this mailing list, as I do with all > mailing lists, to monitor the source of spam. > > I periodically get spam mail messages (mostly penis enlargement!), about > once every month or so on my reportlab-user@agon.com list. > > Is this mailing list mirrored on the web somewhere that a crawler could have > got it? Has anyone else noticed this? Does the list have a security problem? > > Otherwise I guess my mail has been scanned and mined for addresses. > > Ian. > . .... so far as I know there're no mirrors anyplace else; however, all that's required is for one of the legit users to have a trojan and then stuff gets sent. I'm not sure what the spam setting on the list is, but it's supposed to be subscribers only for starters. -- Robin Becker From reportlab-users@reportlab.com Mon Jul 26 22:08:37 2004 From: reportlab-users@reportlab.com (John Pywtorak) Date: Mon, 26 Jul 2004 14:08:37 -0700 Subject: [reportlab-users] Canvas Size In-Reply-To: References: Message-ID: <200407261408.37293.jpywtora@calpoly.edu> On Monday 26 July 2004 07:31 am, Jody Burgess wrote: > Good Morning; > I have another newbie question: > 1) is there a way to set canvas &/or page properties based on the size and > resolution of an image that is being imported? > > For example; if I have several TIF images that were scanned as 8.5x11" and > some that were scanned as 8.5x14" and some that were scanned as 11x17" is > there a way to set the size and format (landscape of portrait) of each page > prior to it being created in the target PDF file? > I would think so. If PIL exposes those attributes then you can set your sizes in the constructor to the DocTemplate if using platypus which should translate to pdfgen easily. I set the size albeit, not dynamic in the SimpleDocTemplate constructor. Johnny P -- Windows Start Here Frustrating Hanging Crashing Blue Screen of Death Reboot From reportlab-users@reportlab.com Tue Jul 27 00:50:02 2004 From: reportlab-users@reportlab.com (John Pywtorak) Date: Mon, 26 Jul 2004 16:50:02 -0700 Subject: [reportlab-users] bug? In-Reply-To: <000801c46fbf$81a88c40$8901a8c0@cedrat659> References: <000801c46fbf$81a88c40$8901a8c0@cedrat659> Message-ID: <200407261650.02984.jpywtora@calpoly.edu> On Thursday 22 July 2004 12:42 am, Guillaume Constant wrote: > First : it has certainly ever been noticed but "__doc__" of "Table" module > can't be read with pydoc > > Second and more awkard : 2 Table methods are not defined: > look at tables.py: > from line 688: > def _drawHLines(self, (sc, sr), (ec, er), weight, color): > ecp = self._colpositions[sc:ec+2] > rp = self._rowpositions[sr:er+1] > ... > _colpositions and _rowpositions ar not defined anywhere (neither in Table > nor in parent Class) This line below seems like it defines them which they are not methods, rather lists, or arrays. self._colpositions = [0] #index -1 is right side boundary; we skip when processing cells self._rowpositions = [height] # index 0 is actually topline; we skip when processing cells I believe both are defined in _calc_width and _calc_height respectively. Johnny P -- Windows Start Here Frustrating Hanging Crashing Blue Screen of Death Reboot From reportlab-users@reportlab.com Tue Jul 27 08:30:43 2004 From: reportlab-users@reportlab.com (Henning von Bargen) Date: Tue, 27 Jul 2004 09:30:43 +0200 Subject: [reportlab-users] RE: Spam Problem on list? Message-ID: <71674BEFF0E2D41196F500600811AA6B5BB030@TUP-BO1-EXC> The list is archived on two.pairlist.net. An address grabber just needs to scan the archive files for e-mail addresses. This is not a RL specific problem, it is the case for many other mailing lists, too. I get about 80 spam mails per day... Henning From reportlab-users@reportlab.com Tue Jul 27 12:02:12 2004 From: reportlab-users@reportlab.com (Andy Robinson) Date: Tue, 27 Jul 2004 12:02:12 +0100 Subject: [reportlab-users] RE: Spam Problem on list? In-Reply-To: <71674BEFF0E2D41196F500600811AA6B5BB030@TUP-BO1-EXC> Message-ID: > I get about 80 spam mails per day... What, from our list, or generally? I used to get 500 - beat that you wimps ;-) - but think I have cracked it. If anyone else is suffering, they may want to check out www.mailblocks.com. Anyone emailing me directly for the first time has to go through a challenge-response process and prove they are a real human; this stopped almost everything instantly. However, the system filters out (a) people I don't know in big companies whose corporate filter thinks my challenge message is spam, and (b) stupid people who can't follow simple instructions. I found that (b) at least was an unexpected bonus of the system :-) - Andy From reportlab-users@reportlab.com Tue Jul 27 13:57:36 2004 From: reportlab-users@reportlab.com (Marc Stober) Date: Tue, 27 Jul 2004 08:57:36 -0400 Subject: [reportlab-users] RE: spam vulnerability Message-ID: <2546C8F5D3D2D411857F00508BDCA4E804994116@dalbar_mail.dalbar.com> The messages are all posted on the web. If you include your address in the body of the message, I expect it would get picked up, e.g.: http://two.pairlist.net/pipermail/reportlab-users/2004-July/003240.html Marc From reportlab-users@reportlab.com Wed Jul 28 08:31:58 2004 From: reportlab-users@reportlab.com (Ulrich Weber) Date: Wed, 28 Jul 2004 09:31:58 +0200 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry Message-ID: Hi there, your discussion on having an open source version of RML resp. rml2pdf or not does not help me really. Actually, I am indeed using the open source version, i. e. tiny RML2PDF and the ReportLab open source PDF library. In the meantime I did some Python debugging and found, that there is apparently a bug in the open source PDF library: In reportlab/pdfbase/pdfdoc.py line 768 and those following read: def format(self, document): strings = map(str, self.strings) # final conversion, in case of lazy objects return string.join(self.strings, "") The variable "strings" is populated (for good reasons), but obviously never used. If the last line shown above is changed to return string.join(strings, "") everything works fine. Best Regards, Ulrich Weber From reportlab-users@reportlab.com Wed Jul 28 08:52:26 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Wed, 28 Jul 2004 08:52:26 +0100 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: References: Message-ID: <41075B3A.2040506@jessikat.fsnet.co.uk> Ulrich Weber wrote: > > > Hi there, > > your discussion on having an open source version of RML resp. rml2pdf or > not does not help me really. > > Actually, I am indeed using the open source version, i. e. tiny RML2PDF and > the ReportLab open source PDF library. > > In the meantime I did some Python debugging and found, that there is > apparently a bug in the open source PDF library: > > In reportlab/pdfbase/pdfdoc.py line 768 and those following read: > > def format(self, document): > strings = map(str, self.strings) # final conversion, in case of > lazy objects > return string.join(self.strings, "") > > The variable "strings" is populated (for good reasons), but obviously never > used. If the last line shown above is changed to > > return string.join(strings, "") > > everything works fine. > > > Best Regards, > > Ulrich Weber ...... this actually looks like a bug which is exposed in the tinyrml stuff. Normally self.strings should be all type(""), but I suppose it's possible that some non string objects can get in there (at least in tinyrml). -- Robin Becker From reportlab-users@reportlab.com Wed Jul 28 09:00:41 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Wed, 28 Jul 2004 11:00:41 +0300 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <41075B3A.2040506@jessikat.fsnet.co.uk> References: <41075B3A.2040506@jessikat.fsnet.co.uk> Message-ID: <20040728080041.GB3890@bitute.b4net.lt> On Wed, Jul 28, 2004 at 08:52:26AM +0100, Robin Becker wrote: > > return string.join(self.strings, "") BTW, Robin, why to use old 1.5 version syntax: string.join(self.strings, '') ...instead of: self.strings.join('') ...to make more clear it for folks who thinks your code is buggy? :-) -- æš® "[In 'Doctor' mode], I spent a good ten minutes telling Emacs what I thought of it. (The response was, 'Perhaps you could try to be less abusive.')" (By Matt Welsh) From reportlab-users@reportlab.com Wed Jul 28 09:51:46 2004 From: reportlab-users@reportlab.com (Robin Becker) Date: Wed, 28 Jul 2004 09:51:46 +0100 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <20040728080041.GB3890@bitute.b4net.lt> References: <41075B3A.2040506@jessikat.fsnet.co.uk> <20040728080041.GB3890@bitute.b4net.lt> Message-ID: <41076922.5060903@chamonix.reportlab.co.uk> Bogdan M. Maryniuck wrote: > On Wed, Jul 28, 2004 at 08:52:26AM +0100, Robin Becker wrote: > >>> return string.join(self.strings, "") > > > BTW, Robin, why to use old 1.5 version syntax: > > string.join(self.strings, '') > > ...instead of: > > self.strings.join('') > > ...to make more clear it for folks who thinks your code is buggy? :-) > We're slowly going through eliminating various old style stuff. A lot will get ironed out in the unicode friendly changes. At present we're still committed to maintaining 2.1 compatibilty which means local scopes are out. Yesterday I stopped building the 1.52/2.0 pyds. -- Robin Becker From reportlab-users@reportlab.com Wed Jul 28 09:54:47 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Wed, 28 Jul 2004 11:54:47 +0300 Subject: [reportlab-users] "setfont" tag in RML seems not to work propelry In-Reply-To: <41076922.5060903@chamonix.reportlab.co.uk> References: <41075B3A.2040506@jessikat.fsnet.co.uk> <20040728080041.GB3890@bitute.b4net.lt> <41076922.5060903@chamonix.reportlab.co.uk> Message-ID: <20040728085447.GB25090@bitute.b4net.lt> On Wed, Jul 28, 2004 at 09:51:46AM +0100, Robin Becker wrote: > Yesterday I stopped building the 1.52/2.0 pyds. :-* :-) -- æš® But perhaps ISO's central secretariat follows just the common industry practice pioneered by Microsoft: "We will get it right in the third release." -- Markus Kuhn on ISO 10646 PDF CD-ROM edition From reportlab-users@reportlab.com Thu Jul 29 06:02:31 2004 From: reportlab-users@reportlab.com (knmurthy) Date: Thu, 29 Jul 2004 10:32:31 +0530 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> Message-ID: <410884E7.1010300@zeomega.com> This is a multi-part message in MIME format. --------------040008060608020504040206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I am getting content from database as html string. I want to genrate pdf by writing this html content. I hope there will be way to write direct html whithout using any Pargraph styles methods. Example: html content: "

fsdfsdfsdfsd

  • fsdfds
  1. fds

fdsfds

" Pdf output: fsdfsdfsdfsd * fsdfds 1. fds fdsfds Can any one poient me any method or example. Thanks for any help. Thanks, Murthy --------------040008060608020504040206 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,
I am getting content from database as html string. I want to genrate pdf by writing this html content.
I hope there will be way to write direct html whithout using any Pargraph styles methods.

Example:
html content: "<p><strong>fsdfsdfsdfsd</strong></p><ul><li>fsdfds</li></ul><ol><li>fds</li></ol><p><font color=#336633>fdsfds</font></p>"

Pdf output:

fsdfsdfsdfsd

  • fsdfds
  1. fds

fdsfds


Can any one poient me any method or example.

Thanks for any help.

Thanks,
Murthy
--------------040008060608020504040206-- From reportlab-users@reportlab.com Thu Jul 29 07:48:58 2004 From: reportlab-users@reportlab.com (=?ISO-8859-1?Q?Aitzol_Naberan_Burga=F1a?=) Date: Thu, 29 Jul 2004 08:48:58 +0200 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <410884E7.1010300@zeomega.com> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> Message-ID: <41089DDA.9040905@codesyntax.com> Hi, Try XPreformatted object Bye knmurthy(e)k dio: > ****Hello, > I am getting content from database as html string. I want to genrate > pdf by writing this html content. > I hope there will be way to write direct html whithout using any > Pargraph styles methods. > > _Example:_ > *html content:* > "

fsdfsdfsdfsd

  • fsdfds
  1. fds

color=#336633>fdsfds

" > > *Pdf output:* > > *fsdfsdfsdfsd* > > * fsdfds > > 1. fds > > fdsfds > > > Can any one poient me any method or example. > > Thanks for any help. > > Thanks, > Murthy -- Aitzol Naberan Burgaña CodeSyntax anaberan@codesyntax.com www.codesyntax.com Tel: 943 82 17 80 From reportlab-users@reportlab.com Thu Jul 29 07:49:12 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Thu, 29 Jul 2004 09:49:12 +0300 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <410884E7.1010300@zeomega.com> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> Message-ID: <20040729064912.GC27121@bitute.b4net.lt> On Thu, Jul 29, 2004 at 10:32:31AM +0530, knmurthy wrote: > Can any one poient me any method or example. http://www.openreport.org -- æš® Favorite MAC error message: "Not enough memory to eject disk!" From reportlab-users@reportlab.com Thu Jul 29 11:47:25 2004 From: reportlab-users@reportlab.com (Dirk Holtwick) Date: Thu, 29 Jul 2004 12:47:25 +0200 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <410884E7.1010300@zeomega.com> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> Message-ID: <4108D5BD.2090509@spirito.de> This is a multi-part message in MIME format. --------------060103090402090803070001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit http://pisa.by.spirito.de/ Try the online demo, paste your code and you get something like this: knmurthy wrote: > ****Hello, > I am getting content from database as html string. I want to genrate > pdf by writing this html content. > I hope there will be way to write direct html whithout using any > Pargraph styles methods. > > _Example:_ > *html content:* > "

fsdfsdfsdfsd

  • fsdfds
  1. fds

color=#336633>fdsfds

" > > *Pdf output:* > > *fsdfsdfsdfsd* > > * fsdfds > > 1. fds > > fdsfds > > > Can any one poient me any method or example. > > Thanks for any help. > > Thanks, > Murthy -- Mit freundlichen Grüßen Dirk Holtwick =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= spirito GmbH Dirk Holtwick (CEO) Grünstraße 6 D-47051 Duisburg fon: +49 203 3187778 mbx: holtwick@spirito.de web: http://www.spirito.de GnuPG fingerprint (http://www.gnupg.org) A5A1 54E1 C82E 02AD 4804 0547 66F4 3FB0 C790 EBAB --------------060103090402090803070001 Content-Type: multipart/related; boundary="------------000406090809090708080704" --------------000406090809090708080704 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit http://pisa.by.spirito.de/

Try the online demo, paste your code and you get something like this:




knmurthy wrote:
Hello,
I am getting content from database as html string. I want to genrate pdf by writing this html content.
I hope there will be way to write direct html whithout using any Pargraph styles methods.

Example:
html content: "<p><strong>fsdfsdfsdfsd</strong></p><ul><li>fsdfds</li></ul><ol><li>fds</li></ol><p><font color=#336633>fdsfds</font></p>"

Pdf output:

fsdfsdfsdfsd

  • fsdfds
  1. fds

fdsfds


Can any one poient me any method or example.

Thanks for any help.

Thanks,
Murthy

-- 

Mit freundlichen Grüßen

Dirk Holtwick

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

spirito GmbH
Dirk Holtwick (CEO)
Grünstraße 6
D-47051 Duisburg

fon: +49 203 3187778
mbx: holtwick@spirito.de
web: http://www.spirito.de

GnuPG fingerprint (http://www.gnupg.org)
A5A1 54E1 C82E 02AD 4804  0547 66F4 3FB0 C790 EBAB

--------------000406090809090708080704 Content-Type: image/jpeg; name="moz-screenshot.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="moz-screenshot.jpg" /9j/4AAQSkZJRgABAQIAJQAlAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwh MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj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/whbSz6hBrL6ZfW1zdq5u5Fgs EhEhyXQlP3+A4xhjuBUbuQa5zU37Tp4q/wCv4/8ApHb15vF/yTR/+wUf/RP+f88D0i06eKv+ v4/+kdvXm8X/ACTR/wDsFH/0T/n/ADwFLb7hx/zPpiiiiukxCiiigApG3bTsxuxxnpS0hBKk AkH1HagDmdGkJttMneKF9RukdROc52Z3MW9ecce/bmmWGonSrCdp0jgjbULhZJgC0UPJIJxj AOOpwBmtEeHY0sbK3ivrtJbJi0NwCm8ZzkEbdpBBxjFTW+jm1RlivrjLyySPvCEMXOSCNv8A n6cVNmSkzPupLi81vSLadbd7e4s55JYc70Yjyh1743sAfc1WmmF0/he4gjiWza8/0fBJYJ5E u3k+oAPtx1rXttAtrSbT5IJZlFjA8ESfLtKttzn5evyDpioYPDUNu9qEvbr7PaXBnt4CU2x5 Vl2g7clfnOMniizFZk2nas19fS25EcbxBvMgbKyx4bCnB+8rDJyOPrWrWfFpSLewXcs8k8sC PHEzhcgMRnJAyeg/+uea0KaKQUUUUxhRRRQAUUUUAFFFFAHlvgpi3hsMxJY3t4SSeSftMtXb Tw3oVhcpc2ei6dbXCZ2Sw2qIy5GDggZHBIoorBdTRlS06eKv+v4/+kdvXm8P/JMmPc6U3/oo 0UVMtvuKj/mfTFFFFdJiFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf//Z --------------000406090809090708080704-- --------------060103090402090803070001-- From reportlab-users@reportlab.com Thu Jul 29 11:56:11 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Thu, 29 Jul 2004 13:56:11 +0300 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <4108D5BD.2090509@spirito.de> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> <4108D5BD.2090509@spirito.de> Message-ID: <20040729105611.GA18186@bitute.b4net.lt> On Thu, Jul 29, 2004 at 12:47:25PM +0200, Dirk Holtwick wrote: > http://pisa.by.spirito.de/ > > Try the online demo, paste your code and you get something like this: BTW, this could be a good idea for Spirito AG to maintain web-service like this for some fee, e.g. xx eurocents per page. -- æš® The UNIX philosophy basically involves giving you enough rope to hang yourself. And then a couple of feet more, just to be sure. From reportlab-users@reportlab.com Thu Jul 29 12:48:36 2004 From: reportlab-users@reportlab.com (Jerome Alet) Date: Thu, 29 Jul 2004 13:48:36 +0200 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <20040729105611.GA18186@bitute.b4net.lt> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> <4108D5BD.2090509@spirito.de> <20040729105611.GA18186@bitute.b4net.lt> Message-ID: <20040729114836.GA16674@mail.librelogiciel.com> On Thu, Jul 29, 2004 at 01:56:11PM +0300, Bogdan M. Maryniuck wrote: > On Thu, Jul 29, 2004 at 12:47:25PM +0200, Dirk Holtwick wrote: > > http://pisa.by.spirito.de/ > > > > Try the online demo, paste your code and you get something like this: > > BTW, this could be a good idea for Spirito AG to maintain web-service > like this for some fee, e.g. xx eurocents per page. > there is a problem with micropayments... Did you give a look at : http://easysw.com/htmldoc/pdf-o-matic.php bye Jerome From reportlab-users@reportlab.com Thu Jul 29 13:46:48 2004 From: reportlab-users@reportlab.com (knmurthy) Date: Thu, 29 Jul 2004 18:16:48 +0530 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <20040729114836.GA16674@mail.librelogiciel.com> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> <4108D5BD.2090509@spirito.de> <20040729105611.GA18186@bitute.b4net.lt> <20040729114836.GA16674@mail.librelogiciel.com> Message-ID: <4108F1B8.9070506@zeomega.com> This is a multi-part message in MIME format. --------------040108010302060202020708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I am already using reportlab product for many other reasons. I used to generate pdfs using paragraph styles. Now i am looking option to write direct html content using one of the reportlabs methods. I think XPreformatted object work out for me. any other objects help me a lot. Jerome: I used htmldoc for production environment, but i observed htmldoc is high CPU usage sometimes it's goes to 99%. so i started using reportlab. any suggestions on this will be appreciated. Thanks, Murthy Jerome Alet wrote: >On Thu, Jul 29, 2004 at 01:56:11PM +0300, Bogdan M. Maryniuck wrote: > > >>On Thu, Jul 29, 2004 at 12:47:25PM +0200, Dirk Holtwick wrote: >> >> >>>http://pisa.by.spirito.de/ >>> >>>Try the online demo, paste your code and you get something like this: >>> >>> >>BTW, this could be a good idea for Spirito AG to maintain web-service >>like this for some fee, e.g. xx eurocents per page. >> >> >> > >there is a problem with micropayments... > >Did you give a look at : > >http://easysw.com/htmldoc/pdf-o-matic.php > >bye > >Jerome >_______________________________________________ >reportlab-users mailing list >reportlab-users@reportlab.com >http://two.pairlist.net/mailman/listinfo/reportlab-users > > --------------040108010302060202020708 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,
I am already using reportlab product for many other reasons.
I used to generate pdfs using paragraph styles.
Now i am looking option to write direct html content using one of the reportlabs methods.
I think XPreformatted object work out for me.
any other objects help me a lot.

Jerome:
   I used htmldoc for production environment, but i observed htmldoc is high CPU usage sometimes it's goes to 99%. so i started using reportlab.
   any suggestions on this will be appreciated.

Thanks,
Murthy

Jerome Alet wrote:
On Thu, Jul 29, 2004 at 01:56:11PM +0300, Bogdan M. Maryniuck wrote:
  
On Thu, Jul 29, 2004 at 12:47:25PM +0200, Dirk Holtwick wrote:
    
http://pisa.by.spirito.de/

Try the online demo, paste your code and you get something like this:
      
BTW, this could be a good idea for Spirito AG to maintain web-service
like this for some fee, e.g. xx eurocents per page.

    

there is a problem with micropayments...

Did you give a look at :

http://easysw.com/htmldoc/pdf-o-matic.php

bye

Jerome
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
  
--------------040108010302060202020708-- From reportlab-users@reportlab.com Thu Jul 29 19:04:08 2004 From: reportlab-users@reportlab.com (Bogdan M. Maryniuck) Date: Thu, 29 Jul 2004 21:04:08 +0300 Subject: [reportlab-users] can i genrate pdf with html content In-Reply-To: <20040729114836.GA16674@mail.librelogiciel.com> References: <1A50044A-D7E4-11D8-AC65-000D93C1802C@darwin.in-berlin.de> <410884E7.1010300@zeomega.com> <4108D5BD.2090509@spirito.de> <20040729105611.GA18186@bitute.b4net.lt> <20040729114836.GA16674@mail.librelogiciel.com> Message-ID: <20040729180408.GA13169@bitute.b4net.lt> On Thu, Jul 29, 2004 at 01:48:36PM +0200, Jerome Alet wrote: > Did you give a look at : > http://easysw.com/htmldoc/pdf-o-matic.php This service can be used to frighten small children. -- æš® Those who can't write, write manuals.