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

Speed up SampledImageReader#getStencilImage()

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:

      Description

      PDF from PDFBOX-1437
      java -jar ~/pdfbox_th/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage AA.pdf

      org.apache.pdfbox.pdmodel.graphics.color.PDDeviceGray.toRGBImage() 31.69913 11,472 ms (31.7%) 11,472 ms
      org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getStencilImage() 29.439924 10,654 ms (29.4%) 10,654 ms

      is there some alternative to
      for (int y = 0; y < height; y++)
      {
      for (int x = 0; x < width; x++)

      { op }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ssteiner1 simon steiner
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: