WP Media Folder: Embed PDF
You can embed PDF files in your content. This means displaying the PDF along the rest of the WordPress content, and not simply a download link. You will get full previews of the PDF documents, and the embed feature handles multiple page navigation with responsive design.
Just open a PDF document in your media manager and look at the bottom of the right column for the setting Embed PDF - turn it on.
In this way, the PDF document will be displayed instead of a download link.
Embed PDF when using Amazon S3
You need to configure little bit to embed PDF files in your content if using Amazon S3. Please follow these steps below.
First, you navigate to the AWS console and find the S3 configuration area. After that select the bucket you are using to store your assets and select Permissions section on a pop-up window.
Under "Permissions" tab click on "Add CORS Configuration" button. AWS will provide a default XML configuration that should work correctly:
However, you may prefer to limit access to your own WordPress site's domain, for security reasons:
You need paste the XML code above on the text area. Remember to click on Save button, now you can embed PDFs file in the content. Good luck!