[Poppler-bugs] [Bug 53159] Provide HiResBoundingBox or even ExactBoundingBox comment in EPS

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 6 07:24:53 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=53159

--- Comment #7 from Sven <sven.koehler at gmail.com> 2012-08-06 14:24:53 UTC ---
Found the code in PSOutputDev.cc:

    if (floor(x1) != ceil(x1) || floor(y1) != ceil(y1) ||
        floor(x2) != ceil(x2) || floor(y2) != ceil(y2)) {
      writePSFmt("%%HiResBoundingBox: {0:.6g} {1:.6g} {2:.6g} {3:.6g}\n",
                 x1, y1, x2, y2);
    }

First a small hint: floor(x1) != ceil(x1) is equivalent to floor(x1) != x1.
Second: the logic can still yield a HiResBoundingBox where all numbers are of
the form <int>.000000 unless you can exclude the float numbers differ from an
integer number by at least 5e-7. Not sure, whether the latter always holds.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list