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!
Precision (accuracy) |
Post Reply |
Author | |
Autodidact
Team Player Joined: 03 Feb 06 Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 03 Feb 06 at 7:15PM |
I've just started playing around with the library (DLL) and simply added one word 10 mm from the top edge and 10mm from the left edge. To my surprise it ended up only ~7 mm down.. - Why would that be? I've been looking high and low for an obvious explanation (setting/margin or something), but didn't find any yet. SetPrecision don't make any difference, and I've yet to see another possibly relevant function to try.. Edited by Autodidact |
|
DELBEKE
Debenu Quick PDF Library Expert Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
Post Options
Thanks(0)
|
Not sure of that, but perhaps the mesurements are for the base line of the text. Try with differents font size
|
|
Autodidact
Team Player Joined: 03 Feb 06 Status: Offline Points: 21 |
Post Options
Thanks(0)
|
Indeed it is.. And it's actually stated so in the parameter description ("in tiny writing" ;). How could I miss that. By trying another font (and smaller size) it shows clearly that it is the baseline point that ends up at 10 mm since the top of the word "changes location". Thank you very much for your suggestion! |
|
Autodidact
Team Player Joined: 03 Feb 06 Status: Offline Points: 21 |
Post Options
Thanks(0)
|
Doing some homework, and posting it for the sake of easy learning for others; The [DrawText] Y-position refers to the baseline of the text. The baseline is the imaginary line upon which a line of text rests. It is also the point from which other elements of type are measured including x-height and leading. To reference the top-left location of the word (font), one can use the following two ways:
Or.. the easier and probably (slightly) more accurate(?) way:
Edited by Autodidact |
|
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