Here's some code that shows the size in inches:
http://stackoverflow.com/a/12315820/535646
It is from the PrintImageLocations.java sample code.
Not sure what you mean with "relative" size.
Tilman
Am 27.03.2015 um 08:30 schrieb BUSSINGER Fabien:
Hi,
I’m unable to find the way to capture the size of an image in a
PDF with v1.8.8 of PDFBox.
I know how to get the real size like 3000px*2000px but I would like to
know the way to capture the document relative size. Like 3in*2in for
example.
I tried with extending the PDFStreamEngineclasse but the value
returned didn’t seem to be good.
Thanks for the responses
*Fabien BUSSINGER*
Projets « Elections »
BU DIGITAL PLATFORM
DOCAPOST Grands-Comptes /ETI
*Description : Description : Description : Description : Description :
T:\Costa\_Private\_DOCAPOST 2012\Chartes\LOGOS\DOCAPOST\LOGO
DOCAPOST.png* <http://www.docapost.com/>**
**
Les Vaisseaux – Bât C – Rue du Vallon – BP 49 – 06901 Sophia-Antipolis
Cedex
Tél. : +33 (0)4 93 95 76 42 – fabien.bussin...@docapost.fr
<mailto:fabien.bussin...@docapost.fr>
www.docapost.com <http://www.docapost.com/>
cid:image010.jpg@01D031C1.1061FA10
<https://twitter.com/Docapost>cid:image011.jpg@01D031C1.1061FA10
<https://www.youtube.com/user/docapostvideos>
DOCAPOST est une filiale du Groupe La Poste*//*
*/Adoptez l'éco-attitude/*/ : n'imprimez que si cela vous semble
vraiment nécessaire//./