{"id":69622,"date":"2017-06-03T01:43:31","date_gmt":"2017-06-03T01:43:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wonderplugin-pdf-embed\/"},"modified":"2026-02-18T05:29:42","modified_gmt":"2026-02-18T05:29:42","slug":"wonderplugin-pdf-embed","status":"publish","type":"plugin","link":"https:\/\/lt.wordpress.org\/plugins\/wonderplugin-pdf-embed\/","author":14714353,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.1","stable_tag":"trunk","tested":"6.9.4","requires":"3.6","requires_php":"","requires_plugins":null,"header_name":"Wonder PDF Embed","header_author":"Magic Hills Pty Ltd","header_description":"Embed PDF to your WordPress website","assets_banners_color":"4c632e","last_updated":"2026-02-18 05:29:42","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/","header_plugin_uri":"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/","header_author_uri":"https:\/\/www.wonderplugin.com","rating":4.5,"author_block_rating":0,"active_installs":9000,"downloads":156341,"num_ratings":13,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":2,"5":10},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1669953,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1670085,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[27003,141949,26896,147179,147180],"plugin_category":[],"plugin_contributors":[80509],"plugin_business_model":[],"class_list":["post-69622","plugin","type-plugin","status-publish","hentry","plugin_tags-pdf-embed","plugin_tags-pdf-lightbox","plugin_tags-pdf-viewer","plugin_tags-responsive-pdf-embed","plugin_tags-responsive-pdf-viewer","plugin_contributors-wonderplugin","plugin_committers-wonderplugin"],"banners":{"banner":"https:\/\/ps.w.org\/wonderplugin-pdf-embed\/assets\/banner-772x250.jpg?rev=1670085","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wonderplugin-pdf-embed\/assets\/icon-128x128.png?rev=1669953","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Wonder PDF Embed<\/strong><\/p>\n\n<p>WonderPlugin PDF Embed is a plugin to embed and display PDF files on your WordPres website by using Mozilla's PDF.js.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Easy to use<\/li>\n<li>Responsive PDF viewer<\/li>\n<li>Using <a href=\"https:\/\/mozilla.github.io\/pdf.js\/\">Mozilla's PDF.js<\/a><\/li>\n<li>Embed and display PDF files in WordPress posts or pages - <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#tutorial\">click to see the online demo<\/a>.<\/li>\n<li>Works with the premium plugin Wonder Lightbox to <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#lightbox\">open a PDF file in a lightbox popup<\/a><\/li>\n<li>Works with the premium plugin Wonder Carousel to create a <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#carousel\">PDF carousel<\/a><\/li>\n<li>Options to hide the download button, the print button and the text selection tool menu item in the PDF viewer toolbar. Please note: the options only use CSS and JavaScript code to hide the relative menu items\/buttons in the PDF.js viewer toolbar. It's NOT a DRM (Digital Rights Management) scheme to protect the PDF file. It does NOT stop experienced visitors from downloading, printing or copying text from the PDF file.<\/li>\n<\/ul>\n\n<p><strong>How to Use<\/strong><\/p>\n\n<p>You can use the following shortcode to embed a PDF file to WordPress posts or pages:<\/p>\n\n<p>[wonderplugin_pdf src=\"http:\/\/www.yourwordpresssite.com\/yourdoc.pdf\" width=\"100%\" height=\"600px\" style=\"border:0;\"]<\/p>\n\n<p><strong>PDF URL Requirements<\/strong><\/p>\n\n<ul>\n<li>The PDF file MUST be hosted on the SAME DOMAIN as the WordPress website.<\/li>\n<li>The PDF URL MUST be an absolute URL, that's, the URL must start with http:\/\/ or https:\/\/.<\/li>\n<li>Make sure there are no special characters in the PDF URL, for example, apostrophes, double quotes, accented letters etc.<\/li>\n<li>The PDF URL is defined with the src attribute.<\/li>\n<\/ul>\n\n<p><strong>Shortcode Attributes<\/strong><\/p>\n\n<ul>\n<li>You can use px or % for the width and height attributes, for example, 600px or 100%.<\/li>\n<li>By using % for the width attribute, the PDF viewer will be responsive.<\/li>\n<li>If you use 100% for the height attribute, make sure the container of the shortcode has a proper height value.<\/li>\n<li>You can use the style attribute to define the CSS style of the PDF viewer which is an iframe.<\/li>\n<\/ul>\n\n<p>For more information, please view the online tutorial: <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#tutorial\">https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#tutorial<\/a><\/p>\n\n<p><strong>Open a PDF file in a lightbox popup<\/strong><\/p>\n\n<p>Please view the online document: <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#lightbox\">https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#lightbox<\/a><\/p>\n\n<p><strong>Create a PDF carousel<\/strong><\/p>\n\n<p>Please view the online document: <a href=\"https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#carousel\">https:\/\/www.wonderplugin.com\/wordpress-pdf-embed\/#carousel<\/a><\/p>\n\n<!--section=installation-->\n<p><strong>Install the plugin in WordPress backend<\/strong><\/p>\n\n<ol>\n<li>In WordPress backend, go to menu Plugins -&gt; Add New<\/li>\n<li>Search Wonder PDF Embed<\/li>\n<li>Install the plugin<\/li>\n<\/ol>\n\n<p><strong>Install the plugin with downloaded plugin zip file<\/strong><\/p>\n\n<ol>\n<li>In WordPress backend, go to menu Plugins -&gt; Add New<\/li>\n<li>Click the link Upload Plugin<\/li>\n<li>Select the plugin zip file, then click Install Now<\/li>\n<\/ol>\n\n<p><strong>Uninstall the plugin<\/strong><\/p>\n\n<ol>\n<li>In WordPress backend, go to menu Plugins -&gt; Installed Plugins<\/li>\n<li>Deactivate the plugin<\/li>\n<li>After the plugin is deactivated, Delete the plugin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20the%20option%20%22hide%20the%20download%20button%22%2C%20%22hide%20the%20print%20button%22%20and%20%22hide%20the%20text%20selection%20tool%20menu%20item%22%20prevent%20people%20from%20downloading%2C%20%20printing%20or%20copying%20text%20from%20the%20pdf%20file%3F\"><h3>Do the option \"hide the download button\", \"hide the print button\" and \"hide the text selection tool menu item\" prevent people from downloading,  printing or copying text from the PDF file?<\/h3><\/dt>\n<dd><p>No.<\/p>\n\n<p>The options only use CSS and JavaScript code to hide the relative menu items\/buttons in the PDF.js viewer toolbar. It's NOT a DRM (Digital Rights Management) scheme to protect the PDF file. It does NOT stop experienced visitors from downloading, printing or copying text from the PDF file.<\/p><\/dd>\n<dt id=\"i%20received%20the%20error%20%22an%20error%20occurred%20while%20loading%20the%20pdf%22%20or%20%22missing%20pdf%20file%22\"><h3>I received the error \"An error occurred while loading the PDF\" or \"Missing PDF file\"<\/h3><\/dt>\n<dd><p>Please check your PDF URL and make sure it complies with the following requirements:<\/p>\n\n<ol>\n<li>The PDF file MUST be hosted on the SAME DOMAIN as the WordPress website.<\/li>\n<li>The PDF URL MUST be an absolute URL, that's, the URL must start with http:\/\/ or https:\/\/.<\/li>\n<li>Make sure there are no special characters in the PDF URL, for example, apostrophes, double quotes, accented letters etc.<\/li>\n<\/ol><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.1<\/h4>\n\n<p>Fix the cache issue when customizing the colors<\/p>\n\n<h4>3.0<\/h4>\n\n<p>Support customizing the colors for text highlight, and selected text highlight<\/p>\n\n<h4>2.9<\/h4>\n\n<p>Support customizing the colors for text selection<\/p>\n\n<h4>2.8<\/h4>\n\n<ul>\n<li>Change the PDF.js option isEvalSupported to false<\/li>\n<\/ul>\n\n<h4>2.7<\/h4>\n\n<ul>\n<li>Support Google Analytics<\/li>\n<\/ul>\n\n<h4>2.6<\/h4>\n\n<ul>\n<li>Support page, zoom, pagemode URL parameters<\/li>\n<\/ul>\n\n<h4>2.5<\/h4>\n\n<ul>\n<li>Fix a bug on setting the default PDF link target<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Add an option to specify the default PDF link target<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Change the PDF.js 2.0.493 folder name to the default name pdfjs to fix the possible cache issue<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Change PDF.js folder name to fix the cache issue after upgrading<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Fix the cache issue after upgrading PDF.js<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Add Mozilla PDF.js version 2.0.493 (dark theme toolbar) as an option<\/li>\n<\/ul>\n\n<h4>1.9<\/h4>\n\n<ul>\n<li>Update Mozilla PDF.js to the latest version 2.12.313<\/li>\n<li>NOTICE: The latest Mozilla PDF.js changes the viewer toolbar from dark to light color theme!<\/li>\n<\/ul>\n\n<h4>1.8<\/h4>\n\n<ul>\n<li>Support loading cross-domain PDF files by configuring remote server CORS policy<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Escape shortcode attributes<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Add an option to hide the whole toolbar<\/li>\n<li>Add an option to hide the Open File button in the toolbar<\/li>\n<li>Add an option to disable right click on the PDF viewer<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Add an option to hide the Document Properties menu item in the toolbar <\/li>\n<li>Enable the Hand Tool option when the Text Selection Tool menu is hidden<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Add an option to hide the Text Selection Tool menu item in the toolbar <\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Add information for the toolbar options<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Add two options to hide the Download and the Print button in the toolbar<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Update Mozilla PDF.js to the latest version 2.0.493<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version released<\/li>\n<\/ul>","raw_excerpt":"Embed PDF to your WordPress website by using Mozilla&#039;s PDF.js","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/69622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=69622"}],"author":[{"embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wonderplugin"}],"wp:attachment":[{"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=69622"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=69622"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=69622"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=69622"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=69622"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=69622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}