pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Image location
Date Fri, 03 Feb 2017 19:52:48 GMT
Hi,

The reason is that PDF y coordinates start at the bottom of the page, 
and not at the top as in java.

Tilman

Am 03.02.2017 um 20:49 schrieb genaro Camele:
>
> Hi! First of all sorry about my English.
>
> I would like to know if there's a way to get images location starting 
> from upper-left corner of the page. Because I'm trying with the 
> example from the SVN (link at the end of this mail) and it seems to be 
> starting from low-left corner. For instance, an image in the top of 
> the page outputs:
>
>
>
>
> When I would need to get
>
>
> *position in PDF = 15.0, 0.0 in user space units*
>
>
> Thanks in advance!
>
> https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/util/PrintImageLocations.java?view=log
>
>


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