Print Page | Close Window

How to know the Height of DrawWrappedText

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=3827
Printed Date: 02 Jul 25 at 1:42PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to know the Height of DrawWrappedText
Posted By: sebC
Subject: How to know the Height of DrawWrappedText
Date Posted: 22 Jul 20 at 12:51PM
Hello,

I am drawing text with DrawWrappedText. 
How can I know the height text will take on the page ? 
If i can know height it would be ideal, but i could deal with line count. 

Because i need to draw other stuff under the text. And i cant do that if I dont know the height. 

curPdfLib->SetBreakString(delim.c_str());
curPdfLib->DrawWrappedText(leftBandeau, curYPos, WBandeau, texte.c_str());



Replies:
Posted By: sebC
Date Posted: 22 Jul 20 at 1:03PM
Ok my bad, I just found what I was looking for by scrolling on "Text" functions.

GetWrappedTextHeight
GetWrappedTextLineCount
GetTextHeight
GetTextWidth



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