{"id":314,"date":"2026-06-23T19:14:43","date_gmt":"2026-06-23T19:14:43","guid":{"rendered":"https:\/\/documentlibrary.pro\/docs\/document-preview\/"},"modified":"2026-07-03T13:47:53","modified_gmt":"2026-07-03T13:47:53","slug":"document-preview","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/es\/docs\/document-preview\/","title":{"rendered":"Document preview"},"content":{"rendered":"<p>Document Library Pro lets visitors view a file before they download it, or instead of downloading it altogether. A preview button or icon appears alongside the download link for each supported document, and clicking it opens the file in a popup lightbox right on the page.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg\" alt=\"Enabling the preview button in the library settings\"\/><\/p>\n<p>If you have turned off the download link, the preview option appears on its own. This is handy when you want people to read a file online without saving a copy.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/document-preview-lightbox.jpg\" alt=\"Document preview lightbox opened from the preview button\"\/><\/p>\n<p><strong>Note:<\/strong> On the Advanced plan, if you allow public visitors to see protected documents, those visitors can view the protected items in the list but previews are disabled for them.<\/p>\n<h2 id=\"turning-previews-on\">Turning previews on<\/h2>\n<p>Previews are off by default. To enable them, open the settings and design page for your library and switch on the preview option. From the same place you can choose how the preview control looks and what it says.<\/p>\n<h3 id=\"preview-only-mode\">Preview-only mode (no download link)<\/h3>\n<p>You can let people view documents online without giving them a way to download. To do this, enable the preview and turn off the document link in your library settings. The preview button then appears on its own with no download link beside it.<\/p>\n<h3 id=\"preview-style\">Preview style<\/h3>\n<p>Choose how the preview control appears:<\/p>\n<ul>\n<li><strong>Button with text:<\/strong> a button containing your preview text.<\/li>\n<li><strong>Button with icon and text:<\/strong> a button with the preview text plus a magnifying glass icon.<\/li>\n<li><strong>Button with icon (the default):<\/strong> a button containing a magnifying glass icon only.<\/li>\n<li><strong>Icon only:<\/strong> a magnifying glass on its own, not inside a button.<\/li>\n<li><strong>Text link:<\/strong> a plain text link.<\/li>\n<\/ul>\n<h3 id=\"preview-text\">Preview text<\/h3>\n<p>If you choose a button or text style, you can set the wording that appears. The default is &#8220;Preview&#8221;. You can change it to anything you like, for example &#8220;Preview document online&#8221;.<\/p>\n<h2 id=\"supported-file-types\">Which file types are supported<\/h2>\n<p>The preview option is only available for these file types:<\/p>\n<ul>\n<li>PDF (pdf**)<\/li>\n<li>Images (jpeg, gif, png, webp, svg)<\/li>\n<li>Videos (mp4, ogg*)<\/li>\n<li>Audio (mp3, mp4, mpeg, ogg*, aac*, aacp*, flac*)<\/li>\n<li>Microsoft Word (doc, docx***)<\/li>\n<li>Microsoft Excel (xls, xlsx***)<\/li>\n<li>Microsoft PowerPoint (ppt, pptx***)<\/li>\n<\/ul>\n<p>For unsupported file types, no preview option appears in the list of documents.<\/p>\n<p><em>* These may need a browser plugin in certain browsers.<br \/>\n** Android and Firefox on macOS (Sequoia) do not allow previews and require the file to be downloaded.<br \/>\n*** Powered by the Microsoft Office 365 Online Viewer, see below.<\/em><\/p>\n<h3 id=\"word-excel-and-powerpoint-previews\">Word, Excel and PowerPoint previews<\/h3>\n<p>Previews of Word, Excel and PowerPoint files are powered by the Microsoft Office 365 Online Viewer. It looks identical to the viewer used for other file types, but there are a few things to be aware of:<\/p>\n<ul>\n<li><strong>Privacy:<\/strong> for the preview to work, the document is temporarily uploaded to Microsoft&#8217;s servers for viewing. If you have GDPR concerns, we recommend mentioning this in your privacy and cookies policy and adding measures such as a cookie notice to get consent from your visitors.<\/li>\n<li><strong>Maximum file size:<\/strong> the Office 365 Online Viewer has a size limit of 25MB for Excel, 100MB for Word and 300MB for PowerPoint. The preview icon is hidden for files that exceed these limits, so a preview never appears broken for your visitors.<\/li>\n<\/ul>\n<h3 id=\"previews-for-externally-hosted-files\">Previews for externally hosted files<\/h3>\n<p>You can preview files that you have uploaded to your library and files that you have added by URL. Files stored on Dropbox should use one of these URL formats:<\/p>\n<ul>\n<li><em>https:\/\/dropbox.com\/&lt;rest_of_url&gt; or www.dropbox.com\/&lt;rest_of_url&gt;<\/em>, which open the file in the Dropbox web app.<\/li>\n<li><em>https:\/\/dl.dropbox.com\/&lt;rest_of_url&gt; or dl.dropboxusercontent.com\/&lt;rest_of_url&gt;<\/em>, which are direct links to the file.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.<\/p>","protected":false},"menu_order":0,"template":"","meta":{"footnotes":""},"doc_category":[4],"class_list":["post-314","doc","type-doc","status-publish","hentry","doc_category-building-your-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Document preview<\/title>\n<meta name=\"description\" content=\"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/documentlibrary.pro\/es\/docs\/document-preview\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Document preview\" \/>\n<meta property=\"og:description\" content=\"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/es\/docs\/document-preview\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T13:47:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/\",\"name\":\"Document preview\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/download-link-style-preview-settings.jpg\",\"datePublished\":\"2026-06-23T19:14:43+00:00\",\"dateModified\":\"2026-07-03T13:47:53+00:00\",\"description\":\"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/#breadcrumb\"},\"inLanguage\":\"es-ES\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es-ES\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/#primaryimage\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/download-link-style-preview-settings.jpg\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/download-link-style-preview-settings.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-preview\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Document preview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"name\":\"Document Library Pro\",\"description\":\"Searchable document libraries for any website\",\"publisher\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/documentlibrary.pro\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es-ES\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es-ES\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Document Library Pro\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"description\":\"Document Library Pro is hosted document library software that lets you publish searchable, filterable libraries of PDFs, documents and resources on any website or platform.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Document preview","description":"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/documentlibrary.pro\/es\/docs\/document-preview\/","og_locale":"es_ES","og_type":"article","og_title":"Document preview","og_description":"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.","og_url":"https:\/\/documentlibrary.pro\/es\/docs\/document-preview\/","og_site_name":"Document Library Pro","article_modified_time":"2026-07-03T13:47:53+00:00","og_image":[{"url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/","url":"https:\/\/documentlibrary.pro\/docs\/document-preview\/","name":"Document preview","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/#primaryimage"},"image":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/#primaryimage"},"thumbnailUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg","datePublished":"2026-06-23T19:14:43+00:00","dateModified":"2026-07-03T13:47:53+00:00","description":"Let visitors view files in a popup lightbox before or instead of downloading, with a choice of preview button or icon styles.","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/#breadcrumb"},"inLanguage":"es-ES","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/document-preview\/"]}]},{"@type":"ImageObject","inLanguage":"es-ES","@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/#primaryimage","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/download-link-style-preview-settings.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/document-preview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/documentlibrary.pro\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/documentlibrary.pro\/docs\/"},{"@type":"ListItem","position":3,"name":"Document preview"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Bibliotecas de documentos con b\u00fasqueda para cualquier sitio web","publisher":{"@id":"https:\/\/documentlibrary.pro\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/documentlibrary.pro\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es-ES"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"es-ES","@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","width":512,"height":512,"caption":"Document Library Pro"},"image":{"@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/"},"description":"Document Library Pro es un software de biblioteca de documentos alojada que le permite publicar bibliotecas con b\u00fasqueda y filtros de PDF, documentos y recursos en cualquier sitio web o plataforma."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":1,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/314\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc\/314\/revisions\/587"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/media?parent=314"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/es\/wp-json\/wp\/v2\/doc_category?post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}