The widest I can make the embed window in my theme is 680, but the displayed pdf file is loaded wider than this. There is a pop-up menu at the bottom of the embed window giving options of; fitting the whole pdf within the embed window, fitting the width to the embed window, printing or saving the file (which is great because it gives those options to my site users).
Can I arrange that the pdf file fits the width of the embed window by default so that the user does not have to do this manually?
To control the display size of your file would probably need some css coding, especially if you are using: <embed src="NAME OF FILE.pdf" width="500" height="375">
if the pdf is not presenting at 500px wide.
send a sample link of your issue.
thanks for help so far, I have decided to use the Google Document viewer for dealing with pdfs on my site. Linking to a shared document stored on a Google Drive gives a clear, adaptable view of the document, which can also be printed out or downloaded.
I have tried the plug-in Embedly, but that didn’t really achieve the look or functionality I was after. I also discovered the <embed> command did not display on all browsers. I seemed to be going down a rather bumpy track which might have turned out to be a dead end!
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[Resolved] display pdf files using an embed command’ is closed to new replies.