

The File Preview tab on a product page: customers pick a file and see it right on the page.
Selling ebooks, templates, worksheets, spreadsheets, sheet music or courses? LayoutGlut adds a preview of your files to WooCommerce products, so customers can look inside before they buy.
Where previews show
[layoutglut_preview] shortcodeWhat can be previewed
Per product
A “File Preview” box on the product edit screen: pick the product’s downloadable files, a file from the media library (for example a free sample) or a link; label, order and switch each one on or off; show or hide previews for one product.
Admin
Good to know
The Google Docs viewer has to download the file from your site, so documents only preview on a site that is reachable from the internet, and only for files with a public URL (not files in the protected WooCommerce downloads folder — upload a sample to the media library instead). Images, video and audio work everywhere.
LayoutGlut Pro renders PDF (PDF.js), Word (DOCX) and Excel (XLSX, XLS, ODS, CSV) on your own site through signed, expiring links, works on local and private sites and with protected files, and adds preview limits for non-buyers with a buy box, watermarks, copy protection, buyer and role access rules, previews in My Account › Downloads and preview analytics.
This plugin uses the Google Docs Viewer (docs.google.com) to show PDF, Word, Excel, PowerPoint and text files in the free version.
https://docs.google.com/gview with the public URL of that preview file. Google then downloads the file from your site to display it. The visitor’s browser connects to Google, so Google receives the visitor’s IP address and browser details.