Replace text in PDF using aspose-pdf3.3.0.java

Hi,

We have aspose total for java purchased in 2013. I think the version of Aspose PDF was 3.3.0. We have been using it with ColdFusion.
We need to use the same version to replace text in a PDF with text or image. Can anyone specify if such an action was /is possible in the version specified above. A sample code will be very helpful.

@Batrinux

Thanks for contacting support.

I am afraid that you are using a quite older version of the API, whereas it is always recommended to use latest version because it contains more fixes and new enhancements. However since you are using an older version, you may please use com.aspose.pdf.facades API, in order to replace text inside PDF document. For more information and sample code snippet for Java, please visit “Replace Text in an Existing PDF File (facades)” article in our API documentation.

In case of any further assistance, please feel free to let us know.

Hi Asad.ali,

Is it com.aspose.pdf.facades or com.aspose.facades?

Are both pdfContentEditor and pdfFileMend classes available there?

BTW I get the “class not found error” for both the paths “com.aspose.facades” and “com.aspose.pdf.facades” while trying to create objects of class “pdfFileMend” and “pdfContentEditor”.

@Batrinux

Thanks for your inquiry and sorry for the confusion.

It is com.aspose.pdf.facades and I have also updated it in my earlier reply.

In Facades API both pdfContentEditor and pdfFileMend classes were introduced, however it seems they were introduced in later version of the API than 3.3.0. Since you are using quite old version of the API, so I am afraid that we cannot test scenario using that version.

Please also note that, any fix or the enhancement (requested in older versions) has been provided in newer version of the API which is why we keep recommending our customers to use latest version always. We request you to please use Aspose.Pdf for Java 17.11 release and in case you face any issue while using latest version, please feel free to contact us. We will try our best to assist you accordingly.