none
Custom media size mapping to *PageSize in PS driver RRS feed

  • Question

  • Hello,

    We are developing a v4 PS driver, using MSxpsPS filter. We are having problems with custom media sizes.

    We have a driver which defines in the PPD an ISO A4 page size. If the user defines a custom size equivalent to an ISO A4 landscape (that is 297x210mm, so width > height), and selects it, in the output is reported as an ISO A4 (not as a custom size). So, it seems that the OS tries to match the custom size to one of the media sizes defined in the PPD.

    The problem is that the custom size is width > height while the ISO A4 definition is height > width. The content is correct but it clips due to the orientation of the page size.

    Is there a way to detect in the ppd if width > height to change the page orientation?

    Thanks and regards,

    Roger

    Wednesday, July 10, 2013 11:57 AM

All replies

  • Hi Roger,

    Is this on Windows 8 or Windows 8.1 release preview? Can you attach the PrintTicket from the spool file? We'd like to narrow down where this behavior is coming in so we can recommend a solution.

    Thanks!

    Justin

    Wednesday, July 10, 2013 9:13 PM
  • Hi Justin,

    It is on Windows 8. I created a user defined form which is equivalent to an A4 landscape. The PT is the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <psf:PrintTicket xmlns:psf="http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1" xmlns:ns0000="Your private namespace URI goes here" xmlns:psk="http://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords">
      <psf:ParameterInit name="ns0000:PageDevmodeSnapshot">
        <psf:Value xsi:type="xsd:string">UwBpAG0AcABsAGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEEAAbcAAgEAzcBAgEAqgDqCm8IZAABAA8AWAIBAAEAWAIDAAEAQQA0AF8ATABBAE4ARABTAEMAQQBQAEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAgAAAAABAAAAAAAAR0lTNAAAAAAAAAAAAAAAAF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tADkAZABjADUALQAzAGIAYQBjAGIANQA2ADgAOQAwADcANwB9AAAAUmVzb2x1dGlvbgA2MDBkcGkASW5wdXRTbG90ACpVc2VGb3JtVHJheVRhYmxlAFBhZ2VTaXplAEN1c3RvbVBhZ2VTaXplAFBhZ2VSZWdpb24AAExlYWRpbmdFZGdlAABNZWRpYVR5cGUAQWRoZXNpdmVQYXBlcgBQYWdlT3JpZW50YXRpb24AUG9ydHJhaXQARHVwbGV4AE5vbmUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAFY0RE0BAAAAAAAAAAAAAAAAAAAAAAAAAA==</psf:Value>
      </psf:ParameterInit>
      <psf:ParameterInit name="psk:JobCopiesAllDocuments">
        <psf:Value xsi:type="xsd:integer">1</psf:Value>
      </psf:ParameterInit>
      <psf:Feature name="psk:PageMediaSize">
        <psf:Option name="ns0000:UserForm169">
          <psf:ScoredProperty name="psk:MediaSizeWidth">
            <psf:Value xsi:type="xsd:integer">297000</psf:Value>
          </psf:ScoredProperty>
          <psf:ScoredProperty name="psk:MediaSizeHeight">
            <psf:Value xsi:type="xsd:integer">210000</psf:Value>
          </psf:ScoredProperty>
        </psf:Option>
      </psf:Feature>
      <psf:Feature name="psk:PageResolution">
        <psf:Option name="ns0000:_600dpi">
          <psf:ScoredProperty name="psk:ResolutionX">
            <psf:Value xsi:type="xsd:integer">600</psf:Value>
          </psf:ScoredProperty>
          <psf:ScoredProperty name="psk:ResolutionY">
            <psf:Value xsi:type="xsd:integer">600</psf:Value>
          </psf:ScoredProperty>
        </psf:Option>
      </psf:Feature>
      <psf:Feature name="psk:JobInputBin">
        <psf:Option name="psk:AutoSelect" />
      </psf:Feature>
      <psf:Feature name="psk:PageMediaType">
        <psf:Option name="ns0000:AdhesivePaper" />
      </psf:Feature>
      <psf:Feature name="psk:PageOrientation">
        <psf:Option name="psk:Portrait" />
      </psf:Feature>
      <psf:Feature name="psk:JobDuplexAllDocumentsContiguously">
        <psf:Option name="psk:OneSided" />
      </psf:Feature>
    </psf:PrintTicket>

    Thanks!

    Roger

    Thursday, July 11, 2013 3:20 PM