How can I convert an RTF file to a PDF one? I have the adobe PDF printer, should I use it? If so, how can I programmatically access it?
A Rich Text Document (. rtf file) is a versatile format that allows advanced formatting to be viewed on multiple platforms. Please note that RTFs, unlike PDFs, are easily edited.
You can open an RTF file with most word processing programs, including: Microsoft WordPad (Windows) Apple TextEdit (Mac) Microsoft Word (cross-platform)
You can use a PDF printer, but then you still have a few problems to solve.
In order to handle text that spans multiple pages, you need this article to create a descendant of RichTextbox that handles the EM_FORMATRANGE Message.
There are a lot of (free) PDF printer out there, but I found that only BioPdf will let you control the filename of the output. They also have reasonable rates for licensed versions.
I have used this to create complex reports (combinations of multiple RTF segments and custom graphics) as attachments for emailing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With