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 - Formatting text in columns
  FAQ FAQ  Forum Search   Register Register  Login Login

Formatting text in columns

 Post Reply Post Reply
Author
Message
Hopeful View Drop Down
Beginner
Beginner


Joined: 19 Jul 06
Location: United Kingdom
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hopeful Quote  Post ReplyReply Direct Link To This Post Topic: Formatting text in columns
    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

Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post Posted: 10 Aug 06 at 11:35AM
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()

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