Utilizzo dell'API sendToPrinter using-the-sendtoprinter-api
Panoramica overview
In AEM Forms, è possibile utilizzare il servizio SendToPrinter per inviare un documento alla stampante. Il servizio SendToPrinter supporta i seguenti meccanismi di accesso alla stampa:
-
Stampante con accesso diretto
: A printer that is installed on the same computer is called a direct accessible printer, and the computer is named printer host. This type of printer can be a local printer that is connected to the computer directly.
-
Stampante con accesso indiretto
: The printer that is installed on a print server is accessed from other computers. Technologies such as the common UNIX® printing system (CUPS) and the Line Printer Daemon (LPD) protocol are available to connect to a network printer. To access an indirect accessible printer, specify the print server’s IP or host name. Using this mechanism, you can send a document to an LPD URI when the network has an LPD running. The mechanism lets you route the document to any printer that is connected to the network that has an LPD running.
Quando si invia un documento a una stampante, specificare uno dei seguenti protocolli di stampa:
- CUPS
: A printing protocol named common UNIX printing system. This protocol is used for UNIX operating systems and enables a computer to function as a print server. The print server accepts print requests from client applications, processes them, and sends them to configured printers. On the IBM AIX® operating system, usage of CUPS is not recommended.
- "DirectIP
: A standard protocol for remote printing and managing print jobs. This protocol can be used locally or remotely. Print queues are not required.
- "LPD
: A printing protocol named Line Printer Daemon protocol or Line Printer Remote (LPR) protocol. This protocol provides network print server functionality for UNIX-based systems.
- SharedPrinter
: A printing protocol that enables a computer to use a printer that is configured for that computer.
- CIFS: Il servizio Output supporta il protocollo di stampa CIFS (Common Internet File System).
- CUPS
Utilizzo del servizio SendToPrinter using-sendtoprinter-service
La tabella seguente elenca:
- informazioni su printerName o printServer da utilizzare per vari protocolli.
- valore o eccezione restituita da una stampante per diverse combinazioni di URI del server stampanti e Nome della stampante
Supporto per l'autenticazione authentication-support
L'autenticazione è supportata solo per la stampa CIFS. Per eseguire l'autenticazione, specificare il nome utente/password/dominio in PrinterSpec. È possibile crittografare una password utilizzando AEM servizio Granite CyprusSupport eseguendo i seguenti passaggi:
-
Vai su https://<server>:<port>/system/console.
-
Vai a Principale > Supporto di Crypto.
-
Inserisci un testo normale e fai clic su Protect.