| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sat Feb 19, 2005 3:32 pm Post subject: Print PDF without opening. |
|
|
Is there a way to print a PDF without opening it? I need to have a way to print many pdf files right to a printer (networked) without opening them.
Thanks _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Feb 21, 2005 8:52 pm Post subject: |
|
|
Have you tried the same method for printing HTML files? Off the top of my
head I can't say what it is, but in theory it should be the same... me
thinks  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Feb 21, 2005 9:55 pm Post subject: |
|
|
You mean Shell open command? Yeah, but it still opened adobe to print the file. My client is very pickey. You can print a PDF file by drag and drop over the printer in Printers and Faxes so I would think there is a way to do it.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Feb 21, 2005 10:36 pm Post subject: |
|
|
I have been looking for a way to do this as well. I tried running the acrord32.exe with the /t switch. It prints, but stays open. And you also can't run it hidden from VDS - it shows up anyway.
It can be done with Ghostscript, but I don't know if that suits your needs. (http://www.ghostscript.com)
I would be interested if you find a better solution. _________________ Joe Floyd |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Feb 21, 2005 10:49 pm Post subject: |
|
|
| Does SHELL PRINT cause the file to be opened as well? |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Feb 21, 2005 10:59 pm Post subject: |
|
|
Stupid question maybe:
Does the VDSPDF.DLL not support something like this? _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Feb 21, 2005 11:02 pm Post subject: |
|
|
It does print, but it has to open the file in a PDF "window" created by the dll before it can print. I may have to end up using that and just make the PDF "window" hidden. We'll see. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Tue Feb 22, 2005 12:42 am Post subject: |
|
|
I tried using the VDSPDF.dll earlier. It did not work for me, although it used to. I am afraid that it might not be compatible with the new acrobat reader (v 7.0). Can anyone else confirm this? _________________ Joe Floyd |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Feb 22, 2005 4:38 am Post subject: |
|
|
No it doesn't work with 7! Big Bummer. Just lost a client. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Stef Newbie
Joined: 24 Nov 2005 Posts: 1
|
Posted: Thu Nov 24, 2005 2:44 pm Post subject: How to do.... |
|
|
I had the problem you describe with the newer acrobat version.
This is how to do to print a pdf document in a html frame :
The pdf doc must be declared as an embeded object to be managed in some other frames and to be printable.
A delay is necessary too (with the setTimeout() function before the print command.
Code example :
1/ Adobe Reader <= 5 Compatible
Frameset declaration :
<html>
<head><title>Mon Titre</title> </head>
<frameset cols="1,*" framespacing="0" border="0" frameborder="0">
<frame name="left" src="mydoc.pdf" scrolling="no" noresize>
<frame name="right" src="framed.html" scrolling="no" noresize>
</frameset>
</html>
Right frame (framed.html in the example) :
<html>
<head><title>Title</title>
<script language="text/JavaScript">
function monPrint() {
parent.frames['left'].document.print();
}
</script>
</head>
<body onLoad="javascript:monPrint();"> </body>
</html>
2/ all version Adobe Reader Compatible :(including v7)
Frameset declaration :
<html>
<head><title>Title</title></head>
<frameset cols="1,*" framespacing="0" border="0" frameborder="0">
// empty frame
<frame name="gauche" scrolling="no" noresize>
<frame name="droite" src="framed.html" scrolling="no" noresize>
</frameset>
</html>
Right frame(framed.html in the example)
<html>
<head><title>Title</title>
<script language="text/JavaScript">
function monPrint() {
// embeded object parent.frames['left'].write('<embed rc="mydoc.pdf">');
// delay + print setTimeout(parent.frames['left'].embeds[0].print(), 1000);
}
</script>
</head>
<body onLoad="javascript:monPrint();">
</body>
</html>
Hope this will help... |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Sat Nov 26, 2005 2:53 am Post subject: Brilliant |
|
|
Can you simply load the pdf in a vds browser window and hide it offscreen or 1x1 pixel or something similar and then send it the print command? I think that may be what your saying and if that is the solution its a brilliant workaround that would get the job done. And also would not be dependant on Acrobat version. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
|