Hi Francesco,

Thanks for your contribution. Patch committed as revision 1911.

Best regards,
 Dominik

On Sat, Apr 7, 2018 at 7:58 PM, Francesco Pretto <cez...@gmail.com> wrote:

> According to Pdf Reference 1.7, 3.8.4 Rectangles:
>
> "Note: Although rectangles are conventionally specified by their
> lower-left and upperright
> corners, it is acceptable to specify any two diagonally opposite corners.
> Applications
> that process PDF should be prepared to normalize such rectangles in
> situations
> where specific corners are required."
>
> PdfRect class defines a rectangle by lower-left point plus width/height.
> Normalization
> of coordinates from array of reals is currently not performed and will
> result in rectangles
> with negative width/height when x1 > x2 and/or y1 > y2, which appeared to
> happen in my test
> documents. The attached patch performs the required normalization by
> swapping coordinates
> in such cases.
>
>
> ---
>   src/base/PdfRect.cpp | 31 ++++++++++++++++++++++++++-----
>   1 file changed, 26 insertions(+), 5 deletions(-)
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to