Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0, 2.0.1, 2.0.2, 3.0.0 PDFBox
-
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");
}