PDFBOX-1380: improved calculation of the Limits values based on a proposal by Dominic Tubach

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1454877 13f79535-47bb-0310-9956-ffa450edef68