I'm trying to extract JS from PDF files as a requirement of safe upload. Using pdfcpu I can extract pdf's objects by index, but one of the problems is that we're receiving bytes, is there a way to work with that instead of having to write it into a file on disk?
Also, does pdfcpu provides a way for extracting JS in a more declarative manner, instead of having to loop over each object?