Getting number of copies in xps filter(V4 printer driver) RRS feed

  • Question

  • Hi all,

    We are working on v4 printer driver.For making printer to print we need to send print command along with PDL to the printer.

    The print command contains number of copies to be printed so we need to get number of copies for fabricating print command.

    According to docs we can get number copies from "psk:JobCopiesAllDocuments" node in print ticket received in xps filter.But irrespective of how many copies is given to be printed in print dialog the "psk:JobCopiesAllDocuments" in print ticket received always contain 1 values.

    But the print ticket received in different function(completePrintCapabilities,convertDevModeToPrintTicket,convertPrintTicketToDevMode)of Java script constraint contains the exact number of copies to be printed given in print dialog.

    So i tried to create an extra node in print ticket and add the values of "psk:JobCopiesAllDocuments" to newly added node in JS constarint.On debugging the JS constraint the new node was present in print ticket along with updated values.

    When i checked the print ticket received at xps filter after adding the node on JS constraint,the newly added node was preset but the values was 1 too in newly added node.

    So what is the correct approach to get number of copies in xps filter?

    Any help will be appreciated.



    Wednesday, December 19, 2018 1:18 PM