Support » Plugin: Embed PDF Viewer » height

  • Resolved hennyroosen

    (@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

    (@afragen)

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

    Refer to this issue, https://wordpress.org/support/topic/height-attributes/

    Thread Starter hennyroosen

    (@hennyroosen)

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

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

    (@afragen)

    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.