🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #15782

Re: Printing Pdf Document

#15782
From: federico_jakimowicz
Date: Wed, 28 Jun 2006 22:16
42 lines
2173 bytes
I am experiencing similar problems and I have found in forums many people experiencing it.
Printing a pdf inside an iframe using Javascript is not possible with Acrobat Reader 7.0.8 and Internet Explorer. (in Mozilla Firefox the same code works perfectly)
I should also say that if I test it with Acrobat Reader 6 the code works in IE. But I can�t go back to Acrobat 6 since it fails to display streamed dinamically generated .pdf documents, again, in Firefox this works ok.
So with Acrobat Reader 6 I can print it using Javascript but I can�t display the streamed PDF file instead it displays a white box.
And with Acrobat Reader 7 I can recieve and display the streamed file but it fails to print it. Always this problems take place with IE 6.0.29 sp2. In Firefox works great.
But I really need to use IE.

summarizing I need to be able to print a pdf file inside an iframe with IE using Javascript and Acrobat 7.
Is this a bug? There is another way to do this?
There is another way to address the Acrobat plugin inside the iframe and make it print the displayed pdf using Javascript?

this is an html sample code:
(change "[" with "<" and "]" with ">")

[HTML]
[TABLE]
[TR]
[TD]
[a href="javascript:changeSRC()"]changeSRC[/a]
[/TD]
[/TR]
[TR]
[TD]
[IFRAME application="yes" id="framePDF" name="framePDF" src="mypdfFile.pdf" width="100%" height="50"]
el iframe no es soportado
[/IFRAME]
[/TD]
[/TR]
[/TABLE]
[/HTML]

[script]
function changeSRC(){

		framePDF.focus();
		framePDF.print();

}

[/script]

thanks a lot.
Technical Details
Message-ID: <3bc0bec4.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc0bec4.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,dd2417acbd94668
X-Google-Attributes: gid10273d,public
X-Google-Language: ENGLISH,ASCII
From: federico_jakimowicz@adobeforums.com
Newsgroups: adobe.reader
Subject: Re: Printing Pdf Document
Message-ID: <3bc0bec4.0@webcrossing.la2eafNXanI>
Date: Wed, 28 Jun 2006 15:16:03 -0700
References: <3bc0bec4.-1@webcrossing.la2eafNXanI>
Lines: 53
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing