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

Add comment to PDF

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
    • 2.0.2, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      For our application we use some comment texts (prepended by a %) to mark content and perform text replacement.
      We currently use the appendRawCommands() method to add these, but since this method has been marked as deprecated since version 2.0.
      Would it be possible to add some like a addComment() method to PDPageContentStream?

      The code would probably be something trivial like:
      public void addComment(String comment) {
      output.write("%" + comment + "\n");
      }

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            jetheredge Jerrol Etheredge
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: