PDFBOX-2101: added a clear method to be called to release all cached resources

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