• Does any wordpress genius know how to help me with this one?

    I’m trying to embed a pdf file onto a page. I have successfully completed this by using the <iframe> code. However, the pdf file is much to large for my page! I’m not interested in adjusting the width and height of the embedded src because that would impinge on my sidebars. Does anyone know how to minimise or shrink the pdf file in embedded src? So that i can fit all of the pdf but it will also be between my two sidebars.

    This would be much appreciated!
    Regards
    Lisa

Viewing 2 replies - 1 through 2 (of 2 total)
  • Purab

    (@wordpressapi)

    just use the following javascript upperside of iframe.

    // Firefox worked fine. Internet Explorer shows scrollbar because of frameborder
    function resizeFramere(f) {
    f.style.height = f.contentWindow.document.body.scrollHeight + "px";
    
    //window.onload = alert(navigator.appName);
    }

    call this function in body onload section.

    Hi, want to ad a pdf file that i uploaded to my root directory but when i embed it, it shows the scrollbars. can you help me get rid of them?
    Yani

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘embedded src for pdf files’ is closed to new replies.