Pls provide some code snippet in java that converts HTML.HTML,MHTML to pdf
i am expecting bytearray of above files an i need to return pdfbyte array ,not suppose to use file handlers.Thanks,Prasad
Hi Prasad,
Thanks for your inquiry. With Aspose.Words for Java, you can easily render files in any of the formats mentioned here to PDF format. I would suggest you please read the following articles for more details:
Please let us know if we can be of any further assistance.
Best regards,
Hi Good day,
Hwru doing?
I am struggling to read password protected files,does Aspose have any soloution using java.
i will get emails that i will have some attachments of different file formats like docx,text,pdf etc.,
i have convert each and every document type and generate one PDF finally.
Looking at this example,i can able to convert all the attachments(docx,text) into PDF and when it comes to PDF (attachment ),i no need convert again into pdf so i have to append this to already converted PDF above and i am having problem while reading this file.
Pls find the sample.
Your response will be appreciated.
Regards,
Prasad
Hi Prasad,
Can you please further elaborate what issue are you facing and also share your complete code to reproduce the issue? What I have noticed is that one PDF and one text file are attached to the email you have shared. There is only one image in your PDF and no text?
Do you want to extract image from the PDF or extract text from the image after extracting the image from the PDF?
Best Regards,
metropolitanhealth:
Looking at this example,i can able to convert all the attachments(docx,text) into PDF and when it comes to PDF (attachment ),i no need convert again into pdf so i have to append this to already converted PDF above and i am having problem while reading this file.Hi Prasad,In order to open password protected PDF file, you need to provide its password while accessing file contents. Else you will get an error message while reading the document.