How to extract PDF Data from PDF File using PDF.js

How to extract PDF Data from PDF File using PDF.js

Recoding

3 года назад

44,343 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Peak One Painters
Peak One Painters - 21.05.2023 19:16

cant get this to work. :( its throwing weird errors asking me to use a 'legacy'-build because it lacks native functionality

Ответить
Subhan Ahmed Khan
Subhan Ahmed Khan - 20.05.2023 12:27

Not getting font name as expected, instead getting some no. like g_d0_f2.

Ответить
ARPIT GUPTA
ARPIT GUPTA - 13.01.2023 14:32

This code is working fine 👍

Ответить
shekhar
shekhar - 06.10.2022 13:41

getting this error: Cannot find module 'pdfjs-dist/es5/build/pdf'

Ответить
Jeff
Jeff - 19.05.2022 11:18

const file = event.target.files[0];
const uri = URL.createObjectURL(file);
var pdf = await pdfjs.getDocument({ url: uri });
var page = await pdf.getPage(1); <---fails here.

Ответить
Jeff
Jeff - 19.05.2022 11:10

is the src from const file= event.target.files[0];? and then to const src= URL.createObjectURL(file); ? What is the src ?

Ответить
Jeff
Jeff - 19.05.2022 11:08

getPage iis not a function?

Ответить
Jadeclon
Jadeclon - 05.05.2022 09:32

Great Video, works fine! Note that you have to define the const pdfjs = require("pdfjs-dist/legacy/build/pdf"); like this now

Ответить
Sameh Khalil
Sameh Khalil - 20.03.2022 01:57

Thank you how can I extract data from fields in the PDF. I know the fields names

Ответить
TryHuck:D
TryHuck:D - 03.01.2022 20:32

Excelent video, How do I extract images?

Ответить
Robert Troop
Robert Troop - 18.10.2021 23:11

what is in the .vscode folder? If you would not mind?

Ответить
Irfan Bhuiyan
Irfan Bhuiyan - 29.09.2021 18:01

Is it possible to run this without node.js?

Ответить
Mateus Almeida
Mateus Almeida - 08.09.2021 18:17

Can i modify the pdf document with this library? Like change the content of the hyperlinks, or modifying some words in the title?

Ответить
Bill Miller
Bill Miller - 23.08.2021 01:03

The example does not work. Thumbs down.

Ответить
Jarboe Solutions
Jarboe Solutions - 02.08.2021 21:34

Error: Cannot find module 'pdfjs-dist/es5/build/pdf'

Ответить
Smart Cris
Smart Cris - 15.07.2021 17:02

what if PDF data is an embedded JPEG ?

Ответить
Jimmy Lex Fernández R
Jimmy Lex Fernández R - 10.07.2021 23:54

Good video, but how do I extract images from a pdf file?

Ответить
manoj tewari
manoj tewari - 25.06.2021 16:31

this code is not woking ...please tell your version

Ответить
Andre Hasibuan
Andre Hasibuan - 04.06.2021 10:10

how to solved this Uncaught (in promise) TypeError: Cannot read property 'getDocument' of undefined ??

Ответить
Alison Prieto
Alison Prieto - 02.05.2021 06:01

Excelente trabajo

Ответить
Ahmad Hasan
Ahmad Hasan - 02.05.2021 05:49

👍😍

Ответить