-
Bug
-
Resolution: Duplicate
-
P4
-
8, 9
-
None
It looks like we support only limited set of image types for OSX platform, (see OSXOffScreenSurfaceData.createNewSurface()). If the type/format of the image does not meet predefined values we treat it as image with 'custom' type (BufferedImage.TYPE_CUSTOM), but it seems the code intended for handling this case is not implemented correctly (see corresponding code inside ImageSurfaceData.m and OSXOffScreenSurfaceData.java)
Steps to reproduce:
1. Download pdfbox application (this is stand alone java app; the jar file can be obtained from https://pdfbox.apache.org/download.cgi).
2. Run the application with pdf file from the attachment, (e.g. java -jar pdfbox-app-2.0.3.jar PrintPDF pdf_sample.pdf)
Expected result:
pdf document is printed correctly
Actual result:
pdf is printed, but there are the blank spaces instead of images.
Note: the problem is reproducible on the builds with the fix for JDK-8163889. On the builds w/o that changes , Java is crashed as described in JDK-8163889.
Steps to reproduce:
1. Download pdfbox application (this is stand alone java app; the jar file can be obtained from https://pdfbox.apache.org/download.cgi).
2. Run the application with pdf file from the attachment, (e.g. java -jar pdfbox-app-2.0.3.jar PrintPDF pdf_sample.pdf)
Expected result:
pdf document is printed correctly
Actual result:
pdf is printed, but there are the blank spaces instead of images.
Note: the problem is reproducible on the builds with the fix for JDK-8163889. On the builds w/o that changes , Java is crashed as described in JDK-8163889.
- duplicates
-
JDK-8186395 [macos] monochrome images via java.awt.print.Printable prints blank page
-
- Open
-