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

Performance problem with PDDocument.saveIncremental (when signing document)

    XMLWordPrintableJSON

Details

    Description

      Performance problem in class COSWriter:
      Constructor of COSWriter takes 2 args:

      COSWriter(OutputStream os, FileInputStream is)

      method saveIncremental in class PDDocument:

      saveIncremental(FileInputStream input, OutputStream output)

      It create COSWriter with this args. If I pass FileInputStream into saveIncremental then signing the document goes quite a long time.

      If you pass BufferedInputStream, the signing speed is increases. But alas, this is not possible, because the parameters of the method saveIncremental does not allow to do this.

      Attachments

        1. PDFBOX-1798.patch
          2 kB
          Dmytro Karimov

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              Dmytro.Karimov Dmytro Karimov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified