What version of PDFbox are you using? We removed that functionality in 2.0 because it was fundamentally broken. The code you link to is still available in PDFBox 1.8.x, but it doesn’t work properly - if you’re lucky it will work on simple PDF files.
— John > On 11 May 2015, at 10:43, David Lee <[email protected]> wrote: > > Hi, > > I am very eager to implement the following code, but Tj or TJ returning > nothing, so the rest of the code is not working. I am using it with a very > simple pdf (attached). > > https://svn.apache.org/repos/asf/pdfbox/tags/1.5.0/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceString.java > > <https://svn.apache.org/repos/asf/pdfbox/tags/1.5.0/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/ReplaceString.java> > > I will be glad to know what's wrong. > > Thanks. > > Sam > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]

