You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jerrol Etheredge (JIRA)" <ji...@apache.org> on 2016/04/15 09:56:25 UTC

[jira] [Created] (PDFBOX-3316) Add comment to PDF

Jerrol Etheredge created PDFBOX-3316:
----------------------------------------

             Summary: Add comment to PDF
                 Key: PDFBOX-3316
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3316
             Project: PDFBox
          Issue Type: Improvement
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Jerrol Etheredge
            Priority: Minor


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");
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org