We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Find and replace text in PDF using Aspose.PDF REST API

Using PhP to send a PDF to ASPOSE and using the text replace to replace {value} in the pdf with a value - say “hello”. But if the value I want is blank, I can seem to be able to replace {value} with a blank, ie: make the text {value} disappear from the PDF and have nothing replace it.

I get an error
{“TextReplaces[5].NewValue”:[“The NewValue field is required.”],"
as a reply

This is what I send as part of the API call

{“TextReplaces”:[{“OldValue”:"{value}",“NewValue”:"",“Regex”:false}]}

Got to be something simple!!

Thanks in advance

@iabbaskhan

We have noticed the reported issue and logged a ticket PDFCLOUD-1977 in our issue tracking system for your requirement. We will keep you updated about the issue resolution progress within this forum thread.

@iabbaskhan

Please note we have fixed the issue in the latest release of Aspose.PDF Cloud 21.4. Please try now, it should work.