Print Page | Close Window

Quad Co-Ordinates

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=1215
Printed Date: 07 Dec 2019 at 7:40am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Quad Co-Ordinates
Posted By: mhoney
Subject: Quad Co-Ordinates
Date Posted: 27 May 2014 at 10:04am
Hi,

I just have a quick question on Quads.  Basically I have seen example scripts that refer to Quads in whole integers eg.  var qdAdress = [[-1, 172, 273, 172, -1, 158, 273, 158]];

However if you extract all quads from all words and drop into Excel they are not whole numbers (many decimal places).

When referring to Quad co-ordinates are the decimal places relevant or important?  Do you you just need the numbers without the decimal places such as above var qdAddress?

With a script I wrote, I actually applied a Math.floor to remove the decimal places but is this something that is not necessary?

Thanks for your help, it is helping just piece a few things together / enhancing my understanding of Quads.

Thanks.Smile



-------------
Michael.



Replies:
Posted By: try67
Date Posted: 27 May 2014 at 11:54pm
Depends for what you're using them, and what level of precision you want.
The values you get from getPageNthWordQuads are floats, not integers.


-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com


Posted By: aandi
Date Posted: 28 May 2014 at 10:06am
Depends if precision of 1/72 inches is enough for you. It is for many, but typesetting needs more accuracy than that.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net