Hi,
I am converting some part of the document into HTML and placing that HTML into another document, but font-family in style tag of converted HTML contains ‘Times New Roman’.
So i need to provide the ‘Calibri’ font in the font-family of the converted HTML. please let me know how should i do?
Regards,
Srinu Dhulipalla
Hi
Thanks for your request. Do you convert DOCX to HTML? Is Calibri font changed to Times New Roman? Please attach sample word document and output HTML for testing.
Best regards.
Hi Alexey,
Thanks for your response… PFA for sample doc, when i am converting attached doc into HTML, the html string is like this:
This line is for testing purpose. I am converting this document into HTML and later inserting into another document with the font ‘Calibri’.
Before inserting this HTML string into another doc, i need to change the ‘font-family’ to ‘Calibri’
Is there any way to provide ‘font-family’ before converting into HTML??
Regards,
Srinu Dhulipalla
Hi
Thanks for your request. You can just change font before conversion. Here you can find code example that shows how to change font of entire document.
https://forum.aspose.com/t/105897
Also, you can change font in your HTML string. You can achieve this using regular expressions for example, or using some other approach.
Best regards.