🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #14136

PrintWithDialog() method always defaults to "Pages from:1 to:1"

#14136
From: Drew_Hodson
Date: Thu, 07 Sep 2006 19:40
36 lines
1951 bytes
Summary:

For versions of the reader older than 7, you can set up a Javascript request to print a frame whose source is a PDF and the reader will grab that print request and open a dialog box with the default pages option being set to "all."

With version 7 the reader no longer grabs this request and so the print request sends a blank page to the printer.

To work around this, I have looked at using the PrintWithDialog() method, but it sets the default pages to "Pages from:1 to:1." This is causing confusion for many users.

I need to find a way to work around this so that the dialog is displayed, but the default option is all.

Steps to reproduce:

Save the following to an html file, view the file in a browser, and click the print button.

HTML
=======
<html>
<body>
<script>
function printPdf() {
   var objPdf = document.getElementById('pdf');
   objPdf.PrintWithDialog();
}
</script>

<OBJECT ID="PDF" CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=800 HEIGHT=600>
 <PARAM NAME="SRC" VALUE="http://www.irs.gov/pub/irs-pdf/f1040ez.pdf">
<OBJECT>
<br/>
<input type="button" value="print" onclick="printPdf();"></input>
</body>
</html>
=======

Product version: Any version of 7
Product: Acrobat Reader
Technical Details
Message-ID: <3bc18e13.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.motzarella.org!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,ec52c6993049272f,start
X-Google-Attributes: gid10273d,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Drew_Hodson@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.motzarella.org!news.isoc.lu!webcrossing
Newsgroups: adobe.reader
Subject: PrintWithDialog() method always defaults to "Pages from:1 to:1"
Message-ID: <3bc18e13.-1@webcrossing.la2eafNXanI>
Date: Thu, 7 Sep 2006 12:40:14 -0700
Lines: 47
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit