Re: [Zope-dev] [Zope] PDF generation from products methods
On Tue, 2002-06-04 at 17:07, Thierry Florac wrote:
Hi...
I've found, in http://www.zope.org/Members/mjablonski/howtoPDF, a way to produce PDF documents from Zope basic HTML outputs.
But what I'd like to do is to be able to produce PDF documents from any HTML output, including : - output generated by forms requests, - output generated by any product method
hi, I've made a minor change to the script, so it should work for you. http://www.zope.org/Members/mjablonski/howtoPDF security problem with unauthenticated users is unresolved... I'll change this in a few days. greetings, maik -- maik jablonski \ -;~~;- / www.dzug.org universitaet bielefeld > (@@) < www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung / RUN <> GNU \ www.sachunterricht-online.de
Hi, I've tried your modified script, but always have several problems : - protected pages can't be displayed at all now... I don't know if it's better or worse than before... - if I have a product instance called "object1" with a "show" method, the absolute_url() retrieves "/object1", not "/object1/show", so the resulting PDF file is not the good one... - how can I generate PDF files for HTML pages produced via forms entries ?? Thanks for any help... Thierry On Tue, 2002-06-04 at 17:29, Maik Jablonski wrote:
On Tue, 2002-06-04 at 17:07, Thierry Florac wrote:
Hi...
I've found, in http://www.zope.org/Members/mjablonski/howtoPDF, a way to produce PDF documents from Zope basic HTML outputs.
But what I'd like to do is to be able to produce PDF documents from any HTML output, including : - output generated by forms requests, - output generated by any product method
hi,
I've made a minor change to the script, so it should work for you.
http://www.zope.org/Members/mjablonski/howtoPDF
security problem with unauthenticated users is unresolved... I'll change this in a few days.
greetings, maik
-- maik jablonski \ -;~~;- / www.dzug.org universitaet bielefeld > (@@) < www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung / RUN <> GNU \ www.sachunterricht-online.de
On Tue, 2002-06-04 at 18:04, Thierry Florac wrote: hi,
- if I have a product instance called "object1" with a "show" method, the absolute_url() retrieves "/object1", not "/object1/show", so the resulting PDF file is not the good one... - how can I generate PDF files for HTML pages produced via forms entries ??
I've just (few minutes ago...;-) added a second feature to html2pdf so that you can pass an absolute url with a paramter pdfurl... please download and try it again. http://www.zope.org/Members/mjablonski/howtoPDF
- protected pages can't be displayed at all now... I don't know if it's better or worse than before...
that's a problem now... you are right... but maybe it's a little bit safer. greetings -- maik jablonski \ -;~~;- / www.dzug.org universitaet bielefeld > (@@) < www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung / RUN <> GNU \ www.sachunterricht-online.de
participants (2)
-
Maik Jablonski -
Thierry Florac