PHP code example of yushkevichv / pdf-cad-reader

1. Go to this page and download the library: Download yushkevichv/pdf-cad-reader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yushkevichv / pdf-cad-reader example snippets


$pdfReader = new PDFCadReader(); 
$pdfObject = $pdfReader->parseFile($pdfFilePath);

// get common information about pdf file and mappers
$pdfObject->getIndex();

// get array of decodedd streams
$pdfObject->getStreamData();

// decode text from stream
$pdfObject->decodeText('F1', '<02450262026b026c0268025c>');