PHPackages                             yushkevichv/pdf-cad-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. yushkevichv/pdf-cad-reader

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

yushkevichv/pdf-cad-reader
==========================

Parse PDF CAD files for get index meta info and decoded stream vector data

0.3.3(6y ago)032MITPHPPHP ^7.1CI failing

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yushkevichv/pdf-cad-reader)[ Packagist](https://packagist.org/packages/yushkevichv/pdf-cad-reader)[ RSS](/packages/yushkevichv-pdf-cad-reader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (14)Used By (0)

Parser PDF-CAD files
====================

[](#parser-pdf-cad-files)

It is standalone PHP Library, provide simple API for get common index information about PDF file and get decoded stream vecctor data.

Parser use TCPDF library and common parsing ideas and code from [PDF Parser](https://github.com/smalot/pdfparser/)

Install
-------

[](#install)

```
composer require "yushkevichv/pdf-cad-reader"

```

Usage
-----

[](#usage)

```
$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', '');
```

### Structure of PDFObject Index

[](#structure-of-pdfobject-index)

```
[
    'root' ,
    'info' => [
        'width',
        'height',
        'rotate'
    ],
    'mappers' => [
        'layers' => [
            'ocCode' => 'id'
         ],
        'streams' => [
            'id'
        ],
        'fonts' => [
            'fontCode' => [
                'layer',
                'fontFamily',
                'font' => [
                    'code',
                    'name',
                    'encoding',
                    'type',
                    'flags',
                    'composite',
                    'subType',
                    'fontInfo' => [
                        'fontFamily',
                        'fontWeight',
                        'fontBox' => [],
                        'ascent',
                        'descent',
                        'leading',
                        'capHeight'
                    ],
                    'glyphIndexArray' => [],
    '               'CIDSystemInfo' => [
                        'Registry',
                        'Ordering',
                        'Supplement'
                    ]
                ]
            ]
        ]
    ],
    'layers' => [
        'id' => 'name'
    ]
]

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

9

Last Release

2429d ago

PHP version history (3 changes)0.1.1PHP ^7.4

0.2.0PHP ^7.0

0.3.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1c808ca95fe769b86d27804b136e60e99cc1b2b5d9440f0cc7868b8ad9a55ec?d=identicon)[yushkevichv](/maintainers/yushkevichv)

---

Top Contributors

[![yushkevichv](https://avatars.githubusercontent.com/u/2371017?v=4)](https://github.com/yushkevichv "yushkevichv (49 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yushkevichv-pdf-cad-reader/health.svg)

```
[![Health](https://phpackages.com/badges/yushkevichv-pdf-cad-reader/health.svg)](https://phpackages.com/packages/yushkevichv-pdf-cad-reader)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
