This function is deprecated since PDFlib version 3, use PDF_get_value() with the parameter imagewidth instead.