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!
![]() |
Rich Text Handling |
Post Reply ![]() |
Author | |
MrPopup ![]() Team Player ![]() ![]() Joined: 19 Dec 05 Location: New Zealand Status: Offline Points: 32 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3530 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store