wood burning stoves 2.0*
The moose likes Servlets and the fly likes server side html to pdf conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "server side html to pdf conversion" Watch "server side html to pdf conversion" New topic
Author

server side html to pdf conversion

Rajesh kannan
Greenhorn

Joined: Oct 04, 2005
Posts: 4
Hi guys,
Do u have any best solution to convert html to pdf in serverside on the fly?Is there any tools provided by Adobe??
Thanks in advance.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
The Apache FOP project has open source code for PDF creation using XSLT - example XSL scripts for XHTML conversion are included in the package. Note that poorly formed HTML that might be tolerated by browsers will not work.
This is the FOP (Formatting Objects Processor) site.
The FOP project has an active and helpful mailing list.
The iText project is another free Java library.
Bill
Rajesh kannan
Greenhorn

Joined: Oct 04, 2005
Posts: 4
thanks
I am searching for adobe solution..
is it possible??
rajesh
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"JavaRajesh kannan",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
David
Forum Bartender
Rajesh kannan
Greenhorn

Joined: Oct 04, 2005
Posts: 4
hi,
I have already gone through the policies.While creating my profile i struggled, i thought the user name was already exists problem..so that i change my display name as "javaRajesh kannan" now its changed to "Rajesh kannan"..
Any how thanks for ur reminder..

Guys
any adobe solution??
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Did you check with Adobe?

I did several years ago.
At the time, they had a server version of Distiller (their PDF generator) but it was pretty limited and not cheap.
Things may have changed since then.

I ended up using FOP (See William's post for link) and was very happy with it.
[ October 05, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rajesh kannan
Greenhorn

Joined: Oct 04, 2005
Posts: 4
Ben,
U r right. Adobe Distiller is the best solution for creating pdf files.But It creates the pdf files only from Post Script files.I have also used that in the client side.Can we apply distiller to server side too??this is my question..
Thanks
Rajesh
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

As I mentioned earlier:
  • I haven't looked at Distiller in the last few years
  • At the time, there was a server option (think it was MS specific but don't quote me on that).
  • It was expensive
  • It was limited. We wanted to be able to create multiple PDFs from a template with data from an Oracle Database and there was something keeping us from doing it.
  • I ended up using FOP so I didn't look any further into Adobe options.


  • If you're determined to use Adobe, call them.
    They're a commercial company who will charge you for their products.
    I'm sure a salesperson will be happy to tell you all about their offerings.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: server side html to pdf conversion