Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
May 30, 2024 May 30, 2024

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

TOPICS
PDF Extract API
542
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2024 May 30, 2024

Can you post the file in question?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 30, 2024 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2024 May 30, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 30, 2024 May 30, 2024
LATEST

Yes, it was all my fault!

 

Took a while to unpick but it's ok now.

 

Appreciate your response though!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources