![]() 8 years ago I think the way to go is to use the browsers capabilities to do the translation. On the contrary Flying Saucer was perfect. 8 years, 10 months ago Better but similar: /ariya/phantomjs/wiki/Screen-Capture (according to /2012/12/… the pdf has real text, not rasterized) 8 years, 10 months ago HTMLWorker is deprecated in newer versions of IText in favor of XMLWorker however CSS support is poor in both cases (see /xmlworker/itextdoc/…) and was not adequate for my needs. Though this can be mitigated with automated tests or some process that involves XML validation. It's easy to unwittingly break the PDF rendering by including something like an ampersand in your HTML, or some javascript code that makes your rendered HTML not strict XHTML. ![]() 9 years, 2 months ago I'd say the real problem with Flying Saucer is that it requires a well-formed and valid XML document. Also, does not require admin rights on the machine to install. questions/2692000/… 9 years, 4 months ago And if you want to cheaper, but with more options, try .uk - it uses webkit and users real WYSIWIG 9 years, 3 months ago tested on windows XP (version 0.9.9) and works very well. Only version numbers 5 or above are on the more restrictive license. 9 years, 9 months ago The real problem with flying sauser is that it uses itext to render PDF, which is a AGPL v3 licenced lib 9 years, 7 months ago The version of itext used by Flying Saucer is 2.0.8 which was available under LGPL. Current version is not anything advanced, but if your xhtml templates are simple this library may come handy. 9 years, 11 months ago I've recently created a Java library docbag that can convert xhtml to pdf documents. 10 years, 6 months ago Yes, there is a Windows version too. 11 years, 4 months ago Just use the last non-AGPL version (com.lowagie:itext:2.1.7 in Maven). If a few requests come thru that result in a conversion using FF your server will have lost a few GIG of memory just to serve a few converted pages. ![]() I think there's a windows version too 11 years, 5 months ago Doesnt sound like a very scalable solution if one needs to convert pages on the fly to pdf in parallel. 11 years, 5 months ago Does it work on a non Mac OS? 11 years, 5 months ago we use it on linux. 11 years, 5 months ago It's AGPL, seems even worse than GPL, you need to be open source even if you just serve the PDF and iText is server side. 11 years, 7 months ago If you're looking for a cheaper alternative for Prince, try. 12 years, 10 months ago For a straight html-page-to-pdf conversion, this is better than anything else I've seen, free or commercial. I don't think ActivePDF is really suitable because of the price, but it's good to know something like that exists. Is there maybe a way to grab the rendered page from the internet explorer rendering engine and send it to a PDF-Printer tool automatically? I have no experience in OLE programming in windows, so I have no clue what's possible and what is not.ĩ years, 11 months ago Related Topics html pdf java pdf-generation Comments 13 years, 6 months ago Thanks for the helpful answer. I also took a quick look at Jrex, a Java-API for using the Gecko rendering engine. The problem I encountered was that while CSS-attributes are converted nicely, the table-layout is pretty messed up, with text flowing out of the table cell. One way to do it that is feasable, but does not produce good quality output (at least out of the box) is using CSS2XSLFO, and Apache FOP to create the PDF files. It only needs to work on windows systems, though. The input files (reports) use a rather simple, table-based layout, so support for really fancy JavaScript/CSS stuff is probably not needed.Īs I am used to working in Java, a solution that can easily be used in a java-project is preferable. I need to automatically generate a PDF file from an exisiting (X)HTML-document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |