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

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

XMLWordPrintable

    • 2d
    • b13
    • generic
    • os_x

        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.

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

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

                Created:
                Updated:
                Resolved: