Better PDF parsing + documentviewer compliancy