[
https://issues.apache.org/jira/browse/PDFBOX-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16004650#comment-16004650
]
Tilman Hausherr commented on PDFBOX-3316:
-----------------------------------------
You can't use the parser, you would have to read the content stream yourself
with PDPage.getContents().
In the future please use the user mailing list, as your question is only
loosely related to the (closed) issue.
> 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, 3.0.0
> Reporter: Jerrol Etheredge
> Assignee: Tilman Hausherr
> Priority: Minor
> Fix For: 2.0.2, 3.0.0
>
>
> 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.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]