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