Linux 软件免费装
Banner图

SoftIcon Document Viewer – Embed PDF, Word & Excel Files

开发者 softiconai
更新时间 2026年12月4日 12:41
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

block document viewer embed document docx viewer excel viewer

下载

1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.5.0 1.6.0 1.6.1

详情介绍:

SoftIcon Document Viewer adds a Document Viewer block to the block editor. Pick a PDF, Word (DOCX), Excel (XLSX, XLS), PowerPoint (PPTX) or CSV file from the Media Library, upload one, or paste a link. https://www.youtube.com/watch?v=d8Giuz5k7ig Privacy The plugin stores nothing about visitors, sets no cookies and contacts no outside service. Your files are read by the visitor's browser straight from your site. If you link a file on another website, the visitor's browser loads it from there. In the admin, the dashboard's videos load from YouTube (youtube-nocookie.com) only when you click one, and one option remembers your answer to the review request; it is removed when you delete the plugin. Third-party libraries The unminified source of this plugin is in the src folder, with package.json and webpack.config.js. Build it with npm install and npm run build; the build copies the pdf.js files from node_modules/pdfjs-dist.

安装:

  1. Install the plugin from Plugins → Add New, or upload the zip.
  2. Activate it.
  3. In the block editor, add the Document Viewer block and pick a file.
  4. Classic Editor or a page builder: go to Document Viewer → Add a document, pick the file, publish, and paste its shortcode where the file goes.

屏幕截图:

  • A Word file as real, searchable text, with its headings, lists, tables, images, headers and footers.
  • An Excel file with sheet tabs, Excel's number and date formats, and a header row and row numbers that stay in view.
  • On phones: PDF pages fit the screen, Word text flows to the screen width, and tables scroll sideways.
  • Fullscreen, here with the PDF zoomed in.
  • The live preview in the block editor, with the spreadsheet settings.
  • A fixed height: the document scrolls inside the block.

常见问题:

Does it work with the Classic Editor or page builders?

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).

Can I show only part of a spreadsheet?

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).

Do the links inside a PDF work?

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).

Can visitors search inside a document?

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).

Can the document open in a popup?

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).

Is there a video tutorial?

Yes, short ones:

The Spreadsheet, Lightbox, Toolbar and Shortcode panels in the block's settings link to their own video (the File panel too, for a PowerPoint file), and the Document Viewer dashboard plays them all.

Which files can it show?

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.

Does it send my files anywhere?

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.

A file from another website does not open

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.

Does a Word file look exactly like in Word?

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.

Does a PowerPoint file look exactly like in PowerPoint?

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).

How big can a spreadsheet be?

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.

Does it work with my theme and page builder?

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).

A file with a password does not open

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.

更新日志:

1.6.1 1.6.0 1.5.1 1.5.0 1.4.1 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0