{"id":24780421,"url":"https://github.com/webgriffe/pdftotext-bundle","last_synced_at":"2025-10-12T05:30:35.363Z","repository":{"id":8675320,"uuid":"10333409","full_name":"webgriffe/pdftotext-bundle","owner":"webgriffe","description":"This simple Symfony 2 bundle allows you to convert an input PDF file into plain text.","archived":false,"fork":false,"pushed_at":"2017-04-24T16:36:28.000Z","size":153,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-19T19:51:56.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/webgriffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-28T10:41:44.000Z","updated_at":"2020-04-23T16:52:26.000Z","dependencies_parsed_at":"2022-09-11T14:01:50.405Z","dependency_job_id":null,"html_url":"https://github.com/webgriffe/pdftotext-bundle","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/webgriffe/pdftotext-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fpdftotext-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fpdftotext-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fpdftotext-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fpdftotext-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webgriffe","download_url":"https://codeload.github.com/webgriffe/pdftotext-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webgriffe%2Fpdftotext-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010327,"owners_count":26084738,"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-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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-01-29T10:30:35.867Z","updated_at":"2025-10-12T05:30:34.995Z","avatar_url":"https://github.com/webgriffe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PDF to Text Symfony2 Bundle\n===========================\n\nThis Symfony2 bundle allows you to convert an input PDF file into plain text.\n\nConversion is made through `pdftotext` command-line utilty ([http://en.wikipedia.org/wiki/Pdftotext](http://en.wikipedia.org/wiki/Pdftotext)). `pdftotext` is part of [Xpdf](http://www.foolabs.com/xpdf/index.html) software suite, is included in many Linux distributions and that should be available also for Mac OS X and Windows platforms.\n\nInstallation\n------------\nInstall this bundle as any other Symfony2 bundle.\n\n### Symfony \u003e= 2.1.x\nAdd the following requirement to your `composer.json`:\n\n\t\"require\": {\n\t\t…\n\t\t\"webgriffe/pdftotext-bundle\": \"dev-master\"\n\t}\nInstall the bundle with the following command:\n\n\t$ composer update webgriffe/pdftotext-bundle\n\n\nRegister the bundle in the `AppKernel`:\n\n\tpublic function registerBundles()\n    {\n    \t…\n    \tnew Webgriffe\\PdfToTextBundle\\WebgriffePdfToTextBundle(),\n    }\n\n### Symfony 2.0.x    \t\n\nAdd the following requirement in your `deps` file:\n\n\t…\n\t[WebgriffePdfToTextBundle]\n\t\tgit=git://github.com/webgriffe/pdftotext-bundle.git\n\t\ttarget=bundles/Webgriffe/PdfToTextBundle\n\nInstall the bundle with the following command:\n\t\n\t$ bin/vendors install\n\t\nRegister the bundle in the `AppKernel`:\n\n\tpublic function registerBundles()\n    {\n    \t…\n    \tnew Webgriffe\\PdfToTextBundle\\WebgriffePdfToTextBundle(),\n    }\n\t\nUsage\n-----\n\nSimply, you can get the `PdfToTextConverter` from DIC and get the plain text string.\n\n\t// Acme\\MyBundle\\Controller\\MyController\n\t\n\tpublic function myAction()\n\t{\n\t\t$pdfFile = '/path/to/file.pdf';\n\t\t$pdfToTextConverter = $this-\u003eget('webgriffe_pdf_to_text.converter');\n\t\t$pdfText = $pdfToTextConverter-\u003econvert($pdfFile);\n\t\t\n\t\treturn new \\Symfony\\Component\\HttpFoundation\\Response($pdfText);\n\t}\n\t\nYou can also specify the output encoding (default is `UTF-8`).\n\n\t$pdfText = $pdfToTextConverter-\u003econvert($pdfFile, 'ISO-8859-1');\n\nSpecify pdftotext binary path\n-----------------------------\n\nYou can specify the `pdftotext` binary path in your `config.yml`:\n\n```yml\nwebgriffe_pdf_to_text:\n    bin_path: /usr/local/bin/pdftotext\n```\n\nCredits\n-------\n\nThis bundle has been developed by [Webgriffe®](http://www.webgriffe.com). Please, report to us any bug or suggestion by GitHub issues.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fpdftotext-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebgriffe%2Fpdftotext-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebgriffe%2Fpdftotext-bundle/lists"}