On Thu, 26 Feb 2026 03:05:57 GMT, Prasanta Sadhukhan <[email protected]> wrote:
>> On macOS, it creates valid PDF files, all the files are viewable in the >> Preview utility. >> >> On Windows, all these files open just fine in Firefox and Edge. > > I am not sure..It doesn't open for me in my Firefor or Edge too. The filetype > being created it seems xpif which is not pdf > > %-12345X@PJL JOB > @PJL XCPT <?xml version="1.0" encoding="UTF-8"?> > @PJL XCPT <!DOCTYPE xpif SYSTEM "xpif-v02082.dtd"> > @PJL XCPT <xpif version="1.0" cpss-version="2.07" xml:lang="en-US"> > > Also, other printing tests which uses Destination class like > java/awt/print/Dialog/PrintDlgApp.java > java/awt/print/PrinterJob/DeviceScale.java > java/awt/print/PrinterJob/PrintAfterEndTest.java > java/awt/print/PrinterJob/PrintCrashTest.java > java/awt/print/PrinterJob/PrintNullString.java > java/awt/print/PrinterJob/PrintTextPane.java > java/awt/print/PrinterJob/PrintToFileTest.java > all uses .prn or .ps so maybe there's a reason to it.. Whatever! I can change the extension, if you insist—it's not the point of the test at all. For me, the file inside starts with `%PDF-1.7`. How do I open `.prn` file? I remember I renamed `.prn` to `.pdf` quite a few times to view the result, and it always worked for me. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/29660#discussion_r2857922787
