Hi all,
just wanted to introduce a new project that aims to produce a library that converts FCKeditor output (XHTML 1.0) into a PDF (using iText). It's called h2pe and lives right here in sf (http://sourceforge.net/projects/h2pe/).
We are still in the planning stage, but implementation should follow in the next few days and we hope to have a working prototype (jar file) on the site by the end of the week.
The ultimate goal is to customise FCK editor's 'print preview' button to just post the XHTML source to a servlet which then responds with a PDF that accurately renders the document.
If any one (read, Java developer) is interested in actively participating then join us in h2pe's mailing list.
Regards
Daniel
Mon, 03/20/2006 - 08:45
#1
RE: New project: h2pe - FCKeditor/PDF
Those pages then can generate PDFs or do anything you want, but it's almost independent of FCKeditor.
RE: New project: h2pe - FCKeditor/PDF
The idea is to be able to configure the servlet's URL in a pop-up dialog and then have a preview button post the XHTML to the servlet.
h2pe itself will not touch either project's code (FCKeditor and iText). In the end it's simply a library that takes XHTML and produces PDF. But we're using FCKeditor as our target client editor, so in a sense we're turning FCKeditor into an online PDF editor.
In the future we *might* need to look into FCKeditor's XHTML in order to tackle some layout issues, namely absolute positioning of tables, images, etc. But we're not anywhere near that yet, and in such a case it wouldn't have anything to do with h2pe. Any code modifications/bug fixes we make to FCKeditor in the course of our work will obviously be fed back as patches into this project.
RE: New project: h2pe - FCKeditor/PDF
Sound great!
Have had a search for 'to PDF' PHP libraries, maybe they come in handy:
- http://www.phpclasses.org/browse/package/2905.html
- http://www.fpdf.org/?lang=en / http://half2.mirrors.phpclasses.org/bro ... e/421.html
- http://www.phpclasses.org/browse/package/1679.html (FPDF extension)
- http://www.phpclasses.org/browse/package/383.html
- http://ros.co.nz/pdf/
- http://hotscripts.com/PHP/Scripts_and_P ... ection=des
RE: New project: h2pe - FCKeditor/PDF
Another one : http://www.easysw.com/htmldoc/pdf-o-matic.php
RE: New project: h2pe - FCKeditor/PDF
There is now a h2pe demo online (http://h2pe.sourceforge.net/demo.html) which will be updated on a regular basis with whatever functionality h2pe supports.
It features FCK editor with a very limited toolbar (only the formatting currently supported by h2pe) and a preview button which calls h2pe via a servlet.
Once again, any feedback and bug reports are very welcome.
RE: New project: h2pe - FCKeditor/PDF
Great initiative. The problem as I see it is the issue of embedding pictures and tables to be handled well and displayed properly in the PDF output file. How far are you on these issues...?
Cheers Mads
RE: New project: h2pe - FCKeditor/PDF
Hi Mads,
we haven't got round to implementing images and tables yet.
We've just added support for text alignment, and tables are on our list for this month's iteration.
I expect it won't be easy, but we'll keep at it until we get it right
As soon as we implement them I'll add a post to this thread, but you can also keep an eye on the h2pe page. We'll add a news item when we get the new funcionality ready.
Re: New project: h2pe - FCKeditor/PDF
I'm trying to convert fckeditor content to PDF with FOP but I have some problems with table ....