PDFBOX-2020: avoid NPE if there is no colorspaces resource

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1614459 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-2020: avoid NPE if there is no colorspaces resource

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1614466 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-2247: fixed encoding issue when extracting text by taking a char offset (FirtsChar-1) into account

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1614469 13f79535-47bb-0310-9956-ffa450edef68
PDFBOX-2247: don't add the offset but subtract it

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