smalot / pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.
GNU Lesser General Public License v3.0
2.3k stars 534 forks source link

Get text from PDF using PdfParser with table format or section wise get data. #660

Closed sagarsapariya93 closed 5 months ago

sagarsapariya93 commented 6 months ago

Hello I am using PdfParser in my php (CI) project. i am trying get text from pdf. I have multiple types of PDF like multiple types invoices with different layout of every PDF. I want some details in all pdf like (invoice number, Date, name,) also i want table of items. It is possible or not. This is urgent so replay me ASAP. My current Code is below $parser = new \Smalot\PdfParser\Parser(); $pdf = $parser->parseFile($file); $firstpage = $pdf->getPages()[0]; $text = $pdf->getText(); $data = $firstpage->getDataTm();

Thanks

k00ni commented 6 months ago

This is urgent so replay me ASAP.

Slow it down a bit buddy, we are not here to play support for you personally. If you act like this in other projects, you might not even get an answer. They will close and dismiss your issue faster than you think.

But I have a good day. Can you provide the PDFs which are not working?

k00ni commented 5 months ago

Not so urgent apparently.