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!
![]() |
How to Get Current Measurement Units |
Post Reply ![]() |
Author | |
jabaltie ![]() Senior Member ![]() ![]() Joined: 08 Nov 05 Location: Brazil Status: Offline Points: 138 |
![]() ![]() ![]() ![]() ![]() Posted: 20 Jan 06 at 8:29AM |
I'd like to retrieve Current Measurement Units but I've seen that there is no function "GetMeasurementUnits".
Why is that ? Is it really missing or there is another way to get such value ? |
|
![]() |
|
StanMarshall ![]() Beginner ![]() Joined: 11 Jan 06 Location: United States Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
hmmm...it does seem strange that there is no GetMeasurementUnits, but there definitely doesn't seem to be. One idea might be to set the paper size and then get the PageWidth and/or PageHeight. For example, if you set the paper size to letter and PageWidth is 8.5, you know it the current measurement units is inches. If it is 612, you know it is in points. If it is 215.9, you know it is millimeters. (I'm not sure if these values work out exactly...the specified width in millimeters of letter sized page might be 216. You could maybe test for a range or something to be safe.) I've never actually tried this, but I think it would work. Good luck! Stan
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
I don't think that's a problem. Why you want to know such things? The answer: You want to know it to control if it's okay... The set-function is small and don't need performance - so set the measurement-units you need and that's it ;-) Best regards, Ingo |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
I forgot:
You can't find this value inside the document. I think it's a helping value for the functions you're using after setmeasure... Best regards, Ingo |
|
![]() |
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