最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Create virtual printer using UWP Printer Support App (PSA) - Stack Overflow

programmeradmin1浏览0评论

net community,

I'm trying to create a UWP PSA application following the guide. However when I deploy an app locally, the virtual printer is not created. The app does not have any logic, just configuration file with dummy background tasks linked from attached config file.

Am I correctly understood the manual, that PSA v4 is able to act as virtual printer, without need to develop any printer driver, and virtual printer should be created automatically after installing such PSA app?

<Applications>
    <Application Id="App"
      Executable="$targetnametoken$.exe"
      EntryPoint="AbcVirtualPrinter.App"
      desktop4:SupportsMultipleInstances="true" uap18:RuntimeBehavior="windowsApp">
        <uap:VisualElements
          DisplayName="AbcVirtualPrinter"
          Square150x150Logo="Assets\Square150x150Logo.png"
          Square44x44Logo="Assets\Square44x44Logo.png"
          Description="AbcVirtualPrinter"
          BackgroundColor="transparent">
            <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
            <uap:SplashScreen Image="Assets\SplashScreen.png" />
        </uap:VisualElements>

        <Extensions>
            <printsupport2:Extension Category="windows.printSupportVirtualPrinterWorkflow"
                                     EntryPoint="AbcVirtualPrinter.VirtualPrinterBackgroundTask">
                <printsupport2:PrintSupportVirtualPrinter
                    DisplayName="AbcVirtualPrinter"
                    PrinterUri="Abc-print:AbcVirtualPrinter"
                    PreferredInputFormat="application/postscript"
                    OutputFileTypes="ps;pdf"
                    PdcFile="Config\Abc_PDC.xml" >
                    <printsupport2:SupportedFormats>
                        <printsupport2:SupportedFormat Type="application/postscript" />
                        <printsupport2:SupportedFormat Type="application/pdf" MaxVersion="1.7" />
                    </printsupport2:SupportedFormats>
                </printsupport2:PrintSupportVirtualPrinter>
            </printsupport2:Extension>
            <printsupport:Extension Category="windows.printSupportExtension" EntryPoint="AbcVirtualPrinter.PrintSupportExtensionBackGroundTask"/>
            <printsupport:Extension Category="windows.printSupportSettingsUI" EntryPoint="AbcVirtualPrinter.App"/>
            <printsupport:Extension Category="windows.printSupportJobUI" EntryPoint="AbcVirtualPrinter.App"/>
        </Extensions>

    </Application>
</Applications>
发布评论

评论列表(0)

  1. 暂无评论