Jump to content

Problem Embedding A Pdf Document In Asp Page


AndyMoireASP
 Share

Recommended Posts

HiI have an iframe which displays inside a pdf document on my ASP Page, but when I display the page in a different screen resolution, say 800 x 600, the pdf document expands and overlays itself over other controls.Is there away, to control the size of the iframe so it stays the same size?Here is my markup<div id="pdfholder> <iframe src="userdoc.pdf" height="45em" width="80%"/></div> <div id="buttonholder"> <asp:button id="btnAccept" runat="server" onclick="accept"/> <asp:button id="btnReject" runat="server" onclick="reject"/> </div>

Link to comment
Share on other sites

The browser plugin that shows the PDF might have a minimum size that it shows itself as. What happens if you load the PDF in a separate window and make the window smaller?
Hi,Using Visual Studio 2008, I clicked on the source link in the code of the iFrame, and the page loaded to the full height of the page. However, I was wondering whether using html tables and placing the iframe within a td might help? I haven't tried it yet, though, but what do you think?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...