Find answers from the community

Updated 2 months ago

Loader

Hey Everyone,

I am trying to extract the text from the file using the following code-

#convert pdf to text
RemoteDepthReader = download_loader("RemoteDepthReader")
loader = RemoteDepthReader()

documents = loader.load_data(url=pdf_file_url)
pdf_text = documents[0].get_text()


its working on the local but when I put it on server, it only returns the text from the first page only.

Do anyone know why?
L
A
3 comments
Tbh I'm not sure. On your server is it creating more than one document object maybe?
Maybe you have an older code version locally
@Logan M thanks for checking this out. Both have same version
Add a reply
Sign up and join the conversation on Discord