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

Speed up SampledImageReader#getStencilImage()

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • None
    • Rendering

    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

              Unassigned Unassigned
              ssteiner Simon Steiner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: