{"id":401086,"date":"2026-11-09T08:29:32","date_gmt":"2026-11-09T08:29:32","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/softicon-document-viewer\/"},"modified":"2026-11-09T17:28:54","modified_gmt":"2026-11-09T17:28:54","slug":"softicon-document-viewer","status":"publish","type":"plugin","link":"https:\/\/ru.wordpress.org\/plugins\/softicon-document-viewer\/","author":23588681,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.4","requires":"6.5","requires_php":"7.4","requires_plugins":null,"header_name":"SoftIcon Document Viewer \u2013 Embed PDF, Word & Excel Files","header_author":"softiconai","header_description":"A block that shows PDF, Word, Excel and CSV files right on the page. The files open in the visitor's browser, no Google or Microsoft viewer needed.","assets_banners_color":"6f799c","last_updated":"2026-11-09 17:28:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/softiconai\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":102,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"softiconai","date":"2026-11-09 08:29:02","revision":3792041},"1.0.1":{"tag":"1.0.1","author":"softiconai","date":"2026-11-09 17:28:54","revision":3792951}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3792041,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3792041,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3792041,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3792041,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"softicon\/document-viewer":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"softicon\/document-viewer","version":"1.0.1","title":"Document Viewer","category":"media","description":"Show a PDF, Word, Excel or CSV file on the page. It opens in the visitor's browser, no outside viewer.","keywords":["document","pdf","word","excel","docx","xlsx","csv","spreadsheet"],"textdomain":"softicon-document-viewer","attributes":{"fileId":{"type":"number","default":0},"fileUrl":{"type":"string","default":""},"fileName":{"type":"string","default":""},"showDownload":{"type":"boolean","default":true},"showFullscreen":{"type":"boolean","default":true},"showZoom":{"type":"boolean","default":true},"maxHeight":{"type":"string","default":""},"headerRow":{"type":"boolean","default":true},"firstSheet":{"type":"string","default":""},"bgColor":{"type":"string","default":""},"borderColor":{"type":"string","default":""},"toolbarBg":{"type":"string","default":""},"toolbarColor":{"type":"string","default":""},"headBg":{"type":"string","default":""},"headColor":{"type":"string","default":""}},"supports":{"html":false,"align":["wide","full"]},"example":{"attributes":{"fileUrl":"annual-report.docx","fileName":"Annual report.docx"}},"editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","viewScript":"file:.\/view.js","render":"file:.\/render.php"}},"tagged_versions":["1.0.0","1.0.1"],"block_files":["\/tags\/1.0.1\/build\/index.js","\/tags\/1.0.1\/build\/index.css","\/tags\/1.0.1\/build\/style-index.css","\/tags\/1.0.1\/src\/index.js","\/tags\/1.0.1\/src\/index.css","\/tags\/1.0.1\/src\/style-index.css"],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3792041,"resolution":"1","location":"assets","locale":"","width":1380,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3792041,"resolution":"2","location":"assets","locale":"","width":1380,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3792041,"resolution":"3","location":"assets","locale":"","width":1380,"height":900},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3792041,"resolution":"4","location":"assets","locale":"","width":1400,"height":900},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3792041,"resolution":"5","location":"assets","locale":"","width":1400,"height":1000},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3792041,"resolution":"6","location":"assets","locale":"","width":1440,"height":900},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3792041,"resolution":"7","location":"assets","locale":"","width":1440,"height":900}},"screenshots":{"1":"A PDF on the page. The toolbar with zoom, the page number, fullscreen and Download stays in view while you scroll.","2":"A Word file as real, searchable text, with its headings, lists, tables, images, headers and footers.","3":"An Excel file with sheet tabs, Excel's number and date formats, and a header row and row numbers that stay in view.","4":"On phones: PDF pages fit the screen, Word text flows to the screen width, and tables scroll sideways.","5":"Fullscreen, here with the PDF zoomed in.","6":"The live preview in the block editor, with the spreadsheet settings.","7":"A fixed height: the document scrolls inside the block."}},"plugin_section":[172757],"plugin_tags":[1220,2184,291600,125982,291601],"plugin_category":[],"plugin_contributors":[287127],"plugin_business_model":[],"class_list":["post-401086","plugin","type-plugin","status-publish","hentry","plugin_section-block","plugin_tags-block","plugin_tags-document-viewer","plugin_tags-docx-viewer","plugin_tags-embed-document","plugin_tags-excel-viewer","plugin_contributors-softiconai","plugin_committers-softiconai"],"banners":{"banner":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/banner-772x250.png?rev=3792041","banner_2x":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/banner-1544x500.png?rev=3792041","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/icon-128x128.png?rev=3792041","icon_2x":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/icon-256x256.png?rev=3792041","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-1.png?rev=3792041","caption":"A PDF on the page. The toolbar with zoom, the page number, fullscreen and Download stays in view while you scroll."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-2.png?rev=3792041","caption":"A Word file as real, searchable text, with its headings, lists, tables, images, headers and footers."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-3.png?rev=3792041","caption":"An Excel file with sheet tabs, Excel's number and date formats, and a header row and row numbers that stay in view."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-4.png?rev=3792041","caption":"On phones: PDF pages fit the screen, Word text flows to the screen width, and tables scroll sideways."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-5.png?rev=3792041","caption":"Fullscreen, here with the PDF zoomed in."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-6.png?rev=3792041","caption":"The live preview in the block editor, with the spreadsheet settings."},{"src":"https:\/\/ps.w.org\/softicon-document-viewer\/assets\/screenshot-7.png?rev=3792041","caption":"A fixed height: the document scrolls inside the block."}],"raw_content":"<!--section=description-->\n<p><strong>SoftIcon Document Viewer<\/strong> adds a <strong>Document Viewer<\/strong> 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.<\/p>\n\n<ul>\n<li><strong>PDF in the page<\/strong> \u2013 the pages show one below the other, sharp on phones and retina screens. Only the pages near the screen are drawn, and only the parts of the file they need are downloaded, so long PDFs open fast.<\/li>\n<li><strong>Word as real text<\/strong> \u2013 a DOCX file becomes real HTML with its headings, lists, tables, images, headers and footers, so visitors can search it and screen readers can read it. On a computer it looks like Word's pages; on a phone the text flows to the screen width so it stays readable.<\/li>\n<li><strong>Excel that looks like Excel<\/strong> \u2013 XLSX and XLS files show with their sheet tabs, number, currency, percent and date formats, merged cells and links. Only the used cells are shown, and the header row and row numbers stay in view while visitors scroll. Choose which sheet opens first.<\/li>\n<li><strong>CSV as a table<\/strong> \u2013 the first row is the header (or turn that off), and values stay exactly as written, so codes like 00123 keep their zeros.<\/li>\n<li><strong>Toolbar<\/strong> \u2013 zoom for PDF and Word, the page number for PDF, fullscreen for every file, and the Download button. Every button works with the keyboard and screen readers; turn the ones you do not need off.<\/li>\n<li><strong>Your size, your colors<\/strong> \u2013 the whole document grows with the page, or it scrolls inside a box of the height you set. Wide and full width are supported. Pick the background, border, toolbar and table header colors.<\/li>\n<li><strong>Live preview<\/strong> \u2013 the block editor shows the real file, not a placeholder.<\/li>\n<li><strong>No outside viewer<\/strong> \u2013 nothing is sent to Google or Microsoft, so it works on intranets, local sites and members-only sites.<\/li>\n<li><strong>No cookies, no tracking<\/strong> \u2013 the plugin sends nothing anywhere.<\/li>\n<li><strong>Loads only where it is used<\/strong> \u2013 the viewer's code loads only on pages with the block, and only the part for that kind of file, when the block comes near the screen.<\/li>\n<\/ul>\n\n<h4>Privacy<\/h4>\n\n<p>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.<\/p>\n\n<h4>Third-party libraries<\/h4>\n\n<ul>\n<li><p>PDF.js 6.5.438 (npm package pdfjs-dist) by Mozilla \u2013 <a href=\"https:\/\/github.com\/mozilla\/pdf.js\">github.com\/mozilla\/pdf.js<\/a> \u2013 Apache License 2.0. Bundled as build\/pdfjs.js and build\/pdfjs\/pdf.worker.min.js (minified upstream build); license in build\/pdfjs\/LICENSE.txt.\nAlso from the pdfjs-dist package: the JavaScript builds of the OpenJPEG (BSD-2) and JBIG2 (BSD-3) image decoders in build\/pdfjs\/decoders, the Foxit (BSD-3) and Liberation (GPLv2 with font exception) standard fonts in build\/pdfjs\/standard_fonts, and the Adobe CMaps (BSD-3) in build\/pdfjs\/cmaps, each with its license file. The fonts and CMaps are binary data files; the build stores each one unchanged as a base64 string in a .json file, which the plugin decodes back to the original bytes for pdf.js.<\/p><\/li>\n<li><p>docx-preview 0.4.1 (npm package docx-preview) by Volodymyr Baydalka \u2013 <a href=\"https:\/\/github.com\/VolodymyrBaydalka\/docxjs\">github.com\/VolodymyrBaydalka\/docxjs<\/a> \u2013 Apache License 2.0. Bundled in build\/docx-preview.js; license in build\/docx-preview-LICENSE.txt.<\/p><\/li>\n<li><p>JSZip 3.10.2 (npm package jszip) by Stuart Knightley \u2013 <a href=\"https:\/\/github.com\/Stuk\/jszip\">github.com\/Stuk\/jszip<\/a> \u2013 MIT License or GPLv3 (used here under the MIT License). Bundled in build\/docx-preview.js, it opens the DOCX file (a zip archive); license in build\/jszip-LICENSE.txt.<\/p><\/li>\n<li><p>SheetJS Community Edition 0.20.3 (package xlsx) by SheetJS LLC \u2013 <a href=\"https:\/\/sheetjs.com\/\">sheetjs.com<\/a> \/ <a href=\"https:\/\/git.sheetjs.com\/sheetjs\/sheetjs\">git.sheetjs.com\/sheetjs\/sheetjs<\/a> \u2013 Apache License 2.0. Bundled in build\/xlsx.js; license in build\/xlsx-LICENSE.txt. Installed from the official SheetJS tarball (cdn.sheetjs.com\/xlsx-0.20.3\/xlsx-0.20.3.tgz, as SheetJS recommends), not from the older npm release.<\/p><\/li>\n<\/ul>\n\n<p>The unminified source of this plugin is in the src folder, with package.json and webpack.config.js. Build it with <code>npm install<\/code> and <code>npm run build<\/code>; the build copies the pdf.js files from node_modules\/pdfjs-dist.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from Plugins \u2192 Add New, or upload the zip.<\/li>\n<li>Activate it.<\/li>\n<li>In the block editor, add the <strong>Document Viewer<\/strong> block and pick a file.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20files%20can%20it%20show%3F\"><h3>Which files can it show?<\/h3><\/dt>\n<dd><p>PDF, Word (DOCX), Excel (XLSX and XLS) and CSV. The older Word format (DOC) is not supported; save the file as DOCX.<\/p><\/dd>\n<dt id=\"does%20it%20send%20my%20files%20anywhere%3F\"><h3>Does it send my files anywhere?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"a%20file%20from%20another%20website%20does%20not%20open\"><h3>A file from another website does not open<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"does%20a%20word%20file%20look%20exactly%20like%20in%20word%3F\"><h3>Does a Word file look exactly like in Word?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"how%20big%20can%20a%20spreadsheet%20be%3F\"><h3>How big can a spreadsheet be?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20my%20theme%20and%20page%20builder%3F\"><h3>Does it work with my theme and page builder?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"a%20file%20with%20a%20password%20does%20not%20open\"><h3>A file with a password does not open<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>The plugin's full name: SoftIcon Document Viewer \u2013 Embed PDF, Word &amp; Excel Files.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release: PDF, Word (DOCX), Excel (XLSX, XLS) and CSV viewer block with live preview, toolbar (zoom, page number, fullscreen, download), fixed or automatic height and colors.<\/li>\n<\/ul>","raw_excerpt":"Show PDF, Word, Excel and CSV files on your pages with a block. The files open in the visitor's browser, no Google or Microsoft viewer needed.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/401086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=401086"}],"author":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/softiconai"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=401086"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=401086"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=401086"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=401086"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=401086"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=401086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}