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 |
|---|---|---|---|
| SharedPrinter | Any | Empty | Exception: Required argument sPrinterName cannot be empty. |
| SharedPrinter | Any | Invalid | An exception states that the printer cannot be found. |
| SharedPrinter | Any | Valid | Successful print job. |
| LPD | Empty | Any | an exception stating that the required argument sPrintServerUri cannot be empty. |
| LPD | Invalid | Empty | an exception stating that the required argument sPrinterName cannot be empty. |
| LPD | Invalid | Not empty | an exception stating that sPrintServerUri is not found. |
| LPD | Valid | Invalid | an exception stating that the printer cannot be found. |
| LPD | Valid | Valid | A successful print job. |
| CUPS | Empty | Any | an exception stating that the required argument sPrintServerUri cannot be empty. |
| CUPS | Invalid | Any | an exception stating that the printer cannot be found. |
| CUPS | Valid | Any | Successful print job. |
| DirectIP | Empty | Any | an exception stating that the required argument sPrintServerUri cannot be empty. |
| DirectIP | Invalid | Any | an exception stating that the printer cannot be found. |
| DirectIP | Valid | Any | Successful print job. |
| CIFS | Valid | Empty | Successful print job. |
| CIFS | Invalid | Any | an unknown error while printing using CIFS. |
| CIFS | Empty | Any | an 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:
-
Go to https://<server>:<port>/system/console.
-
Go to Main > Crypto Support.
-
Enter some Plain text, and click Protect.
Was this content helpful?
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 eventAdobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & EMEA
Adobe CX Enterprise Roadmap Webinar Series
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.
Wednesday, Jan 20, 4:00 PM UTC
Adobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & APAC
Adobe CX Enterprise Roadmap Webinar Series
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.
Thursday, Jan 21, 3:00 AM UTC