I have a pdf in my media library that I am trying to embed on a page. The width works fine but the length does not. I am trying to basically represent 8.5 x 11 on the screen. As it is only about 3-4 inches in screen length are shown and the rest is scroll bar.

<embed src='http://example.com/wp-content/uploads/.../somefile.pdf' width='1000px' length='1200px' />

I have even tried using length='100%'.

1 Answer 1


I was able to figure it out. embed tags do not work with pdf's because it does not render through the browser. Using the object tag worked:

<object data='http://example.com/wp-content/uploads/...somefile.pdf' type="application/pdf" 

width="1000px" height="1200px">

<p>It appears you don't have a PDF plugin for this browser. You can download the pdf
<a href='http://example.com/wp-content/uploads/.../somefile.pdf'>here</a>


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.