Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4899809

PrintJob ignores the destination attribute when printing URL.POSTSCRIPT on win32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.0, 1.4.2
    • client-libs
    • 2d
    • tiger
    • generic, x86
    • generic, windows_xp
    • Verified

      PrintService obtained through PrintServiceLookup by looking up DocFlavor.URL.POSTSCRIPT and Destination attribute does not honor the destination attribute. isDocFlavorSupported() returns true for URL.POSTSCRIPT and isAttributeValueSupported(destination attr, DocFlavor.URL.POSTSCRIPT) also returns true. Hence I assume that the print service supports Destination attribute for DocFlavor.URL.POSTSCRIPT. I just tried printing a URL pointing to a postscript file to a file and the print job still prints it to the printer though destination attribute has been added explicitly. If printing postscript to a file is not supported, the above mentioned methods must return false to indicate the same. This is noticed only on win32 platforms. On solaris, output is going to the specified file and hence works as expected.
      This is seen right from JDK1.4.

      I have attached a sample code. Execute the sample code. If the output still goes to the printer then the bug is reproduced.

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: