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

macOS: Print content cut off when width > height with portrait orientation

    XMLWordPrintable

Details

    • 2d
    • b13
    • generic
    • os_x

    Backports

      Description

        Steps to reproduce:
        - Run the attached CutOffImage sample on macOS.

        The sample prints four rectangles:
        1. size 300x100, portrait orientation
        2. size 300x100, landscape orientation
        3. size 100x300, portrait orientation
        4. size 100x300, landscape orientation

        The first image (300x100, portrait) where width is larger than height with portrait orientation and fourth (100x300, landscape) where height is large than width with landscape orientation cut off.

        See attached cut-of-image.pdf where the content has been printed to pdf.

        Attachments

          1. print-arrow-paper-a5-macos-jdk-fix.pdf
            86 kB
          2. print-arrow-paper-a5-macos-jdk19.pdf
            86 kB
          3. PrintArrowPaperA5.java
            6 kB
          4. print-a4-jdk-fix.pdf
            161 kB
          5. print-a4-jdk19.pdf
            161 kB
          6. main.m
            3 kB
          7. jfx-image-300x100-portrait-jdk8.pdf
            143 kB
          8. jfx-image-300x100-portrait-jdk17.pdf
            143 kB
          9. image-PORTRAIT-600x200.png
            image-PORTRAIT-600x200.png
            4 kB
          10. image-PORTRAIT-300x100.png
            image-PORTRAIT-300x100.png
            3 kB
          11. image-PORTRAIT-100x300.png
            image-PORTRAIT-100x300.png
            3 kB
          12. image-LANDSCAPE-300x100.png
            image-LANDSCAPE-300x100.png
            3 kB
          13. image-LANDSCAPE-100x300.png
            image-LANDSCAPE-100x300.png
            3 kB
          14. FxPrintImageWithHelper.java
            3 kB
          15. cut-of-image.pdf
            27 kB
          16. cut-off-image-fix.pdf
            27 kB
          17. CutOffImage.java
            4 kB
          18. cut-jdk-11.0.3.pdf
            21 kB
          19. cut-jdk-11.0.2.pdf
            22 kB
          20. before-fix-all.pdf
            27 kB
          21. before-fix-4.pdf
            9 kB
          22. before-fix-3.pdf
            9 kB
          23. before-fix-2.pdf
            7 kB
          24. before-fix-1.pdf
            7 kB
          25. after-fix-all.pdf
            27 kB
          26. after-fix-4.pdf
            9 kB
          27. after-fix-3.pdf
            9 kB
          28. after-fix-2.pdf
            7 kB
          29. after-fix-1.pdf
            7 kB

          Issue Links

            Activity

              People

                alexsch Alexandr Scherbatiy
                alexsch Alexandr Scherbatiy
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: