If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Please take greater care to help us help you, otherwise we are both as lost as a giraffe on Galifrey.

If you were simply asking how to convert an HTML document to a PDF document, then OpenOffice is perfectly capable of opening HTML documents, saving PDF ones and being generally awesome at the same time.

Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

how to convert a html page in local machine to pdf

Hi,

What you suggested is not what I am expecting.I am having a html page in the local mahine,using an API in a java praogram i will give the path of the html page so that it will get a pdf output of that html page.

Is there any API or any software available(It should be used by commandline)which should be efficient in convertinf html to pdf.What I mean to say is it should take less time for conversion.

Disclaimer. (1) Whilst I will help you sometimes, if I feel like it, and my advice in relation to your actual question will be of good quality: my posts are to be taken with a pinch of salt. I will be sarcastic, deploy irony and include obscure cultural references for my own amusement without warning.
(2) You will gain nothing from complaining, and if you try to argue with me then you will not win. No matter how noble your battle seems, I am still better than you, don't be an hero.

I have seen denature(perl) suggested by tree but I am expecting in java.And I also tried PDFOnline as suggested by Sticks but that is used to convert html to pdf online.
But I need an API,I will use this API in my java program,using the specific methods of that API I will convert my html which is present in my local machine itself to a pdf.
Icebrowser is one such API to convert html to pdf.But it takes an url as input and convert directly to pdf.That is ok but my problem is not to convet an url to pdf but a html page in my local machine to pdf.My doubt is will Icebrowser takes a html(which is present in local machine)as input instead of url and convert to pdf?Is there any such API which will satisfy the needs as given above.Please help me.

I got the answer for what I am searching,IceBrowser itself will convert local html tp pdf.Generally we know that IceBrowser will convert an url to pdf directly.

Using Wget we can convert an url(webpage) to html page(that web page becomes local html now).Using icebrowser we can convert local html page to pdf.
If you open any html file in any browser in the top it will be shown like

Eg: If you have an html file(say a.html) in C:\\a.html

Open any browser got to menu bar on the top file-> open -> <give the path where that a.html page is there>

Now in the browser we get like (I have used oprera,you can use firefox also in the same way) "file://localhost/C:/a.html".It uses file protocol

Pass this "file://localhost/C:/a.html" in the icebrowser API,you can able to convert local html file to pdf directly.

If you wanna do that without any plug-ins you can use gmail or other emails. Just compose a letter(of course you can leave it empty) and attach the PDF files then send them to yourself. Check this email in “Inbox” then you can open the attached pdf files in html form. if you wanna save these complicated steps and find a easy way, you can google PDF to Html Converter and you will find many useful tools, or google how to convert PDF to HTML to get instructive articles. Good luck i can share with you a good image converter i am using now, it can convert html into pdf. good luck.