steveherrmann Posted June 26, 2014 Share Posted June 26, 2014 (edited) Hello all, I was experimenting with the <object> tag, putting one webpage inside another HTML document. I found that if I put a PDF in it appear just under 70% of its original size, .....even if I specify the height and width. <object src="folder/thumbnail.pdf" type="application/pdf" width="100" height="100"/> But if I put a PNG (of the same image, size unaltered) in another HTML document and call that in, it appears at 100%. <object data="page2.html" type="text/html"> alt : <a href="page2.html">page2.html</a> </object> ....WHY is this? Edited June 26, 2014 by steveherrmann Link to comment Share on other sites More sharing options...
newseed Posted June 26, 2014 Share Posted June 26, 2014 When it comes to pdf, typically it's best to use a link that opens up to a new tab/window. I never use object tags. However, you might this: apply a css like this: pdf {width:100%;} I never tried it and I certainly do not know if it works at all. You can also try iframe instead of object. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now