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!
Formatting text in columns |
Post Reply |
Author | |
Hopeful
Beginner Joined: 19 Jul 06 Location: United Kingdom Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 10 Aug 06 at 2:32AM |
I want to format a receipt for printing. I can see from the docs that there are functions to draw wrapped text which can be left or right justified which is great. However, these functions all need a starting x and y position. My question is, how do I determine the correct y position to use for each line of text? Also, it's possible that the left text column will wrap - the right text column must always have a y position that corresponds to the first line of the corresponding block of left text column. Line 1 which $12.20 has wrapped Line 2 $10.20 Line 3 $23.34 |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
There are a couple of helper functions in QuickPDF you can use to determine the height or # of wrapped lines, then you can do the math to get the next y position.
GetWrappedTextHeight() GetWrappedTextLineCount() |
|
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