Could you post also the printf patch and the rational for this patch ? Bastien
On Wed, Jun 29, 2011 at 2:59 PM, Christoph Nodes <[email protected]> wrote: > On Wed, 29 Jun 2011 14:00:11 +0200 > Bastien ROUCARIES <[email protected]> wrote: > >> Thanks bug both in imagemagick and in ghostscript .... >> >> It seems that bounding box printing need a cast to int at least for >> the page. Need to read specs for other field. > > In fact, casting isn't necessary at all, at least for the printing of > the image columns and rows. The corresponding variables (structure > elements) are of integer type already. So I'd like to suggest the > appended patch to conquer the problem. It eliminates the casts > and replaces '%.20g' with '%zd' in the format string for the printing > of the image columns and rows. > > As the diff indicates, some numbers of the DSC comments BoundingBox, > Pages and Page are also printed with fractional parts. This might be a > similar problem. > > > Best regards, > Christoph -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

