Hello.
I think that you do not understand me. I do not want to convert RTF file to PDF,
but I have RTF formatted text in string variable/buffer and I want to draw it onto PDF page on specific position x, y.
For example RTF formatted text looks like:
- Code: Select all
{\rtf1\ansi\deff0
{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}
This line is the default color\line
\cf2
This line is red\line
\cf1
This line is the default color
}
RTF formatting uses control characters escaped with backslashes along with nested curly braces.
So it is some kind of styled text like the HTML Styled Text (PdfHTMLTextElement) which is allready implemented in Spire.PDF
https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Text/How-to-Insert-HTML-Styled-Text-to-PDF-in-C-VB.NET.htmlyou can see for some details here:
https://chrisbenard.net/2014/08/20/extract-text-from-rtf-in-c-net/It is possible to implement this another kind of styled text type - RTF formatted text to Spire.PDF?
Thank you.
BR