Introduction
The following routes are proxied to the configured PrizmDoc Server through PAS. More information about these routes, their work, and their responses can be found in the PrizmDoc Server API documentation.
Routes for document viewing
GET /License/ClientViewer
Routes key: GetClientViewerLicense
GET pas_base_url/License/ClientViewer
GET /Document/q/Attributes?DocumentID=u{viewingSessionId}
Routes key: GetDocumentAttributes
GET pas_base_url/Document/q/Attributes?DocumentID=uXYZ...
GET /Document/q/{startPage}-{endPage}/Text?DocumentID=u{viewingSessionId}
Routes key: GetPageText
GET pas_base_url/Page/q/0-1/Text?DocumentID=uXYZ...
GET /v2/viewingSessions/{viewingSessionId}/revisionData?limit={limit}&continueToken={continueToken}
Routes key: GetDocumentRevisionData
GET pas_base_url/v2/1234/revisionData?limit=50&continueToken=luMJZGIeGQr20veYl5JQwsv77iIvaFsvHAW4x1L88lmZwRo30ojTLjaT0J2D2f8D
GET /Page/q/{pageNumber}?DocumentID=u{viewingSessionId}
Routes key: GetPage
GET pas_base_url/Page/q/0?DocumentID=uXYZ...&ContentType=svga
GET /Page/q/{pageNumber}/Tile/{x}/{y}/{width}/{height}?DocumentID=u{viewingSessionId}
Routes key: GetPageTile
GET pas_base_url/Page/q/0/Tile/0/0/256/256?DocumentID=uXYZ...
GET /Page/q/{pageNumber}/Attributes?DocumentID=u{viewingSessionId}
Routes key: GetPageAttributes
GET pas_base_url/Page/q/0/Attributes?DocumentID=uXYZ...
GET /Page/q/{pageNumber}/{width}x{height}?DocumentID=u{viewingSessionId}
Routes key: GetThumbnail
GET pas_base_url/Page/q/0/200x200?DocumentID=uXYZ...
Routes related to the original document
POST /ViewingSession/u{viewingSessionId}/Replacement
Routes key: CreateViewingSessionReplacement
Replaces the existing viewing session with a new one. Useful for supplying passwords on password protected documents.
POST pas_base_url/ViewingSession/uXYZ.../Replacement
Content-Type: application/json
{
"password": "pdfPassword"
}
GET /ViewingSession/u{viewingSessionId}/SourceFile
Routes key: GetSourceFile
Downloads the original document that is being viewed.
GET pas_base_url/ViewingSession/uXYZ.../SourceFile
For legacy reasons, a second route is available for downloading the original document, as such:
GET /SaveDocument/q?DocumentID=u{viewingSessionId}
Note that this URL is only available with PrizmDoc Viewer Self-Hosted.
Routes key: SaveDocument
GET pas_base_url/SaveDocument/q?DocumentID=uXYZ...
NOTE: When downloading the document programmatically, it is suggested to use the ViewingSession
based API instead of the SaveDocument
legacy API.
GET /v2/viewingSessions/{ViewingSessionID}/sourceFile/original
Routes key: GetOriginalSourceFile
Downloads the "original" (as opposed to "revised") document that is being used for a comparison session.
GET pas_base_url/v2/viewingSessions/XYZ.../sourceFile/original
GET /v2/viewingSessions/{ViewingSessionID}/sourceFile/revised
Routes key: GetRevisedSourceFile
Downloads the "revised" document that is being used for a comparison session.
GET pas_base_url/v2/viewingSessions/XYZ.../sourceFile/revised
GET /ViewingSession/u{viewingSessionId}/Attachments
Routes key: GetAttachments
Gets information about the document attachments (such as ones available on an eml
or msg
file).
GET pas_base_url/ViewingSession/uXYZ.../Attachments
Routes for markup burning
POST /ViewingSession/u{viewingSessionId}/MarkupBurner
Routes key: CreateMarkupBurner
Creates a document burning task for the specific document in the viewing session.
POST pas_base_url/ViewingSession/uXYZ.../MarkupBurner
Content-Type: application/xml
<?xml version="1.0">...
GET /ViewingSession/u{viewingSessionId}/MarkupBurner/{markupBurnerId}
Routes key: PollMarkupBurner
Checks the status of the markup burning task.
GET pas_base_url/ViewingSession/uXYZ.../MarkupBurner/abcd
GET /ViewingSession/u{viewingSessionId}/MarkupBurner/{markupBurnerId}/Document
Routes key: GetBurnedDocument
Downloads the resulting burned-in document.
GET pas_base_url/ViewingSession/uXYZ.../MarkupBurner/abcd/Document