Added try with resource for PDDocument.
Added try with resource for PreflightDocument.
Tidied Javadoc for static constant.
Added try with resource for InputStream.
Fixed boxing warning for Double.
Use try with resource in unit tests.