PIN 打印的示例 PrintTicket 文件

重要

建议使用 Microsoft 的 IPP 收件箱类驱动程序以及打印支持应用 (PSA) ,自定义 Windows 10 和 11 中的打印体验,以便进行打印机设备开发。

有关详细信息,请参阅 打印支持应用设计指南

下面是一个示例 PrintTicket 文件,演示如何指定 PIN 打印。

<?xml version="1.0"?>
   <psf:PrintTicket xmlns:psf="https://schemas.microsoft.com/windows/2003/08/printing/printschemaframework" 
      xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" 
      xmlns:xsd="https://www.w3.org/2001/XMLSchema" version="1" 
           xmlns:psk="https://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords"
           xmlns:pskv11=" https://schemas.microsoft.com/windows/2013/05/printing/printschemakeywordsv11">
      <psf:ParameterInit name="pskv11:JobPasscodeString">
         <psf:Value xsi:type="xsd:string">123456</psf:Value>
      </psf:ParameterInit>
      <psf:Feature name="pskv11:JobPasscode">
         <psf:Option name="psk:On" />
      </psf:Feature>
   </psf:PrintTicket>

有关受保护打印的详细信息,请参阅 针对受保护打印的驱动程序支持