| 开发者 | softiconai |
|---|---|
| 更新时间 | 2026年12月4日 12:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
[softicon_document id="123"], in the Classic Editor, a widget, Elementor, Divi, Beaver Builder, WPBakery, Bricks or Oxygen (video).npm install and npm run build; the build copies the pdf.js files from node_modules/pdfjs-dist.
Yes. Go to Document Viewer → Add a document, pick the file, choose the settings and publish. The All Documents list and the block's Shortcode panel show its shortcode, such as [softicon_document id="123"]. Paste it in the Classic Editor, a widget, Elementor's Shortcode widget, a Code module in Divi, an HTML module in Beaver Builder, a Text Block in WPBakery or the Shortcode element in Bricks and Oxygen. Only published documents show. In a theme file use <?php echo do_shortcode( '[softicon_document id="123"]' ); ?>.
Watch it: Show documents in Elementor and the Classic Editor (0:53).
Yes. Under Spreadsheet in the block's settings, write the cells in Cells to show, the way Excel does: A1:F20, whole columns (A:F) or whole rows (5:40). Only those cells of the sheet shown first appear, with their own row numbers, and without the other sheets' tabs. Leave it empty for the whole sheet. Watch it: Show only part of an Excel sheet (0:47).
Yes. Web and email links open, a web link in a new tab, and a link to another page of the PDF (like a contents page) scrolls to that page. Only web, email and phone links are kept; any other kind a PDF can hold is left out. Visitors can also select the text and copy it. A scanned PDF (pictures of pages) has no text to select. Watch it: Make the links in your PDFs work (0:57).
Yes, in PDF, Word and PowerPoint files. The magnifier in the toolbar opens a search box; every result is marked, Enter goes to the next one and Shift+Enter back. Ctrl+F (Cmd+F on a Mac) after clicking in the viewer opens it too. A scanned PDF (pictures of pages, no text) has nothing to find. Turn the button off under Toolbar → Search button. Watch it: Search inside PDF and Word files (0:42).
Yes. Turn on Open in a lightbox under Lightbox in the block's settings. The page then shows only the file card with a button, and the document opens over the page when a visitor clicks it. Change the button's text under Button text; empty, it says View. Watch it: Open files in a lightbox (0:46).
Yes, short ones:
PDF, Word (DOCX), Excel (XLSX and XLS), PowerPoint (PPTX) and CSV. The older Word and PowerPoint formats (DOC, PPT) are not supported; save the file as DOCX or PPTX.
No. The plugin does not use Google Docs Viewer, Microsoft Office Online or any other outside service. Files from your Media Library are read from your own site. A file you link from another website is loaded from that website by the visitor's browser, the same way an image from another site would be.
The visitor's browser reads the file itself, so the other website has to allow that (a CORS header). Most do not. Upload the file to your Media Library instead; the block then shows a message and the Download button for such a file.
Text, headings, lists, tables, images, headers and footers come through well. Complex layouts (text boxes, SmartArt, charts, columns) may look different, and pages break only where the file says so. When the look matters, a PDF is the safer choice; the Download button gives visitors the original file either way.
Slides show one below the other with their text, bullets, shapes, pictures, tables and charts. Animations, transitions, videos and sounds do not play, and fonts the visitor does not have are replaced by similar ones. Pictures linked from other websites are left out, so nothing loads from outside your site. When the look matters, save the slides as a PDF; the Download button gives visitors the original file either way. Watch it: Show PowerPoint slides on your pages (0:51).
Files up to 50 MB open. A sheet shows up to 20,000 rows and 1,000 columns, and more rows appear as visitors scroll; the Download button gives them the whole file. A note under the table says when a sheet is bigger than that.
It is a block, so it works wherever the block editor does: block themes, classic themes and the Site Editor. For the Classic Editor and page builders, use a document's shortcode (see above).
The block cannot show a PDF, Word, Excel or PowerPoint file that needs a password. Save it without one, or leave the Download button on so visitors can open it on their device.
[softicon_document id="123"] in the Classic Editor, a widget or any page builder. Elementor's preview shows it too.