Advertisement
aliakbarbeda2

OCR

Oct 10th, 2022
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function OCR(e){let t=UrlFetchApp.fetch(e).getBlob(),i={title:t.getName(),mimeType:t.getContentType()},o=Drive.Files.insert(i,t,{ocr:!0});hasil_ocr=DocumentApp.openById(o.id).getBody().getText(),Drive.Files.remove(o.id)}
  2.  
  3. //OCR('urlfile')
  4. output hasil ocr variabel hasil_ocr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement