only allow pdf point allocation when we're in a document and PDFJS isn't displayed