Welcome to WebmasterWorld Guest from 54.166.224.46

Forum Moderators: incrediBILL

Message Too Old, No Replies

Embedded PDF object prints blank page

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

5+ Year Member



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.

Thanks

(a simple search on WebmasterWorld did not answer my question)
2:49 am on Apr 27, 2010 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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)

5+ Year Member



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)

5+ Year Member



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)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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)

5+ Year Member



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)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Sounds like you've got it, then.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month