Skip to content

tani/PDF.gs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF.js for Goole Apps Script

Script ID

1wlEYkmDOSGb3Iuqd93a7cbQofcfwg5anjyvYmS3N4-nRAYHED8pVFaTY

Usage

  1. Download PDF file with UrlFetchApp
  2. Convert HTTPResponse to Uint8Array
  3. 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));
}

License

See LICENSE.

2023 (c) TANIGUCHI Masaya

About

extract text from PDF in Google Apps Script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published