Support » Plugin: Embed PDF Viewer » height

  • Resolved hennyroosen


    how can I make the embed PDF bigger? (longer?) so htat you can see more of the PDF?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andy Fragen


    There’s a filter you can use to change the height and width attributes of the PDF.

    Refer to this issue,

    Thread Starter hennyroosen


    I don’t know how to do that?
    [Redacted – Please use for large snippets of code]

    • This reply was modified 2 years, 8 months ago by Andrew Nevins.
    Plugin Author Andy Fragen


    Firstly the PDF will scroll so you can see all of it.

    The filter is as follows:

    add_filter( 'embed_pdf_viewer_pdf_attributes', function($attr) {
        $attr['height'] = "600";
        $attr['width'] = "1000";
        return $attr;

    Where you set the height and width attributes. Put the filter in you theme’s functions.php file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘height’ is closed to new replies.