We are running Aspose.PDF for Java 4.5.1, running in Java 7.
We copied the code straight from the section into a test class: Replace Text Using a Regular Expression
input.pdf contents:
Here is a test based on aspose knowledge base: 1990-2000
Here is another test 2500-3000 and on the same line: 1990-2000
Updated_Text.pdf contents:
Here is a test based on aspose knowledge base: New Phrase
Here is another test New Phrase and on the same line: 1990-2000
Note: I highlighted the instance that I thought should have been replaced but was not.
We need to figure out a way to get Aspose.PDF to replace all matches on a line, not just the first match.
I have attached both PDF files for your reference.
Thank you very much,
Philip