1wlEYkmDOSGb3Iuqd93a7cbQofcfwg5anjyvYmS3N4-nRAYHED8pVFaTY
- Download PDF file with
UrlFetchApp
- Convert
HTTPResponse
toUint8Array
- Extract content from binary with
PdfApp.extractText
async function myFunction() {
const result = UrlFetchApp.fetch("https://arxiv.org/pdf/2207.02098.pdf")
const binary = Uint8Array.from(result.getAs('application/pdf').getBytes())
console.log(await PdfApp.extractText(binary));
}
See LICENSE.
2023 (c) TANIGUCHI Masaya