On Wed, 25 Feb 2026 04:54:48 GMT, Prasanta Sadhukhan <[email protected]>
wrote:
>> Alexey Ivanov has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Use the first page of the rage in the filename
>
> test/jdk/java/awt/print/PrinterJob/PageRangesAuto.java line 97:
>
>> 95: String fileName = pageRange == null
>> 96: ? baseName + "-all.pdf"
>> 97: : String.format("%s-%d-%d.pdf",
>
> I believe `Destination` creates file in .prn or .ps format and not .pdf..
> https://docs.oracle.com/en/java/javase/24/docs/api/java.desktop/javax/print/attribute/standard/Destination.html
>
>> A common use for this attribute will be applications which want to redirect
>> output to a local disk file : eg."file:out.prn"
>
> I am not able to open this file atleast in Windows as Acrobat fails to
> recognize the file type even though its pdf
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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29660#discussion_r2852494527