cpierce/pdf2text

Client library for extracting text form PDF

1.2 2023-08-28 01:20 UTC

This package is auto-updated.

Last update: 2025-03-28 05:38:56 UTC


README

PDF to Text Library

Related Information

This code is an improved version of what can be found at: http://www.webcheatsheet.com/php/reading_clean_text_from_pdf.php

http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf

Usage

<?php
$pdf = 'test.pdf';
$pdf2text = new \Pdf2text\Pdf2text($pdf);
$output = $pdf2text->decode();
var_dump($output);