Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Java

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-22-2009, 07:49 AM
jettimadhu jettimadhu is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
Arrow converting html to pdf in java

Hi,
now i got situation of converting the html to pdf/doc in java.But i unable to find the solution for this.
Please suggest the procedure or process of getting solution...
Reply With Quote
  #2  
Old 10-24-2009, 10:47 AM
nspils nspils is offline
Senior Member
 
Join Date: Dec 2004
Location: San Bernardino County, California
Posts: 1,455
A lot of people have wondered about this, too. Do a Google search using the term "html to pdf in java" and you'll see
Reply With Quote
  #3  
Old 10-24-2009, 10:59 AM
jettimadhu jettimadhu is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
Quote:
Originally Posted by nspils View Post
A lot of people have wondered about this, too. Do a Google search using the term "html to pdf in java" and you'll see
Hi nspils,
I already done searching on google in different ways.But i didnt get more information.Then only i posted in this tutorials. If you have a solution please post...
Reply With Quote
  #4  
Old 10-24-2009, 01:50 PM
nspils nspils is offline
Senior Member
 
Join Date: Dec 2004
Location: San Bernardino County, California
Posts: 1,455
You will need to use a pre-compiled library of functions unless you want to take the time to write these functions yourself.

This is not easy stuff to code. You need to know file formats and to know how to convert from one file format to another. If you want the "quick and dirty" method of implementing a function without having to learn all of the stuff needed to write the code for the function, you'll need to make use of someone else's work.

Take a look at http://www.dancrintea.ro/html-to-pdf/; scroll down to the section about using the author's tool package in Java - import the package the same way that you import classes and packages from the JDK. Then you can call the functions supplied. With this one you need to have OpenOffice installed on your computer and you need to make calls to the operating system to connect to Open Office to supply you with the functionality you want to implement.
Reply With Quote
  #5  
Old 10-27-2009, 08:55 AM
jcaccia jcaccia is offline
Registered User
 
Join Date: Sep 2004
Location: Surrey, UK
Posts: 21
A very good library I've used is iText. You don't need other products installed or any interaction with the OS to write PDFs (except for another .jar library if you need to encrypt the PDFs). Check the tutorial.
Reply With Quote
  #6  
Old 11-04-2009, 12:31 PM
Hack's Avatar
Hack Hack is offline
Super Moderator
 
Join Date: Apr 2007
Location: Sterling Heights, Michigan
Posts: 7,719
Couple of other links...

http://www.javaworld.com/javaworld/j...0410-html.html

http://www.pdfonline.com/easypdf/sdk...FZAC5wod02W6Mg
__________________
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista

Microsoft MVP 2005/2006/2007/2008/2009
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text to HTML translators using Java Utility/Java Class. srinu Java 2 04-17-2009 12:14 PM
Reading and Editing text of an existing pdf using JAVA shuvaforall Java 7 09-24-2008 04:54 AM
Getting the content of HTML tags with java Gengar003 Java 4 05-21-2006 02:09 PM
Conversion of HTML report to PDF format software_develo .NET 4 01-29-2006 11:46 AM
Convert HTML DOC to PDF Humair .NET 0 04-23-2005 08:27 AM


All times are GMT -4. The time now is 08:35 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.