Please note you need to escape the HTML string. As HTML text is escaped in above shared example and mentioned in the Insert HTML documentation. So the HTML input text would be like as below.
So are you saying that we need to makes changes to input string(which is a user entry rich text field).?
In that case again lot of backend processing needs to happen and have to write code for escaping HTML characters?
I am afraid there is no other option available to add HTML text in a Word document and then convert it to PDF. Other options are file conversion. I think you can simply replace following characters in HTML string using replace method.
" is replaced with "
& is replaced with &
< is replaced with <
> is replaced with >
I am afraid you can not get the PDF document directly. You need to make a request using the download URL. Please check the sample code as following and use the response as per your requirement.
Thanks for the resolving all my queries … Process is very lengthy.
Now if i dont want to store the data on aspose cloud , then what i need to do?
After i get the final BLOB fall the doc files should get deleted.
Thanks for your feedback. We already logged an enhancement ticket(WORDSCLOUD-364) to Mail Merge and save the output in PDF in a single API call. We have linked your post to the ticket and will notify you as soon as it gets available.
There are two options either to delete files on request or set your cloud storage mode for the file retention period.
I am afraid the minimum file retention time is 24 hours. Please note Aspose Cloud storage is encrypted and it is safe to use it. However, if you are not comfortable with it then you can use other supported 3rd party cloud storages of your choice.
Ok… So i am thinking there is no language restriction for conversion of html into pdf.
So it essentially means html containing text of any language(french, japan, chinese etc) would be converted to pdf?
Another question i have is what will happen if a html contains Image and plain text both in a single input?
Will this get converted to pdf? if yes how pdf will look like?
Yes, it should work. Please check sample JSON text in above shared example. It includes images. However, if you face any issue with some HTML Text then please share here. We will look into it and will guide you.
The issues you have found earlier (filed as WORDSCLOUD-364) have been fixed in this update. This message was posted using Bugs notification tool by Ivanov_John