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

PDDocument.importPage creates two inputstreams

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      PDDocument.importPage creates two inputstreams from page.getContents(), but uses one (for real). The first is only used to check if it exists.

              InputStream in = null;
              try
              {
                  in = page.getContents();
                  if (in != null)
                  {
                      PDStream dest = new PDStream(this, page.getContents(), COSName.FLATE_DECODE);
      

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            c.hoeflake Cornelis Hoeflake
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: