homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Embedded PDF object prints blank page

 10:20 am on Apr 26, 2010 (gmt 0)

I have embedded a PDF (one page) in an object to display it in a page.

<object data="http://www.example.com/test.pdf" type="application/pdf" width="1000px" height="1000px" />

Printing this page uncovers a few quirks:

1. Firefox prints one page blank and a second page with illegible text (Print Preview displays two blank pages)
2. Chrome prints a blank page
3. IE prints a perfect page (bit of a suprise)

When object width & height was set to 100%, it did not display in Firefox, so I changed this to 1000px, but this is not ideal.

Any suggestions as to what the best fix or workaround is for the print issues and getting object displayed in Firefox when setting width and height to 100% ?

I added below CSS to check that the inheritance was not causing the div to collapse:

body { width: 100%; height: 100%; }

Please let me know if I should provide more code.


(a simple search on WebmasterWorld did not answer my question)



 2:49 am on Apr 27, 2010 (gmt 0)

Is this happening just on your machine, or have you tried multiple setups? My first guess was that it was a problem with the Adobe plug-in (or whatever plug-in you're using) for PDF files.


 7:33 am on Apr 28, 2010 (gmt 0)

Hi bill. My colleague had the same problem when printing this page. I have Adobe Reader 9.2.0 installed. Will see whether an update to Adobe Reader 9.3 fixes this. Thanks.


 9:57 am on Apr 28, 2010 (gmt 0)

Hi bill. I updated to Adobe Reader 9.3.0 and the printing problem persists In Firefox (prints the page at about 75%). I'm on Windows 7 and haven't tested this on other Operating Systems. Any other ideas?


 10:54 am on Apr 28, 2010 (gmt 0)

Are the problematic parts of this PDF images (even images of text) or stright text? Sometimes images can be problematic.


 1:14 pm on Apr 28, 2010 (gmt 0)

Update: It's actually Adobe reader version 9.3.2 (even though the setup window displays 9.3)

Tedster, the whole PDF is smaller than what it should be and so everything looks distorted; images and text. I think it's possibly scaling it because of the 1000x1000 pixels I set as the object properties. When clicking the print icon from within Acrobat it prints perfectly.


 1:23 pm on Apr 28, 2010 (gmt 0)

Sounds like you've got it, then.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved