@OP: you mean to say you need to create a pdf file on yourself with your own text. then just type or the text in openoffice.org and use the option "export as pdf" present in the standard toolbar.
^^ Thank you. I have created that program. Now I want to try a .html/.mht file.
Actually I wanted to ask that if I don't know the contents of the file, what parameters do I set so that it converts the specified thing into pdf page.
---------- Post added at 02:46 PM ---------- Previous post was at 02:42 PM ----------
For this I think an HTML library might also be required.