- Print
- DarkLight
- PDF
Viewing a document
This web service allows you to send a request to the server to obtain an embed link to the document viewer.
Identification is done by Constellio's token mechanics.
The following parameters can be passed during calls:
Description | Status | parameter |
---|---|---|
document | The identifier of the document. | Obligatory |
metadataCode | The metadata code that contains the content of the document. By default, put content. | Obligatory |
Example
Call
Answer
http://localhost:7070/constellio/VAADIN/themes/constellio/pdfjs/web/viewer.html?locale=fr&disableSignature=false&annotationsConfig=http%3A%2F%2Flocalhost%3A7070%2Fconstellio%2Fpdfjs%2FgetAnnotationsConfig%3Flocale%3Dfr%26serviceKey%3Dagent_admin%26token%3Ddac2fbe9-3635-11eb-8c29-df0134b862f2%26recordId%3D0000057898%26metadataCode%3Ddocument_default_content%26urlPrefix%3D.. %252F. %252F. %252F. %252F. &file=.. %2F.. %2F.. %2F.. %2F.. %2FgetRecordContent%3FrecordId%3D0000057898%26metadataCode%3Ddocument_default_content%26preview%3Dtrue%26serviceKey%3Dagent_admin%26token%3Ddac2fbe9-3635-11eb-8c29-df0134b862f2%26ts%3D1607091285321%26z-filename%3Dcontrat.docx.pdf