Module for preview documents in different formats: pdf, doc, docx, xls, xlsx, ppt, pptx, txt.

Based on Google Docs API. Provides custom field formatter with 2 view types:
- Simplebox
- Modal window

TUTORIAL:

1. Install this module
2. Create a new media type (for example "File")
3. Set "Document Preview Formatter" for File field
4. Create a custom block type, add filed of your media media type
5. Add formats for your field: pdf, doc, docx, xls, xlsx, ppt, pptx, txt
6. Done. Add your block to the page or Layout Builder

Important! Google Docs API doesn't work on local environments!

Project information

Releases