Guest thoth Posted December 10, 2009 Share Posted December 10, 2009 I'm trying to dislay a pdf in a div using this code <div class="centertext"> <h2>Mastering Astronomy Instructions</h2> <h3><a href="ma.pdf">Download Intruction as a PDF File</a></h3> <h4>If you do not see a PDF load in this screen <a href="index.php#ffpdf">Click Here</a></h4> </div> <object class "middle" data="ma.pdf" type="application/pdf" width="100%" height="90%"> </object> </div> It doesn't properly size itself, how do I get it to fit in the div totally? Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted December 20, 2009 Share Posted December 20, 2009 I don't think it is a good idea to embed a PDF document onto a page. I would recommend that you link to a PDF file. Link to comment Share on other sites More sharing options...
Twango Posted December 20, 2009 Share Posted December 20, 2009 Hmm, i think the best way to do this would be an iframe? <html><body><iframe src="whatever.pdf" width="100" height="%100"></iframe></body></html> I'm not sure if this is what you are asking for? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.