Print Page | Close Window

Anyway to insert RTF text into a PDF?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3165
Printed Date: 02 May 24 at 8:14PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Anyway to insert RTF text into a PDF?
Posted By: BobW
Subject: Anyway to insert RTF text into a PDF?
Date Posted: 21 Aug 15 at 5:49PM
I would like to insert RTF text into a PDF including the text size and font information that would be in the RTF.  When I create a document for a customer I want them to provide an RTF file with their current return address that I read then write into the PDF in the upper left corner and again where the return address will fit in a windowed envelope.  I don't see a DrawRTFText command.

I tried converting the text to HTML and that works to the extent that the text appears on the document but it doesn't pick up the fonts or text size from the HTML and that's kind of the thing I need this to do.

Any ideas?

Bob





Replies:
Posted By: Ingo
Date Posted: 25 Aug 15 at 10:34PM
Hi Bob,

i've tried the advanced search option (right, above ;-)
and found these interesting threads for you:
http://www.quickpdf.org/forum/convert-rtf-to-pdf_topic1266.html
http://www.quickpdf.org/forum/rtf-to-pdf_topic3007_post12110.html?KW=rtf+pdf#12110

Cheers,
Ingo



-------------
Cheers,
Ingo



Posted By: BobW
Date Posted: 28 Aug 15 at 4:31PM
I saw those, but that's not what I'm looking for.  I'd like to see a DrawRTFText command that interprets the typeface name, size, color, etc. and inserts that text into the document from an RTF string.  I think what I will do instead is create a JPG of the RTF and use AddImageFromFile/DrawImage which will also keep the resulting file size down as I won't have to embed any fonts.

Thanks,

Bob





Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk