Learn how to modify the plugins behavior and make it work like you need.

Documentation Category: Tutorials

Get access to
Powerful Features!

  • Automatically open in full screen mode?

    There is no option to automatically open up in full screen mode. The best alternative is to create a ‘full page’ template in your theme that doesn’t have many of the features of most pages (e.g. header menu and sidebars) and allows the content to take up most of the width of the page.

  • Auto-generate Attachment Page to embed PDF

    Discover how to automatically generate unique ‘Attachment Pages’ for displaying PDF Viewer with the Premium version of a plugin.

  • Stop the [pdf-embedder] shortcode being inserted into posts automatically

    When you select a PDF from the Media Library to insert into your post, by default PDF Embedder will insert it as a shortcode: This will cause it to use the plugin’s interactive viewer to display the PDF when the page is published. You can also type the shortcode manually, and maybe you don’t normally…

  • Can I write PHP code to change the shortcode parameters?

    Discover how to override default PDF embed settings in WordPress using shortcode parameters and PHP code. Customize your embeds for a personalized touch.

  • How to modify PDF Viewer styles?

    Learn how to customize the PDF Viewer on your website with code snippets to match your theme styling.

  • Serving PDFs from Dropbox

    CORS is already enabled on some Dropbox domains, so it can be possible to embed PDFs directly from Dropbox, although only if your site is running under HTTPS. Try the following. Obtain the ‘share’ link from Dropbox (‘Copy Dropbox link’ from the right-click menu in your file browser). It should be something like this: You…

  • Hosting PDFs on Amazon S3 or CloudFront

    By default, web browsers have security policies that do not allow Javascript code to fetch files from a different domain to the web page on which the code is already running. However, it is possible to configure Amazon S3 and other storage services to permit this, and then you’d just have to change the shortcode…

  • How to Center the PDF

    The default settings of the plugin will display your PDF at ‘maximum width’ to fit the area available to it. If you specify a fixed width for your PDFs that is smaller than the width available, you will probably find the PDF is left-justified within the main area of your web page. If you want…