precision of dimension using identify
Posted: 2007-01-03T07:45:46-07:00
Hi,
we are using identify to retrieve the dimension of pdf files and the precision is not exact enough for us.
the command we are using is "identify -format %w#%h"
In the source code of "icoders/pdf.c" i found that you will round the values.
So my question is it possible to retrieve somehow the original values without rounding them ? Or possible to retrieve the bounds ?
Any help would be welcome
Markus
we are using identify to retrieve the dimension of pdf files and the precision is not exact enough for us.
the command we are using is "identify -format %w#%h"
In the source code of "icoders/pdf.c" i found that you will round the values.
Code: Select all
/*
Set PDF render geometry.
*/
page.width=(unsigned long) (bounds.x2-bounds.x1+0.5);
page.height=(unsigned long) (bounds.y2-bounds.y1+0.5);
Any help would be welcome
Markus