
I’m following a tutorial and trying to load a pdf from a bucket in nextjs. I’ve looked through the storage api and the closest end point I’ve seen is “get file for view” but it only returns a url rather than the actual pdf content.
Context, I’m trying to implement the common chat with pdf feature. I need to load the pdf first and then split it…. I’d also prefer to store the pdf first in the bucket and then bring it down rather than just receiving the document from the user’s file input.
How would you advice I implement this pls?

The URL that’s returned should be the PDF? So you could just pull the file with that URL.

Yh, that’s what I’ve been initially trying to do using langchain’s webPDFLoader but it’s been proving difficult for me. I’m no where near an expert in this. I’m still following a tutorial 😞

How are you supposed to load the PDF?
Recommended threads
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Hi im using vvs studio to make a charact...
my game involves magic , leveling up aka "phase" max phase is 30 each 10 20 30 theres awakening 1 2 3 i want to make a character builder so that players can fig...
- Limit File Upload count?
Is there a way to limit the number of files a user can upload? I know there's a limit of file size but in my case I'd like to limit the user to only upload x am...
