Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-11-26 10:48:51

rtibaldi
Member
Registered: 2007-11-26
Posts: 0

Problem printing to a network printer with javascript

Hi,
I have the following problem:
I have successfully added a  javascript to a pdf in order to print it silently to a local printer.
The java code to do it is the following:
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
pp.printerName = "hp psc 1310 series";
this.print(pp);
If printerName is a local printer, everything works fine.
On the contrary if printerName is a network printer (\\\\servername\\printername), nothing happens.
The network printer is on and if I print interactively a pdf document to it, it works well. What do I miss?


My Product Information:
Reader Standard 7 / Windows

Offline

 

#2 2007-12-10 12:54:00

lkassuba
Moderator

Registered: 2007-06-29
Posts: 1243

Re: Problem printing to a network printer with javascript

Hi rtibaldi,

Have you tried adding this javascript in a folder level script (priviledged context)? Printers can be selected with the Acrobat Javascipt print funtion but silent printing is only allowed from a priviledged context.

Hope this helps,
Lori


Forum Moderator and Community Manager for AcrobatUsers.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in