Problem with pdfContent.replaceText

I have problem with using yours library in this simple code

import com.aspose.pdf.kit.*;
public class M238pdfCompress {
public static void main(String[] args) throws Exception


PdfContentEditor pdfContent = new PdfContentEditor();
try{
pdfContent.bindPdf("c:\\rtf.pdf");
pdfContent.replaceText("a","b");
pdfContent.save("c:\\kk.PDF");
}catch(Exception ex){
ex.printStackTrace();
}

}
}

I have this message at console:

java.lang.NullPointerException
at com.aspose.pdf.kit.f4.a(Unknown Source)
at com.aspose.pdf.kit.PdfContentEditor.replaceText(Unknown Source)
at M238pdfCompress.main(M238pdfCompress.java:28)

But this code works correct


import com.aspose.pdf.kit.*;
public class M238pdfCompress {
public static void main(String[] args) throws Exception {

PdfContentEditor pdfContent = new PdfContentEditor();
try{
pdfContent.bindPdf("c:\\rtf.pdf");
pdfContent.createBookmarks();
pdfContent.save("c:\\kk.PDF");
}catch(Exception ex){
ex.printStackTrace();
}

Hello Michal,

Thanks for considering Aspose.

We apologies for in convenience that you have faced in this reagard. I am sorry to inform that Replace text dose not work well and its a known issue in Aspose.Pdf.Kit

As soon as we have solution to this problem, we would be pelased to udpate youl.

whether the term is known to repair this mistake?
Best regards
Michal

Hi Michal,

I am afraid we can't resolve this problem in short time. Sorry for the inconvenience.

Whether there are any new messages on this issue?
Michal

Hi,

We have just resolved some issues about the feature of replacing text. Could you please send us a copy of your source PDF file to let us check if the fix works with it?

Thanks,