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

PDPageContent stream warns about overwriting in overwrite mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.11, 2.0.16
    • Fix Version/s: 2.0.17, 3.0.0 PDFBox
    • Component/s: Writing
    • Labels:
      None

      Description

      When updating page content stream the class PDContentStream warns about overwriting the content. Even thought the PDContentStream is explicitly set to overwrite mode.

      [o.a.p.p.PDPageContentStream] - You are overwriting an existing content, you should use the append mode

      This creates slight confusion when looking into logs.

       

      The problematic code is in constructor of org/apache/pdfbox/pdmodel/PDPageContentStream.java

       

      There should be additional check before logging the warning.

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              jnovacho Jose Novacho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: