-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0, 1.4.2
-
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.
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.
- duplicates
-
JDK-4967958 Cannot print to file under Windows
-
- Closed
-
- relates to
-
JDK-4940866 REG:PrintJobNoMoreEvents not triggered when printing INPUTSTREAM.POSTSCRIPT(w32)
-
- Closed
-