Jump to content

object - PDF small

Recommended Posts

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>
....WHY is this?
Edited by steveherrmann

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...