De sendToPrinter-API gebruiken
Gemaakt voor:
- User
Overzicht
In AEM Forms kunt u een document naar de printer verzenden met de SendToPrinter-service. De dienst SendToPrinter steunt de volgende druktoegangsmechanismen:
-
Direct toegankelijke printer
: 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.
-
Indirecte toegankelijke printer
: 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.
Wanneer u een document naar een printer verzendt, geeft u een van de volgende afdrukprotocollen op:
- 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: De uitvoerservice ondersteunt het CIFS-afdrukprotocol (Common Internet File System).
- CUPS
De SendToPrinter-service gebruiken
De onderstaande tabel bevat:
- informatie over printerName of printServer aan gebruik voor diverse protocollen.
- waarde of uitzondering die door een printer wordt geretourneerd voor verschillende combinaties van de printerserverURI en de printernaam
Verificatieondersteuning
Verificatie wordt alleen ondersteund voor CIFS-afdrukken. Geef voor verificatie de gebruikersnaam/het wachtwoord/domein op in PrinterSpec. U kunt een wachtwoord coderen met AEM Granite CyprusSupport Service door de volgende stappen uit te voeren:
-
Ga naar https://<server>:<port>/system/console.
-
Ga naar Main > Crypto Support.
-
Voer onbewerkte tekst in en klik op Protect.