{"id":29646328,"url":"https://github.com/xp-forge/pdf-parser","last_synced_at":"2025-07-22T02:38:53.388Z","repository":{"id":300563302,"uuid":"1006460359","full_name":"xp-forge/pdf-parser","owner":"xp-forge","description":"PDF Parser","archived":false,"fork":false,"pushed_at":"2025-06-22T11:56:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T12:32:01.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xp-forge.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T10:21:07.000Z","updated_at":"2025-06-22T11:56:12.000Z","dependencies_parsed_at":"2025-06-22T12:42:42.985Z","dependency_job_id":null,"html_url":"https://github.com/xp-forge/pdf-parser","commit_stats":null,"previous_names":["xp-forge/pdf-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xp-forge/pdf-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fpdf-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fpdf-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fpdf-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fpdf-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-forge","download_url":"https://codeload.github.com/xp-forge/pdf-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fpdf-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266413568,"owners_count":23924760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-22T02:38:52.780Z","updated_at":"2025-07-22T02:38:53.376Z","avatar_url":"https://github.com/xp-forge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PDF Parser\n==========\n\n[![Build status on GitHub](https://github.com/xp-forge/pdf-parser/workflows/Tests/badge.svg)](https://github.com/xp-forge/pdf-parser/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.4+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_4plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-forge/pdf-parser/version.svg)](https://packagist.org/packages/xp-forge/pdf-parser)\n\nParses PDF files to extract text and images.\n\nExample\n-------\nLow-level usage:\n\n```php\nuse com\\adobe\\pdf\\PdfReader;\nuse util\\cmd\\Console;\nuse io\\streams\\FileInputStream;\n\n$reader= new PdfReader(new FileInputStream($argv[1]));\n\n// Create objects lookup table while streaming\n$objects= $trailer= [];\nforeach ($reader-\u003eobjects() as $kind =\u003e $value) {\n  if ('object' === $kind) {\n    $objects[$value['id']-\u003ehashCode()]= $value['dict'];\n  } else if ('trailer' === $kind) {\n    $trailer+= $value;\n  }\n}\n\nConsole::writeLine('Trailer: ', $trailer);\n\n// Optional meta information like author and creation date\nif ($info= ($trailer['Info'] ?? null)) {\n  Console::writeLine('Info: ', $objects[$info-\u003ehashCode()]);\n}\n\n// Root catalogue and pages enumeration\nConsole::writeLine('Root: ', $objects[$trailer['Root']-\u003ehashCode()]);\nConsole::writeLine('Pages: ', $objects[$trailer['Pages']-\u003ehashCode()]);\n```\n\nSee also\n--------\n* https://pdfa.org/resource/iso-32000-2/\n* https://github.com/pdf-association\n* https://opensource.adobe.com/dc-acrobat-sdk-docs/pdflsdk/#pdf-reference","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fpdf-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-forge%2Fpdf-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fpdf-parser/lists"}