Skip to main content
Participant
May 30, 2024
Question

Getting - ServiceApiError: BAD_PDF - Unable to extract content.: The input file is not a PDF file

  • May 30, 2024
  • 1 reply
  • 824 views

Hello

 

I've been using the ExtractPDF API for a while now but have recently been getting these errors:

ServiceApiError: BAD_PDF - Unable to extract content.: The input file is not a PDF file

 

The most recent had a tracking ID - 51ba6902-fd2d-4543-ad7a-e8b35a26d58c

and error code - BAD_PDF_FILE_TYPE

 

This is happening to files that I've put through the API before and they worked and they are PDF files.

 

Can anyone help with this?

 

Thanks

This topic has been closed for replies.

1 reply

Joel Geraci
Community Expert
Community Expert
May 30, 2024

Can you post the file in question?

Participant
May 30, 2024

Thanks for replying but I've backtracked through some changes I made to my code to an earlie version and the same files work so I think I've broken something.

 

Ironically the work I'd added was related to error handling!

Joel Geraci
Community Expert
Community Expert
May 30, 2024

That last sentence is pretty much my SoP... sadly.