Linux 软件免费装
Banner图

SoftIcon Document Viewer – Embed PDF, Word & Excel Files

开发者 softiconai
更新时间 2026年11月11日 11:13
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

详情介绍:

SoftIcon Document Viewer adds a Document Viewer block to the block editor. Pick a PDF, Word (DOCX), Excel (XLSX, XLS) or CSV file from the Media Library, upload one, or paste a link. https://www.youtube.com/watch?v=d8Giuz5k7ig Privacy The plugin stores no data, 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. 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.

屏幕截图:

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

常见问题:

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.

Is there a video tutorial?

Yes: Every setting, explained (1:32). The Help panel in the block's settings links to it too.

Which files can it show?

PDF, Word (DOCX), Excel (XLSX and XLS) and CSV. The older Word format (DOC) is not supported; save the file as DOCX.

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.

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. There is no shortcode or page builder widget.

A file with a password does not open

The block cannot show a PDF, Word or Excel file that needs a password. Save it without one, or leave the Download button on so visitors can open it on their device.

更新日志:

1.1.0 1.0.3 1.0.2 1.0.1 1.0.0