How do you track the location of PDPageContentStream's text output?
I am using Java to write output to a PDDocument , then appending that document to an existing one before serving it to the client. Most of it is working well. I only have a small problem trying to handle content overflow while writing to that PDDocument . I want to keep track of where text is being inserted into the document so that when the "cursor" so to speak goes past a certain point, I'll create a new page, add it to the document, create a new content stream, and continue as normal. Here is some code that shows what I'd like to do: // big try block PDDocument doc = new PDDocument();