[ 
https://issues.apache.org/jira/browse/PDFBOX-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15261773#comment-15261773
 ] 

Jerrol Etheredge commented on PDFBOX-3316:
------------------------------------------

Used the new addComment() method to add the PDF comments in our software and it 
is working perfectly. Thanks for adding it!

> 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, 2.0.1, 2.0.2, 2.1.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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to