I am using pdf4llm to transform a pdf to markdown but when I use the method 'to_markdown' and pass the pdf path I get this error 'not a textpage of this page'.
This code is inside a method that is executed when I make a call to an api (with fast-api python) that I have running locally.
When I have executed it without api or anything it has not failed me but it has been to put it in an execution of an endpoint and when several users call to that endpoint it fails me in some of the pdf, not in all of them.
Any idea why this might be or what the error 'not a textpage of this page' means?
I am using pdf4llm to transform a pdf to markdown but when I use the method 'to_markdown' and pass the pdf path I get this error 'not a textpage of this page'.
This would be the code that I execute:
This code is inside a method that is executed when I make a call to an api (with fast-api python) that I have running locally.
When I have executed it without api or anything it has not failed me but it has been to put it in an execution of an endpoint and when several users call to that endpoint it fails me in some of the pdf, not in all of them.
Any idea why this might be or what the error 'not a textpage of this page' means?