I used the ReplaceString example that comes with PDFBox on a PDF file I
have.  However, it does not find the text I want to replace.

 

   In looking at the code and putting in some debugging statements, I found
out that the code was looking for a "PDFOperator" operation 

(from the getOperation() method) of "Tj" and "TJ".  However, my PDF file has
neither.  

 

     Question:   Where can I find the list of all the operators that display
strings in a PDF file?  (Or is there an easier way to search and replace
strings?)

 

                              Thanks, Alan 

 

PDFOperator op = (PDFOperator)next;

                        //Tj and TJ are the two operators that display

                        //strings in a PDF

                        if( op.getOperation().equals( "Tj" ) )

 

 

 

Reply via email to