mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
44 lines
2.5 KiB
Markdown
44 lines
2.5 KiB
Markdown
### File Viewer
|
|
|
|
The File Viewer has been created using the [ViewerComponent](https://alfresco.github.io/adf-component-catalog/components/ViewerComponent.html) from the ADF. The Viewer has four main areas:
|
|
|
|

|
|
|
|
#### Header & Toolbar (1)
|
|
The Header & Toolbar section of the viewer contains a number of features that relate to the file currently being displayed:
|
|
- Close 'X' will return the user to the folder that contains the file.
|
|
- The name and file type icon is shown in the middle.
|
|
- Next and previous buttons will be displayed either side of the file name so that users can navigate to other files in the folder without navigating away from the viewer.
|
|
- Finally, on the right hand side an actions toolbar provides users with the ability to download, favorite, move, copy, delete, manage versions and view info panel.
|
|
|
|
#### Content (2)
|
|
The File Viewer consists of four separate views that handle displaying the content based on four types of content, covering various [file/mime](https://alfresco.github.io/adf-component-catalog/components/ViewerComponent.html#supported-file-formats) types:
|
|
|
|
- Document View: PDFs are displayed in the application File Viewer, for other document types (DOCX etc) then a PDF rendition is automatically retrieved.
|
|
- Image View: JPEG, PNG, GIF, BMP and SVG images are natively displayed in the application File Viewer.
|
|
- Media View: MP4, MP3, WAV, OGG and WEBM files are played natively application File Viewer. The File Viewer will download, by default, 50MB of the content at a time to ensure a smooth playback of the content.
|
|
- Text View: TXT, XML, JS, HTML, JSON and TS files are natively displayed as text in the application File Viewer.
|
|
|
|
#### Thumbnails side pane (3)
|
|
The Document View includes a thumbnails pane which can be activated by a button in the Viewer Actions toolbar. Clicking on a thumbnail will take a user directly to the selected page and as users scroll through a document the current page is highlighted in the pane.
|
|
|
|
#### Viewer Controls (4)
|
|
At the bottom of the content the Viewer Controls allow users to interact with the content in various ways; the actions available are dependant on the type of content being displayed.
|
|
|
|
- Document View:
|
|
- Activate/Deactivate thumbnails pane
|
|
- Previous/Next page
|
|
- Jump to page number
|
|
- Zoom in/out
|
|
- Fit to page
|
|
- Image View:
|
|
- Zoom in/out
|
|
- Rotate left/right (does not alter content in the repository)
|
|
- Reset image
|
|
- Media View:
|
|
- Play/pause
|
|
- Timeline position
|
|
- Audio mute/unmute
|
|
- Audio volume
|
|
- Full screen
|