We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can save pdf and replace html markup ? sample : <i> to italic in pdf

hi, can i save pdf and replace html markup ?

I would like to replace to italic font in the pdf.

Is there a property in PdfSaveOptions to do this ?

Edit when i save in html format, i have <I&rt; instead of .



Thanks for your inquiry. In your case, we suggest you following solution.

  1. Please iterate over all Run nodes of document.
  2. If the Run.Font.Italic and set its text as <i> Run.Text </i>
  3. Save document to PDF.

If you still face problem, please ZIP and attach your input and expected output documents here for our reference. We will then provide you more information about your query.

1 Like

Hi, thank for your answer, i found the solution in the official documentation in this link :

On the exemple on Bottom of the page.


Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

1 Like