Document Viewer
Note: This feature requires a paid plan.
Filestack offers a way to preview files in the browser, combining our processing engine with a custom solution built on Mozilla’s PDF.js.
Supported file types:
- PDF files (PDF)
- Powerpoint files (PPT, PPTX)
- Excel files (XLS, XLSX)
- Word files (DOC, DOCX)
- ODF word processing documents (ODT)
- ODF presentation documents (ODP)
- Image files (gif, tiff, jpg, jpeg, png)
- HTML files
- Plain text files
- Adobe Illustrator and Adobe Photoshop files (AI, PSD)
Any file that is a PDF or supports being converted into a PDF can be previewed by using the preview processing task in the file URL:
https://cdn.filestackcontent.com
/preview/HANDLE
This URL can be embedded in your page as a HTML iframe element, and our JavaScript client provides a convenient preview method to generate and embed these URLs.
For example:
<iframe style="width:100%;height:600px;"
src="https://cdn.filestackcontent.com/preview/SGe380ViQ7W8efiX6sdG">
</iframe>
Document Slider
Filestack also offers a way to preview files in the browser in a slide view. Any file that is a PDF or supports being converted into a PDF can be previewed by using our slide Processing API task:
https://cdn.filestackcontent.com
/slide/HANDLE
You can pass in a solitary Filestack handle or an array of handles to be merged into one PDF document. This URL can be also embedded in your page as an HTML iframe element.
Note: This only works with Filestack handles.
PARAMETER | VALUE | DESCRIPTION |
---|---|---|
theme (t) | string bright | Theme type to use. Available options are: bright or dark. |
engine (e) | string poppler | Conversion engine to use. Available options are: poppler or mupdf. Results and performance may vary for each as they use different graphic libraries. |
Example
<iframe style="width:100%;height:600px;"
src="https://cdn.filestackcontent.com/slide/HANDLE">
</iframe>