sendToPrinter API 사용 using-the-sendtoprinter-api

CAUTION
AEM 6.4가 확장 지원이 종료되었으며 이 설명서는 더 이상 업데이트되지 않습니다. 자세한 내용은 기술 지원 기간. 지원되는 버전 찾기 여기.

개요 overview

AEM Forms에서는 SendToPrinter 서비스를 사용하여 문서를 프린터로 보낼 수 있습니다. SendToPrinter 서비스는 다음과 같은 인쇄 액세스 메커니즘을 지원합니다.

  • 직접 액세스 가능한 프린터 : 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.

  • 간접 액세스 가능한 프린터 : 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.

    문서를 프린터로 보낼 때 다음 인쇄 프로토콜 중 하나를 지정합니다.

    • : 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: 출력 서비스는 CIFS(Common Internet File System) 인쇄 프로토콜을 지원합니다.

SendToPrinter 서비스 사용 using-sendtoprinter-service

아래 표는 다음과 같습니다.

  • 다양한 프로토콜에 사용할 printerName 또는 printServer에 대한 정보입니다.
  • 프린터 서버 URI 및 프린터 이름 조합을 위한 값 또는 예외 프린터 반환
프로토콜(액세스 메커니즘)
인쇄 서버 URI(PrinterSpec.printServer)
프린터의 이름(PrinterSpec.printerName)
결과
SharedPrinter
임의
비어 있음
예외: 필요한 인수 sPrinterName은 비워 둘 수 없습니다.
SharedPrinter
임의
잘못됨
예외는 프린터를 찾을 수 없다는 것입니다.
SharedPrinter
임의
유효
인쇄 작업이 성공했습니다.
LPD
비어 있음
임의
필요한 인수 sPrintServerUri를 비워둘 수 없다는 예외가 발생했습니다.
LPD
잘못됨
비어 있음
필요한 인수 sPrinterName을 비워 둘 수 없다는 예외가 발생했습니다.
LPD
잘못됨
비어 있지 않음
sPrintServerUri를 찾을 수 없다는 예외가 발생했습니다.
LPD
유효
잘못됨
프린터를 찾을 수 없다는 예외를 나타냅니다.
LPD
유효
유효
인쇄 작업에 성공했습니다.
CUPS
비어 있음
임의
필요한 인수 sPrintServerUri를 비워둘 수 없다는 예외가 발생했습니다.
CUPS
잘못됨
임의
프린터를 찾을 수 없다는 예외를 나타냅니다.
CUPS
유효
임의
인쇄 작업이 성공했습니다.
DirectIP
비어 있음
임의
필요한 인수 sPrintServerUri를 비워둘 수 없다는 예외가 발생했습니다.
DirectIP
잘못됨
임의
프린터를 찾을 수 없다는 예외를 나타냅니다.
DirectIP
유효
임의
인쇄 작업이 성공했습니다.
CIFS
유효
비어 있음
인쇄 작업이 성공했습니다.
CIFS
잘못됨
임의
CIFS를 사용하여 인쇄하는 동안 알 수 없는 오류가 발생했습니다.
CIFS
비어 있음
임의
필요한 인수 sPrintServerUri를 비워둘 수 없다는 예외가 발생했습니다.

인증 지원 authentication-support

인증은 CIFS 인쇄에만 지원됩니다. 인증하려면 PrinterSpec에서 사용자 이름/암호/도메인을 입력합니다. 다음 단계를 수행하여 AEM Granite CyprtoSupport 서비스를 사용하여 암호를 암호화할 수 있습니다.

  1. https://으로 이동합니다.<server>:<port>/system/console.

  2. 이동 기본 > Crypto 지원.

  3. 일반 텍스트를 입력하고 Protect.

recommendation-more-help
a6ebf046-2b8b-4543-bd46-42a0d77792da