So i'm trying to get image position in PDF with PHP and PDFlib pCos library.
I can list images and get image dimensions like:
$imgcount = $tet->pcos_get_number($doc, "length:pages[" . $page . "]/images");
for ($im = 0; $im < $imgcount; $im++) {
$width = $tet->pcos_get_number($doc, "pages[" . $page . "]/images[" . $im . "]/Width");
$height = $tet->pcos_get_number($doc, "pages[" . $page . "]/images[" . $im . "]/Height");
}
But how do i get image position?
Already tried paths like:
"pages[" . $page . "]/images[" . $im . "]/Box"
"pages[" . $page . "]/images[" . $im . "]/Box[0]"
"pages[" . $page . "]/images[" . $im . "]/Rect"
Nothing works.. and i have searched in web everywhere, checked also the PDF reference manual.. nothing there..
any suggestions?