Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Rich Text Handling
  FAQ FAQ  Forum Search   Register Register  Login Login

Rich Text Handling

 Post Reply Post Reply
Author
Message
MrPopup View Drop Down
Team Player
Team Player
Avatar

Joined: 19 Dec 05
Location: New Zealand
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrPopup Quote  Post ReplyReply Direct Link To This Post Topic: Rich Text Handling
    Posted: 02 Nov 09 at 12:21AM

Is there any way to use rich text in a QuickPDF generated document?

 

The scenario is that we have an application where the user enters a heap of text into a windows RTF control.  They do a limited amount of formatting: bullets, font size & colour being about it.

 

How do we then ‘print’ that text, via QuickPDF including the format details etc?

 

Thank you for any/all assistance. Wink 

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 02 Nov 09 at 6:54AM
Hi!

Many years ago as i want to understand the rtf-format i began to produce my first rtf-samples with notepad 'cause the basically rtf-format-syntax is directly readable.

In QuickPDF there are the html-tags you can use. What you can do now is to see what rtf-format-syntax you will have and if there are similar supported html-tags from QuickPDF. Finally you have to build a mapping table rtf/html to convert your rtf-text and the last step can be the pdf-convertion.

There isn't a ready made solution in QuickPDF but it should be possible that you can do it with QuickPDF ;-)

Cheers, Ingo

Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 02 Nov 09 at 7:07AM
I have not tested it by myself, but with the last revision, there should be a new way using GetCanvasDc and LoadFromCanvasDc.
The GetCanvsDc return a virtual Device Context . You can use it the same way than a printer or a display device context. If you now how to render a rtf on a printer, then use the same code to render on the pdf.
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 05 Nov 09 at 10:44AM
Hi MrPopUp.
 
I have posted a sample writen in vb6 that make the job in the sample section.


Edited by DELBEKE - 05 Nov 09 at 10:45AM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store