Document Preview
This module allows you to preview various document formats, including PDFs, Microsoft Office files, and text files, directly on your website. It uses the Google Docs API to display these previews in either a simple box or a modal window.
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!