Skip to main content
Version: Any 26

Preview

This flow configures the viewer that displays a content.

It applies to contents as well as to business objects (Case). A switch in the navigation bar moves from one configuration to the other. For contents, it covers the viewer of a format. For business objects, the viewer of an attachment.

An empty flow is not a mistake: contents and attachments are then displayed with the default viewer of the browser. Conversely, a branch ticked No preview removes the display: the content stays available for download, but can no longer be viewed.

In this flow, the format conditions bear on the format requested for display, not on all the formats of the object. This is what routes each format to the viewer able to read it, for instance PDF.js for PDF, Office Online for office formats and the browser for images.

Available actions​

Viewer: viewer used for the display. Only one per branch.

The list offers first the four built-in viewers described below, then the External viewer modules declared in the configuration.

Whichever built-in viewer is used, the attachments embedded in a PDF or in an e-mail are listed in the preview bar and open in the same place, with a way back to the parent document. An external viewer does not expose them.

Browser​

The file is handed over to the browser, which displays it with its own means. No third-party service is involved and the server does not need to be reachable from the internet.

Displayed formats: PDF and TXT, images (GIF, JPG, JPEG, PNG, WEBP), videos (MOV, MP4, OGV, WEBM), sounds (FLAC, MP3, OGA, OGG, WAV) and e-mails (EML, MSG), the latter being rendered by the message viewer of Any, which gives access to the attachments. Other formats have no preview.

This is the viewer used by default when the flow resolves no branch.

Office Online​

The file is displayed by the Office Online service of Microsoft, read-only.

Accepted formats: Word (DOC, DOCM, DOCX, DOT, DOTM, DOTX, ODT), Excel (XLS, XLSB, XLSM, XLSX, XLT, XLTM, XLTX, XLW, XLAM, ODS) and PowerPoint (POT, POTM, POTX, PPS, PPSM, PPSX, PPT, PPTM, PPTX, PPAM, ODP). If the requested format is not an office one and the download flow allows all formats, Any tries again with the primary format of the content. With no office format, the preview stays empty.

Office Online fetches the file through a download URL: the Any server must be reachable from the internet and the content goes through the infrastructure of Microsoft.

Adobe Online​

The file is displayed by the PDF Embed API of Adobe, fitted to the page width, with a side panel of thumbnails and bookmarks when the preview toolbar is visible. Download, printing and the annotation tools of Adobe are disabled there.

Only PDF is accepted: any other requested format stays without preview.

This viewer expects an Adobe API key entered in the client options, Adobe Document Services section. The domain name registered with Adobe must be reachable from the internet.

PDF.js​

The file is displayed by PDF.js, embedded in Any and served by the application server.

Only PDF is accepted: any other requested format stays without preview.

No external service is called and the document does not leave the installation, which makes it the viewer of closed environments. The PDF.js toolbar follows the language of the user.

External viewer​

An External viewer module delegates the display to a third-party viewer. Any no longer renders the document: it builds the URL of the viewer, injects the context of the content into it (identifier, format, file name, download URL) and an authentication ticket, then displays that URL.

As many modules as needed can be declared and routed by the conditions of the flow, each branch keeping only one.