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

Investigate possible problems with 'custom images' during printing on OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 8, 9
    • client-libs
    • None
    • 2d

      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.

            dmarkov Dmitry Markov
            dmarkov Dmitry Markov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: