pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: PDRectangle.java and POINTS_PER_INCH
Date Thu, 18 Feb 2016 22:03:11 GMT
Probably just a type-o. It should be renamed POINTS_PER_MM, which is indeed
2.83465.

On Thu, Feb 18, 2016 at 10:36 PM, Tilman Hausherr <THausherr@t-online.de>
wrote:

> Am 18.02.2016 um 10:26 schrieb M. Niedermair:
>
>> Hi developers,
>>
>> it is possible to set POINTS_PER_INCH and MM_PER_INCH from private to
>> public, because you can do it in many conversions and so does not have to
>> redefine.
>>
>
> I could do that, but what would be the javadoc?
>
> POINTS_PER_INCH is really: user space units per inch. (The PDF spec
> mentions that the user space unit is 1⁄72 inch)
>
> but what is MM_PER_INCH ? It is not millimeter per inch, that is 2.54.
>
> 1 / (10 * 2.54f) * POINTS_PER_INCH = 2.83. I wonder what this is - maybe
> the count of user space units per millimeter?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message