Home > Software engineering >  Convert html tagged text to string for a pdf itext7
Convert html tagged text to string for a pdf itext7

Time:03-10

I am working on a project in asp.net MVC which involves printing various information that the user enters previously.

I use the TinyMCE for comment type fields. As we know Tiny allows you to format text using different types of fonts, adding bold words, etc. The string it produces will have tags that allow reading the style chosen for the word or phrase in HTML.

I use Itext7 to produce pdfs, when I print the fields I mentioned above, obviously all the HTML tags are shown, for example:

<p> Hello World! </p>

Is there a way to tell Itext7 that when these tags are present, it must use an associated style for that tag?

CodePudding user response:

I created "Hello World" enter image description here

  • Related