{"id":28129,"date":"2020-11-23T15:10:53","date_gmt":"2020-11-23T15:10:53","guid":{"rendered":"https:\/\/rarathemes.com\/blog\/?p=28129"},"modified":"2021-12-30T17:17:00","modified_gmt":"2021-12-30T11:32:00","slug":"embed-pdf-wordpress","status":"publish","type":"post","link":"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/","title":{"rendered":"How to Embed a PDF in WordPress"},"content":{"rendered":"\n<p>People worldwide use PDF because it is durable, preserves file format, and is very secure. Moreover, it uses less space and delivers a large amount of content. So, popularity is evident!&nbsp;<\/p>\n\n\n\n<p>However, adding a PDF file to your WordPress page or post is not as easy.&nbsp;<\/p>\n\n\n\n<p>Other media files, like images, videos, audio files, and more, are effortless to include. Unfortunately, you cannot add a PDF file to your site the same way.<\/p>\n\n\n\n<p>Just because <a class=\"rank-math-link\" href=\"https:\/\/rarathemes.com\/blog\/wordpress-features\/\">WordPress does not feature<\/a> a built-in feature to embed PDF files does not mean it\u2019s not possible. With the right tool, it\u2019s just a piece of cake!<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title ez-toc-toggle\" style=\"cursor:pointer\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Methods\" >Methods<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Embed_a_PDF_in_WordPress_With_a_Plugin\" >Embed a PDF in WordPress With a Plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Step_1_Install_the_PDF_Embedder_Plugin\" >Step 1: Install the PDF Embedder Plugin.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Step_2_Configure_Plugin_Settings\" >Step 2: Configure Plugin Settings.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Step_3_Embed_the_PDF_into_your_WordPress_page_or_post\" >Step 3: Embed the PDF into your WordPress page or post.<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Embed_a_PDF_File_in_WordPress_Without_a_Plugin\" >Embed a PDF File in WordPress Without a Plugin&nbsp;<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rarathemes.com\/blog\/embed-pdf-wordpress\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Methods\"><\/span>Methods<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Here, I introduce you to two different ways to embed PDF to your WordPress.&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Embedding a PDF File into WordPress with a Plugin<\/li><li>Embedding a PDF File without a Plugin<\/li><\/ol>\n\n\n\n<p>Both ways are quick, easy, and will help you embed a PDF file in WordPress.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Embed_a_PDF_in_WordPress_With_a_Plugin\"><\/span>Embed a PDF in WordPress With a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The quickest way to embed a PDF into a <a href=\"https:\/\/rarathemes.com\/blog\/duplicate-wordpress-post-or-page\/\" class=\"rank-math-link\">WordPress post<\/a> is by using a plugin. This method saves time and lets you customize the looks of your PDF all at once.&nbsp;<\/p>\n\n\n\n<p>Here is how to embed a PDF file in WordPress with a plugin in three steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download and Install the PDF embedder plugin.<\/li><li>Configure plugin settings.<\/li><li>Embed the PDF into your WordPress page or post.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Install_the_PDF_Embedder_Plugin\"><\/span>Step 1: Install the PDF Embedder Plugin.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You can choose from various PDF plugins. But I suggest <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/pdf-embedder\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">PDF Embedder.<\/a>&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"450\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/1.-PDF-embed.jpg\" alt=\"PDF embed\" class=\"wp-image-28130\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/1.-PDF-embed.jpg 730w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/1.-PDF-embed-300x185.jpg 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/1.-PDF-embed-97x60.jpg 97w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p>With over 200,000 active installations, this plugin is the best there is. With this plugin, uploading and embedding PDF files in WordPress is effortless. It uses JavaScript to embed PDF files eliminating the need for third-party apps and <a href=\"https:\/\/rarathemes.com\/blog\/wordpress-iframes\/\" class=\"rank-math-link\">iframes<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the plugins and select \u2018Add New Option.\u2019<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"269\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/01\/add-new-plugin-from-dashboard.png\" alt=\"add new plugin from dashboard\" class=\"wp-image-31787\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/01\/add-new-plugin-from-dashboard.png 665w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/01\/add-new-plugin-from-dashboard-300x121.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/01\/add-new-plugin-from-dashboard-148x60.png 148w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Search for \u2018PDF Embedder.\u2019<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the \u2018Install Now\u2019 button followed by \u2018Activate.\u2019<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"339\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Search-for-pdf-embedder.png\" alt=\"Install and Activate PDF Embedder\" class=\"wp-image-31805\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Search-for-pdf-embedder.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Search-for-pdf-embedder-300x145.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Search-for-pdf-embedder-124x60.png 124w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Or,<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Download the plugin from the <a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\" href=\"https:\/\/wordpress.org\/plugins\/\" target=\"_blank\">WordPress directory.<\/a><\/li><li>Go to plugins and select \u2018Add New.\u2019<\/li><li>Select \u2018upload plugin\u2019 and choose \u2018File.\u2019<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Configure_Plugin_Settings\"><\/span>Step 2: Configure Plugin Settings.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>After installing the plugin, the next step is to configure plugin settings. It ensures your PDF file appears just the way you want it to.<\/p>\n\n\n\n<p>Go to settings and select the \u2018PDF Embedder\u2019 option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"324\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Configure-PDF-Embedder-Plugin-Settings-.png\" alt=\"Configure PDF Embedder Plugin Settings\" class=\"wp-image-31807\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Configure-PDF-Embedder-Plugin-Settings-.png 658w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Configure-PDF-Embedder-Plugin-Settings--300x148.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Configure-PDF-Embedder-Plugin-Settings--122x60.png 122w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/figure>\n\n\n\n<p>Under the default viewer setting, you get several options. As per your needs, either choose to locate your PDF viewer toolbar upon hovering or keep it visible all the time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"492\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/PDF-Embedder-Setup.png\" alt=\"PDF Embedder Setup\" class=\"wp-image-31809\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/PDF-Embedder-Setup.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/PDF-Embedder-Setup-300x211.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/PDF-Embedder-Setup-85x60.png 85w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Once you are satisfied with the customization settings, save your changes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Embed_the_PDF_into_your_WordPress_page_or_post\"><\/span>Step 3: Embed the PDF into your WordPress page or post.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Now to embed the PDF into your WordPress, go to pages you wish to add PDF file.<\/p>\n\n\n\n<p>Click the \u2018Add\u2019 icon on the top left corner and go to PDF Embedder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"660\" height=\"444\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Add-pdf-in-post.png\" alt=\"Add pdf in post\" class=\"wp-image-31811\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Add-pdf-in-post.png 660w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Add-pdf-in-post-300x202.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Add-pdf-in-post-89x60.png 89w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/figure>\n\n\n\n<p>Then select the pdf file to upload.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"365\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/upload-pdf-file.png\" alt=\"upload pdf file in post\" class=\"wp-image-31813\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/upload-pdf-file.png 631w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/upload-pdf-file-300x174.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/upload-pdf-file-104x60.png 104w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n\n\n\n<p>Once the file is uploaded, you can preview the changes to check how it appears on the front end of your site.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"358\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/preview-embeded-file.png\" alt=\"preview embedded file\" class=\"wp-image-31816\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/preview-embeded-file.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/preview-embeded-file-300x153.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/preview-embeded-file-117x60.png 117w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Once you are happy with your PDF, save and publish your changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Embed_a_PDF_File_in_WordPress_Without_a_Plugin\"><\/span>Embed a PDF File in WordPress Without a Plugin&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you do not want to get another <a href=\"https:\/\/rarathemes.com\/blog\/best-wordpress-plugins-for-blogs\/\" class=\"rank-math-link\">plugin for your WordPress site<\/a>, this section is for you. You can easily add embedded PDF files in <a class=\"rank-math-link\" href=\"https:\/\/rarathemes.com\/blog\/important-things-to-do-after-installing-wordpress\/\">WordPress without installing<\/a> yet another plugin.&nbsp;<\/p>\n\n\n\n<p>Add your PDF file to your Google Drive account and use the iframe code to embed the file to your site.<\/p>\n\n\n\n<p><strong>Step 1: <\/strong>First<strong>, <\/strong>Go to <a href=\"https:\/\/drive.google.com\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener nofollow\" class=\"rank-math-link\">Google Drive<\/a> and log in to your account.<\/p>\n\n\n\n<p><strong>Step 2:<\/strong> Upload the PDF file you want to embed in your WordPress post.&nbsp;<\/p>\n\n\n\n<p>Click on \u2018New\u2019 at the top left side of your Google Drive account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"387\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/add-new-file-to-google-drive.png\" alt=\"add new file to google drive\" class=\"wp-image-31820\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/add-new-file-to-google-drive.png 653w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/add-new-file-to-google-drive-300x178.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/add-new-file-to-google-drive-101x60.png 101w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p>Select the \u2018File Upload\u2019 option and upload the file from your computer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"437\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/file-upload-to-google-drive.png\" alt=\"file upload to google drive\" class=\"wp-image-31822\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/file-upload-to-google-drive.png 649w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/file-upload-to-google-drive-300x202.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/file-upload-to-google-drive-89x60.png 89w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: <\/strong>After uploading the file to your drive, double click and preview the file.&nbsp;<\/p>\n\n\n\n<p>Click the three vertical dots (More actions) on the top right corner. Select \u2018Open\u2019 in a new window.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"381\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/open-in-new-tab-file.png\" alt=\"\" class=\"wp-image-31825\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/open-in-new-tab-file.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/open-in-new-tab-file-300x163.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/open-in-new-tab-file-110x60.png 110w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>In the new window, click on the three vertical dots in the top right corner (More actions) and choose&nbsp;<em>Share<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"402\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/share-uploaded-file.png\" alt=\"share uploaded file\" class=\"wp-image-31826\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/share-uploaded-file.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/share-uploaded-file-300x172.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/share-uploaded-file-104x60.png 104w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p><strong>Step 4: <\/strong>&nbsp;You will see a pop-up called \u2018Share with people and groups\u2019 and \u2018Get link.\u2019&nbsp;<\/p>\n\n\n\n<p>In the \u2018Get link\u2019 section, change to anyone with the link. This way, those who have the link can view the PDF file. (If you don\u2019t change, it will remain private, and it will be impossible for your visitors to access it.)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"436\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Changing-the-link-accessibility-to-anyone.png\" alt=\"Changing the link accessibility to anyone\" class=\"wp-image-31827\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Changing-the-link-accessibility-to-anyone.png 698w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Changing-the-link-accessibility-to-anyone-300x187.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/Changing-the-link-accessibility-to-anyone-96x60.png 96w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/figure>\n\n\n\n<p>Once you change it, click on \u2018Done.\u2019<\/p>\n\n\n\n<p><strong>Step 5:<\/strong> Now, to get the embed code, again click on three vertical dots (More actions) and select Embed item.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"445\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/embed-pdf-file-code.png\" alt=\"embed pdf file code\" class=\"wp-image-31828\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/embed-pdf-file-code.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/embed-pdf-file-code-300x191.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/embed-pdf-file-code-94x60.png 94w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p><strong>Step 6:<\/strong> You will get a pop-up form where you can copy the iframe code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"665\" height=\"391\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/iframe-code.png\" alt=\"iframe code\" class=\"wp-image-31829\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/iframe-code.png 665w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/iframe-code-300x176.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2020\/11\/iframe-code-102x60.png 102w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p><strong>Step 7: <\/strong>Next, go to the <a href=\"https:\/\/rarathemes.com\/blog\/best-landing-page-wordpress-themes\/\">WordPress page<\/a> or post where you wish to add a PDF file.<\/p>\n\n\n\n<p>In case you use the Classic Editor, click on the \u2018Text\u2019 tab and paste the code.<\/p>\n\n\n\n<p>If you use the Block Editor, add a new Custom HTML block and insert the code there.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"427\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/add-a-new-Custom-HTML-block.png\" alt=\"add a new Custom-HTML block\" class=\"wp-image-31832\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/add-a-new-Custom-HTML-block.png 645w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/add-a-new-Custom-HTML-block-300x199.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/add-a-new-Custom-HTML-block-91x60.png 91w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<p><strong>Step 8:<\/strong> You can easily preview your PDF and check how it looks on the front end.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"359\" src=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/paste-the-iframe-code.png\" alt=\"Paste the iframe code\" class=\"wp-image-31833\" srcset=\"https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/paste-the-iframe-code.png 700w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/paste-the-iframe-code-300x154.png 300w, https:\/\/rarathemes.com\/blog\/wp-content\/uploads\/2021\/06\/paste-the-iframe-code-117x60.png 117w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p>Once you are done, save changes and publish your content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>WordPress lets you link to your PDF files \u2013 but not embed them. However, this tutorial helps solve that problem.&nbsp;<\/p>\n\n\n\n<p>If you require assistance, please add a comment below.<\/p>\n\n\n\n<p>We also recommend you to check <a href=\"https:\/\/rarathemes.com\/blog\/embed-google-form-wordpress\/\" class=\"rank-math-link\">How to Embed a Google Form in WordPress<\/a>, this article might be helpful for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>People worldwide use PDF because it is durable, preserves file format, and is very secure. Moreover, it uses less space and delivers a large amount of content. So, popularity is &hellip; <\/p>\n","protected":false},"author":15,"featured_media":28630,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_be_single_description":"","_be_image_uploader":0,"_be_meta_button_label":"","_be_meta_button_url":"","_be_meta_button_newtab":false,"_be_meta_rel_attribute":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-28129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","latest_post"],"_links":{"self":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/28129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/comments?post=28129"}],"version-history":[{"count":0,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/posts\/28129\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media\/28630"}],"wp:attachment":[{"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/media?parent=28129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/categories?post=28129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rarathemes.com\/blog\/wp-json\/wp\/v2\/tags?post=28129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}