{"id":15080825,"url":"https://github.com/pguso/portabledocumentbundle","last_synced_at":"2026-02-19T19:01:48.394Z","repository":{"id":18935684,"uuid":"22155242","full_name":"pguso/PortableDocumentBundle","owner":"pguso","description":"Easy to use pdf service","archived":false,"fork":false,"pushed_at":"2014-07-25T08:33:11.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T16:25:55.868Z","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/pguso.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":"2014-07-23T15:00:27.000Z","updated_at":"2014-07-23T20:24:34.000Z","dependencies_parsed_at":"2022-08-02T15:00:12.919Z","dependency_job_id":null,"html_url":"https://github.com/pguso/PortableDocumentBundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pguso/PortableDocumentBundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2FPortableDocumentBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2FPortableDocumentBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2FPortableDocumentBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2FPortableDocumentBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pguso","download_url":"https://codeload.github.com/pguso/PortableDocumentBundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pguso%2FPortableDocumentBundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002964,"owners_count":26083488,"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-10T02:00:06.843Z","response_time":62,"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":"2024-09-25T05:31:50.405Z","updated_at":"2025-10-10T06:17:38.475Z","avatar_url":"https://github.com/pguso.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PortableDocumentBundle\n======================\n\nPortableDocumentBundle is a PHP (5.3+) wrapper for the mPDF Library.\nIt allows you to generate pdfs from html.\n\nInstallation\n------------\n\nWith [composer](http://packagist.org), add:\n\n```json\n{\n    \"require\": {\n        \"prg/portabledocument-bundle\": \"dev-master\"\n    }\n}\n```\n\nThen enable it in your kernel:\n\n```php\n// app/AppKernel.php\npublic function registerBundles()\n{\n    $bundles = array(\n        //...\n        new PRG\\PortableDocumentBundle\\PRGPortableDocumentBundle(),\n        //...\n```\n\n### Render a pdf document as response from a controller\n\n```php\n$pdfGenerator = $this-\u003eget('pguso.mpdf');\n\n$html = $this-\u003erenderView('YourBundle:Folder:file.html.twig', array(\n            'args' =\u003e $args\n        ));\n\nreturn new Response(\n          $pdfGenerator-\u003egenerateFromView($html, array(\n                'stylesheet' =\u003e '/pdf/style.css' //optional\n            ))\n        );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpguso%2Fportabledocumentbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpguso%2Fportabledocumentbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpguso%2Fportabledocumentbundle/lists"}