Yes, it works well.
I forgot fill operators.

    public MyPDFStreamEngine () {
        addOperator(new Concatenate());
        addOperator(new DrawObject());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new SetMatrix());
    }


-----Original Message-----
From: Tilman Hausherr [mailto:[email protected]] 
Sent: Thursday, November 27, 2014 8:13 PM
To: [email protected]
Subject: Re: PDFBox migration 1.x to 2.0.0 - cant get image X and Y

I just tested and it works fine... Can you test it with a publicly available 
PDF and post the link?

Tilman

test with the PDF from PDFBOX-2513

Processing page: 1
*******************************************************************
Found image [Img1]
position = 73.92, 22.68001
size = 3760px, 60px
size = 0.12000000324655087, -0.11999999682108561 size = 
0.0016666667117576509in, -0.001666666622515078in size = 0.04233333447864433mm, 
-0.04233333221188298mm

*******************************************************************
Found image [Img2]
position = 447.36, 276.12
size = 384px, 32px
size = 0.12000000476837158, -0.11999999731779099 size = 
0.0016666667328940497in, -0.0016666666294137638in size = 0.04233333501550886mm, 
-0.042333332387109596mm

*******************************************************************
Found image [Img3]
position = 447.36, 290.76
size = 424px, 31px
size = 0.1200000025191397, -0.12000000092291063 size = 0.001666666701654718in, 
-0.0016666666794848699in size = 0.04233333422202984mm, -0.042333333658915694mm

*******************************************************************
Found image [Img4]
position = 52.8, 305.28
size = 3688px, 42px
size = 0.11999999933801349, -0.11999999909173874 size = 
0.0016666666574724097in, -0.001666666654051927in size = 0.042333333099799204mm, 
-0.042333333012918944mm

*******************************************************************
Found image [Img5]
position = 52.8, 319.92
size = 3792px, 42px
size = 0.12000000225340765, -0.11999999909173874 size = 
0.0016666666979639952in, -0.001666666654051927in size = 0.04233333412828547mm, 
-0.042333333012918944mm

*******************************************************************
Found image [Img6]
position = 52.8, 334.56
size = 3688px, 42px
size = 0.11999999933801349, -0.11999999909173874 size = 
0.0016666666574724097in, -0.001666666654051927in size = 0.042333333099799204mm, 
-0.042333333012918944mm

*******************************************************************
Found image [Img7]
position = 52.8, 348.96
size = 3808px, 44px
size = 0.11999999775606043, -0.12000000476837158 size = 
0.0016666666355008393in, -0.0016666667328940497in size = 
0.042333332541721315mm, -0.04233333501550886mm

*******************************************************************
Found image [Img8]
position = 52.8, 363.6
size = 3624px, 44px
size = 0.12000000134735445, -0.12000000476837158 size = 
0.0016666666853799228in, -0.0016666667328940497in size = 0.04233333380865004mm, 
-0.04233333501550886mm


Am 27.11.2014 um 19:41 schrieb Jaroslav Půbal:
> Hello,
> on page 
> https://svn.apache.org/repos/asf/pdfbox/trunk/examples/src/main/java/o
> rg/apache/pdfbox/examples/util/PrintImageLocations.java
> there is sample how to get image X and Y.
>
> In PDFBox 2.0.0 - X and Y is always zero.
>
> Please how to do it .. thanks.
>


Reply via email to