Add error message when a document is not opened while it should be
Add API to retrieve the version of the PDF secification of the document