Using SendToPrinter Service

The table below lists:

  • information about the printerName or printServer to use for various protocols.
  • value or exception a printer returns for various combinations of Printer Server URI and Name of the printer
Protocol (Access Mechanism)Print Server URI (PrinterSpec.printServer)Name of the printer (PrinterSpec.printerName)Result
SharedPrinterAnyEmptyException: Required argument sPrinterName cannot be empty.
SharedPrinterAnyInvalidAn exception states that the printer cannot be found.
SharedPrinterAnyValidSuccessful print job.
LPDEmptyAnyan exception stating that the required argument sPrintServerUri cannot be empty.
LPDInvalidEmptyan exception stating that the required argument sPrinterName cannot be empty.
LPDInvalidNot emptyan exception stating that sPrintServerUri is not found.
LPDValidInvalidan exception stating that the printer cannot be found.
LPDValidValidA successful print job.
CUPSEmptyAnyan exception stating that the required argument sPrintServerUri cannot be empty.
CUPSInvalidAnyan exception stating that the printer cannot be found.
CUPSValidAnySuccessful print job.
DirectIPEmptyAnyan exception stating that the required argument sPrintServerUri cannot be empty.
DirectIPInvalidAnyan exception stating that the printer cannot be found.
DirectIPValidAnySuccessful print job.
CIFSValidEmptySuccessful print job.
CIFSInvalidAnyan unknown error while printing using CIFS.
CIFSEmptyAnyan exception stating that the required argument sPrintServerUri cannot be empty.

Authentication Support

Authentication is supported only for CIFS printing. To authenticate, provide the username/password/domain in PrinterSpec. You can encrypt a password using AEM Granite CyprtoSupport Service by performing the following steps:

  1. Go to https://<server>:<port>/system/console.

  2. Go to Main > Crypto Support.

  3. Enter some Plain text, and click Protect.

Experience Manager


Espressos & Experience Manager: AEM Forms

Espressos & Experience Manager

Thursday, Mar 6, 7:00 PM UTC

Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more