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.

Announcements

Get hands-on with agentic AI.

Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.

Find an event

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.

Ask AI