
I have different types of documents in my application like docx,txt or jpeg.
I want to convert these documents to .pdf form. The .pdf file created should be exact copy of the original document.
When simply creating a file with .pdf extension and writing to it, the pdf is not generated properly....