Registry / serialization / smalot-pdfparser

smalot-pdfparser

JSON →
library2.12.5phppackagistunverified

Pdf parser library. Can read and extract information from pdf file.

composer require smalot/pdfparser
INSTALL
IMPORT
SIG · SMALOT-PDFPARSER
S
smalot-pdfparser
serializationphpv2.12.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
use Smalot\PdfParser\Parser;

Parse a PDF file and extract its text content.

use Smalot\PdfParser\Parser; $parser = new Parser(); $pdf = $parser->parseFile('document.pdf'); echo $pdf->getText();
Debug
Known issues
gotchaMay not handle all PDF formats correctly; complex layouts may fail.
fix
Test with your PDF files and consider fallback libraries for edge cases.
affects: >=2.0.0
Upgrade
Version history
2.12.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
smalot-pdfparser — pip install smalot-pdfparser · libregistry