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

Free Support Forum - aspose.cloud

Find and replace PDF text with Python returns 0 match

Hello, I wanted to try a basic text replace but I didn’t manage to make it works. The PDF is generated by Adobe Illustrator. I tried with various standard and compatibility when saving the file without success.

The response: {‘code’: 200, ‘matches’: 0, ‘status’: ‘OK’}

The code used (Python): https://pastebin.com/F9YZHyDk

The PDF:
sample.pdf (594.5 KB)
Adobe PDF Preset: [PDF/X-4:2008]
Standard: PDF/X-4:2010
Compatibility: Acrobat 7 (PDF 1.6)


It seems your input PDF document is non searchable(image only) PDF. Even Adobe Acrobat pro XI is unable to read the document.