Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

RichTextBoxField not formating the HTML

$
0
0
I am currently investigating some functionalities and i'm not getting the RichTextBoxField to work.

The Html text i am putting in RichTextValue is not getting formated.

This is my code and the pdf file i am using is attached:

var htmlText = "<p>Test content</p><p><ul><li>One</li><li>Two</li></ul></p>";            string pagePath = "Teste_2.pdf";
            var doc = new Document(pagePath);            var richTBF = doc.Form["Title_9fnF8b*1JO8NbqjZNj-YoA"as RichTextBoxField;            richTBF.RichTextValue = htmlText;            string newdocName = "testPrinted.pdf";            using (var fileStream = File.Create(newdocName))            {                //pdf.Flatten();                doc.Save(fileStream);            }

Viewing all articles
Browse latest Browse all 3131

Trending Articles