I have a site that users use to build quotes. Once they get them the way they like them they are going to need to print them. The browser print button is not a good solution for many reasons, we need a header and footer on pages, pagination etc. So the the question once again is: Is anyone printing from Zope. i.e. sending html to a html to pdf converter, or some other solution? Note: The ZPdfDocument doesnt convert the complete html page. Dan
Currently, I carefully construct a page to print using DTML and HTML with heavy reliance on tables using absolute widths and such to place elements on page. (Thought about using CSS but haven't had time to get up to speed on it.) Am in the process of coverting to generating PDFs using open source python tool from www.reportlab.com __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __________________________________________________________________ ----- Original Message ----- From: Daniel G. Rusch <drusch@globalcrossing.com> To: <zope@zope.org> Sent: Wednesday, April 05, 2000 2:35 PM Subject: [Zope] Printing, let's try this again I have a site that users use to build quotes. Once they get them the way they like them they are going to need to print them. The browser print button is not a good solution for many reasons, we need a header and footer on pages, pagination etc. So the the question once again is: Is anyone printing from Zope. i.e. sending html to a html to pdf converter, or some other solution? Note: The ZPdfDocument doesnt convert the complete html page. Dan _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 3:16 pm -0500 5/4/00, Jim Sanford wrote:
Currently, I carefully construct a page to print using DTML and HTML with heavy reliance on tables using absolute widths and such to place elements on page. (Thought about using CSS but haven't had time to get up to speed on it.)
Am in the process of coverting to generating PDFs using open source python tool from www.reportlab.com
Jim, This would be a very useful tool. The tools from www.reportlab.com are *very* neat (worked fine out of the box on Solaris and my Mac). tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
Tone, Take a look at www.easysw.com/htmldoc. Takes HTML and turns it into PDF. Simple no f'in about. Also you might want to take a look at html2ps and ps2pdf which uses GhostScript to make PDF. I've got a 'working' version of my XML to PDF which goes through XSL/htmldoc to do the conversion. HTH Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Tony McDonald" <tony.mcdonald@ncl.ac.uk> To: "Jim Sanford" <jsanford@atinucleus.com>; <zope@zope.org> Sent: Thursday, April 06, 2000 11:22 AM Subject: Re: [Zope] Printing, let's try this again
At 3:16 pm -0500 5/4/00, Jim Sanford wrote:
Currently, I carefully construct a page to print using DTML and HTML with heavy reliance on tables using absolute widths and such to place elements on page. (Thought about using CSS but haven't had time to get up to speed on it.)
Am in the process of coverting to generating PDFs using open source python tool from www.reportlab.com
Jim, This would be a very useful tool. The tools from www.reportlab.com are *very* neat (worked fine out of the box on Solaris and my Mac).
tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Phil Harris wrote:
Tone,
Take a look at www.easysw.com/htmldoc.
Takes HTML and turns it into PDF. Simple no f'in about.
Also you might want to take a look at html2ps and ps2pdf which uses GhostScript to make PDF.
What about ZPDFDocument (http://www.zope.org/Members/gaaros/ZpdfDocument)? Michael Bernstein.
I've tried ZPdfDocument but it doesn't render my page, possibly because it doesn't support all of the html spec. Not sure though. Dan
On Fri, 7 Apr 2000, Daniel G. Rusch wrote:
I've tried ZPdfDocument but it doesn't render my page, possibly because it doesn't support all of the html spec. Not sure though. No it does not-
Only enough to support structured-text. I don't have enough time to implement a full html->pdf conversion tool, but I hope to release a new version soon with some enhancements. Pavlos
Someone mentioned that reportlab was easy to use. I am have trouble installing it. Can anyone help??? When I try to run testpdfgen I get the following error: python testpdfgen.py Traceback (innermost last): File "testpdfgen.py", line 61, in ? from reportlab.pdfgen import canvas # gmcm 2000/10/13, pdfgen now a package ImportError: No module named reportlab.pdfgen Any thoughts, DR
I am currently building a similar solution for users to print letters. The user provides some basic elements such as greeting, body and signoff. I have a Python External Method which I have written which takes these elements and produces a LaTeX2e document. The Python Method then compiles the LaTeX2e document and sends it to a shared office printer. I am currently working on how to let the user edit the final leter before it gets to the printer. Andy ----- Original Message ----- From: Daniel G. Rusch <drusch@globalcrossing.com> To: <zope@zope.org> Sent: Wednesday, April 05, 2000 8:35 PM Subject: [Zope] Printing, let's try this again
I have a site that users use to build quotes. Once they get them the way they like them they are going to need to print them. The browser print button is not a good solution for many reasons, we need a header and footer on pages, pagination etc.
So the the question once again is: Is anyone printing from Zope. i.e. sending html to a html to pdf converter, or some other solution? Note: The ZPdfDocument doesnt convert the complete html page.
Dan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Thu, 06 Apr 2000, you wrote:
I am currently building a similar solution for users to print letters. The user provides some basic elements such as greeting, body and signoff.
I have a Python External Method which I have written which takes these elements and produces a LaTeX2e document. The Python Method then compiles the LaTeX2e document and sends it to a shared office printer.
I am currently working on how to let the user edit the final leter before it gets to the printer.
created a DTML doc with embedded Latex code. All the dynamic elements must be replaced by DTML vars. The result of the processing can then be compiled as usual and sent to the printer using pdftex. It requires some modification to the code in zope. If you are interested I can send you the code. BTW if you can figure out how to access the results at the end of processing a DTML document the same result can be acheived. -- ########################## necessity is the mother of invention ##########################
participants (8)
-
Andy Dawkins -
Daniel G. Rusch -
Jim Sanford -
Michael Bernstein -
Pavlos Christoforou -
Phil Harris -
sathya -
Tony McDonald