forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Print PDF without opening.

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Sat Feb 19, 2005 3:32 pm    Post subject: Print PDF without opening. Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 21, 2005 8:52 pm    Post subject: Reply with quote

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 Rolling Eyes

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Feb 21, 2005 9:55 pm    Post subject: Reply with quote

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. Confused
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Mon Feb 21, 2005 10:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Feb 21, 2005 10:49 pm    Post subject: Reply with quote

Does SHELL PRINT cause the file to be opened as well?
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Feb 21, 2005 10:54 pm    Post subject: Reply with quote

Yes, it does. Sad
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 21, 2005 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Feb 21, 2005 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Tue Feb 22, 2005 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Feb 22, 2005 4:38 am    Post subject: Reply with quote

No it doesn't work with 7! Sad Big Bummer. Just lost a client.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Stef
Newbie


Joined: 24 Nov 2005
Posts: 1

PostPosted: Thu Nov 24, 2005 2:44 pm    Post subject: How to do.... Reply with quote

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
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sat Nov 26, 2005 2:53 am    Post subject: Brilliant Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group