I need to parse through multiple PDF files in one of the folders in my Google Drive, and return the parsed information into a Google Sheet. (I have already worked with parsing through Gmail so I don't think this will be a problem for me)
However, the research I have done about this indicates that I will need to import a Library first into my script editor that can parse through PDF files.
I am trying to import the PDF.js Library, but I cannot find the script ID, so instead, I am trying to import the code into a Script file that can then be added as a Library into other scripts.
I have downloaded the Zip file from the repository on GitHub: https://github.com/mozilla/pdf.js
However, I am not sure which file to copy into the script editor? Should it be the file called "Builder.js"?
Sorry this is the first time I am interacting with GitHub.
EDIT: Current script looks something like this. Unlike email, I cannot retrieve the contents of the PDF file in text form so that I can pull out information I need
function getPDFfiles () {
const pdfFolder = DriveApp.getFolderById("myfolderid");
const files = pdfFolder.getFilesByType(MimeType.PDF);
let pdfNames = []
while (files.hasNext()) {
const file = files.next();
const fileName = file.getName();
pdfNames.push([fileName]);
}
generator.getRange(2, 1, pdfNames.length, pdfNames[0].length).setValues(pdfNames);
}; // getPDFfiles function ends