Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4060

Slow rendering of PDF file with DeviceN jpeg file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5, 2.0.8
    • 2.0.9, 3.0.0 PDFBox
    • Rendering

    Description

      (File submitted by Soon Keong Tan on the user mailing list)

      There is a large jpeg file (5349 x 3806) that uses a DeviceN colorspace which in turn is based on CMYK. There's some slowness due to the type0 convert function from DeviceN to CMYK, but this is less than 10%. Most time is from converting the CMYK to RGB, one pixel at a time. (Because of the DeviceN colorspace we can't use bulk conversion, which may or may not be faster)

      jdk: 1.7.0_72

      benchmarks:

      (1) 1.8.13 - 1.5 mins
      (2) 2.0.5 - 6.18 mins
      (3) 2.0.8 - 6.35 mins

      Attachments

        1. PDFBOX-4060-Patch.txt
          3 kB
          Andreas Lehmkühler
        2. PDFBOX-4060-veryslow.pdf
          4.62 MB
          Tilman Hausherr

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: