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

PDDocument.importPage creates two inputstreams

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: