Hi,
is it possible in Seaside to generate a pdf in any way from a html output? I think a way would be to have a component renderer which outputs latex or something like that and then runs a converter... Any solutions or other ideas, please? Regards, Martin _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi Martin,
I'm sucessfully using an open source solution called ReportManager for PDF generation. It's based on templates you make 'a la Crystal Reports' so I don't know if it's of your interest. regards, Sebastian Sastre > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf > Of Martin Beck > Sent: Monday, November 06, 2006 10:03 AM > To: [hidden email] > Subject: [Seaside] PDF Generation > > Hi, > is it possible in Seaside to generate a pdf in any way from a > html output? I think a way would be to have a component > renderer which outputs latex or something like that and then > runs a converter... Any solutions or other ideas, please? > > Regards, > Martin > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Am Montag 06 November 2006 15:38 schrieb Sebastián Sastre:
> Hi Martin, > > I'm sucessfully using an open source solution called ReportManager for PDF > generation. It's based on templates you make 'a la Crystal Reports' so I > don't know if it's of your interest. > Uhm, I found it on sourceforge; seems a little bit overwhelming. I would have to use FFI to call the library, dont I? Do you have a little example? What about connecting to an Acrobat Distiller pdf printer? regards, martin _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Martin,
I'm not really using it in squeak. I use it in Dolphin and that has facilitated me the ocx wrapping stuff. I don't know how one could connect to an acrobat distiller printer. Anyway, think that the acrobat solution only solves your pdf creation problem but not the shape of your reports problem. Sorry, Sebastian Sastre > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf > Of Martin Beck > Sent: Monday, November 06, 2006 7:25 PM > To: The Squeak Enterprise Aubergines Server - general discussion. > Subject: Re: [Seaside] PDF Generation > > Am Montag 06 November 2006 15:38 schrieb Sebastián Sastre: > > Hi Martin, > > > > I'm sucessfully using an open source solution called > ReportManager > > for PDF generation. It's based on templates you make 'a la Crystal > > Reports' so I don't know if it's of your interest. > > > Uhm, I found it on sourceforge; seems a little bit > overwhelming. I would have to use FFI to call the library, > dont I? Do you have a little example? > What about connecting to an Acrobat Distiller pdf printer? > > regards, > martin > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Martin Beck-3
2006/11/6, Martin Beck <[hidden email]>:
> Hi, > is it possible in Seaside to generate a pdf in any way from a html > output? I think a way would be to have a component renderer which > outputs latex or something like that and then runs a converter... Any > solutions or other ideas, please? We use a special latex renderer for one project. It allows us to use the same rendering code for both html and latex. It can get a bit tricky in the details when you have a given latex template and you need to set latex attributes. Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Philippe Marschall schrieb:
> 2006/11/6, Martin Beck <[hidden email]>: >> Hi, >> is it possible in Seaside to generate a pdf in any way from a html >> output? I think a way would be to have a component renderer which >> outputs latex or something like that and then runs a converter... Any >> solutions or other ideas, please? > > We use a special latex renderer for one project. It allows us to use > the same rendering code for both html and latex. It can get a bit > tricky in the details when you have a given latex template and you > need to set latex attributes. need some text and images on each pdf page. Martin _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Martin Beck wrote:
>>> is it possible in Seaside to generate a pdf in any way from a html >>> output? > > Thanks, I'll try it out. Do you think, its hard to implement? I only > need some text and images on each pdf page. The original question is not clear. Do you actually need to convert HTML to PDF? Or, do you have the data to generate the HTML, and you're now looking for a way to generate a PDF, instead of HTML? If you just need to generate a PDF with some text, have you looked at "SPL PDF Library". See: http://map.squeak.org/package/d8fd5e1a-2bb7-4c99-a77e-f945dfce01eb IIRC, it's licenced under GPL. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Martin, try HTMLDoc http://www.easysw.com/htmldoc/
"HTMLDOC converts HTML files and web pages into indexed HTML, PostScript, and PDF files suitable for on-line viewing and printing. HTMLDOC is used for anything that needs to be viewed or printed including on-line billing, books, financial statements, automated network configuration guides, mailing lists and labels, marketing flyers, quarterly reports, technical manuals, and users manuals. We use HTMLDOC for all of our own documentation and reports, and it is the core of our free PDF-o-matic service." Best regards Janko Yanni Chiu wrote: > Martin Beck wrote: >>>> is it possible in Seaside to generate a pdf in any way from a html >>>> output? >> >> Thanks, I'll try it out. Do you think, its hard to implement? I only >> need some text and images on each pdf page. > > The original question is not clear. Do you actually > need to convert HTML to PDF? Or, do you have the data > to generate the HTML, and you're now looking for a > way to generate a PDF, instead of HTML? > > If you just need to generate a PDF with some text, > have you looked at "SPL PDF Library". See: > > http://map.squeak.org/package/d8fd5e1a-2bb7-4c99-a77e-f945dfce01eb > > IIRC, it's licenced under GPL. > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > -- Janko Mivšek Svetovalec za informatiko EraNova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565 _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Yanni Chiu
2006/11/7, Yanni Chiu <[hidden email]>:
> Martin Beck wrote: > >>> is it possible in Seaside to generate a pdf in any way from a html > >>> output? > > > > Thanks, I'll try it out. Do you think, its hard to implement? I only > > need some text and images on each pdf page. > > The original question is not clear. Do you actually > need to convert HTML to PDF? Or, do you have the data > to generate the HTML, and you're now looking for a > way to generate a PDF, instead of HTML? > > If you just need to generate a PDF with some text, > have you looked at "SPL PDF Library". See: > > http://map.squeak.org/package/d8fd5e1a-2bb7-4c99-a77e-f945dfce01eb > > IIRC, it's licenced under GPL. I can only recommend this if you're masochistic. Philippe _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Yanni Chiu
Am Dienstag 07 November 2006 18:00 schrieb Yanni Chiu:
> Martin Beck wrote: > >>> is it possible in Seaside to generate a pdf in any way from a html > >>> output? > > > > Thanks, I'll try it out. Do you think, its hard to implement? I only > > need some text and images on each pdf page. > > The original question is not clear. Do you actually > need to convert HTML to PDF? Or, do you have the data > to generate the HTML, and you're now looking for a > way to generate a PDF, instead of HTML? In fact, I have some kind of report generation. It contains only images and text belonging to those images. The place of those is rendered on a normal WARenderCanvas through some predefined layouts, which take the given images and texts for a given page of the report. The editing of those reports (i.e. changing images and texts) happens via Scriptaculous meaning we use Drag & Drop and an In-Place-Editor. I managed to get a preview view using the same layout code if I removed the generated JavaScripts after rending the preview component. I now wondered whether it is possible to just exchange the renderer of the preview view, and it renders to latex, which can easily be converted to pdf. The reason is not to duplicate the code for the predefined layouts... (They are classes, which render a page on a canvas). Btw, what is about CSS-styles when converting html to pdf? perhaps it would be easier just to write the latex-code into each layout-class and thus duplicate the layout style... :( > If you just need to generate a PDF with some text, > have you looked at "SPL PDF Library". See: tried only the tests and some those generated pdfs looked kind of ugly... regards and thanks, martin _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
You might look at apache's FOP library - it is in Java but you can
call it as a web service or via OSProcess On Nov 7, 2006, at 9:29 AM, Martin Beck wrote: > Am Dienstag 07 November 2006 18:00 schrieb Yanni Chiu: >> Martin Beck wrote: >>>>> is it possible in Seaside to generate a pdf in any way from a html >>>>> output? >>> >>> Thanks, I'll try it out. Do you think, its hard to implement? I only >>> need some text and images on each pdf page. >> >> The original question is not clear. Do you actually >> need to convert HTML to PDF? Or, do you have the data >> to generate the HTML, and you're now looking for a >> way to generate a PDF, instead of HTML? > > In fact, I have some kind of report generation. It contains only > images and > text belonging to those images. The place of those is rendered on a > normal > WARenderCanvas through some predefined layouts, which take the > given images > and texts for a given page of the report. > The editing of those reports (i.e. changing images and texts) > happens via > Scriptaculous meaning we use Drag & Drop and an In-Place-Editor. I > managed to > get a preview view using the same layout code if I removed the > generated > JavaScripts after rending the preview component. > > I now wondered whether it is possible to just exchange the renderer > of the > preview view, and it renders to latex, which can easily be > converted to pdf. > The reason is not to duplicate the code for the predefined > layouts... (They > are classes, which render a page on a canvas). > > Btw, what is about CSS-styles when converting html to pdf? perhaps > it would be > easier just to write the latex-code into each layout-class and thus > duplicate > the layout style... :( > > >> If you just need to generate a PDF with some text, >> have you looked at "SPL PDF Library". See: > tried only the tests and some those generated pdfs looked kind of > ugly... > > regards and thanks, > martin > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Martin Beck-3
Martin Beck wrote:
> Hi, > is it possible in Seaside to generate a pdf in any way from a html > output? I think a way would be to have a component renderer which > outputs latex or something like that and then runs a converter... Any > solutions or other ideas, please? Martin -- An older site I've still got running generates PDFs internally and it works most of the time OK (it's written in PHP), but in my new site I'm more tempted to go the direction of having different style sheets instead -- one for screen and one for "print".. However, it really depends on what sort of info you're trying to get plopped into a report.. In my case it's mostly columnar data with some basic line graphs eventually which I might be able to do with Javascript (or CSS based) or perhaps something else that can work which is browser-based. If you're able to go that route, I think it greatly simplifies things quite a bit, but again -- ymmv! _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |