This message was posted using Page2Forum from Highlighting Text with replaceText Method - Aspose.Pdf.Kit for Java
Thank you very much for considering Aspose.
Could you please make sure that you’re using the latest version of Aspose.Pdf.Kit for Java? If you still find the same issue then please share the input PDF file along with the particular code snippet which you’re using at your end, so we could investigate the issue over here. You’ll be updated with the results accordingly.
We’re sorry for the inconvenience.
above issue exists with me. i am using the lates jar
I am currently evaluating Aspose. I have succeded in converting word document to pdf using aspose. Now i want to highlight certain words(case insensitive) in the obtained pdf . For that i am using the following code.
PdfContentEditor contentEditor = new PdfContentEditor();
TextProperties textProperties = new TextProperties();
contentEditor.replaceText(“development”, “development”, textProperties);
contentEditor.replaceText(“and”, “and”, textProperties);
My highlighted pdf is attached.Background color is not appearing properly behind the word “and”
and text development is not properly replaced in document. Please give me solution.