{"id":15287303,"url":"https://github.com/borsaco/tcpdfbundle","last_synced_at":"2026-05-04T06:35:08.299Z","repository":{"id":56951182,"uuid":"195847706","full_name":"borsaco/TCPDFBundle","owner":"borsaco","description":"A bundle to facilitate using TCPDF for PDF generation in Symfony applications","archived":false,"fork":false,"pushed_at":"2019-07-15T07:37:43.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T02:48:21.578Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borsaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-08T16:15:49.000Z","updated_at":"2019-07-15T07:37:44.000Z","dependencies_parsed_at":"2022-08-21T09:20:30.536Z","dependency_job_id":null,"html_url":"https://github.com/borsaco/TCPDFBundle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FTCPDFBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FTCPDFBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FTCPDFBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borsaco%2FTCPDFBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borsaco","download_url":"https://codeload.github.com/borsaco/TCPDFBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245200679,"owners_count":20576673,"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","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-30T15:27:31.072Z","updated_at":"2026-05-04T06:35:08.267Z","avatar_url":"https://github.com/borsaco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"TCPDFBundle\n=======================\n\nThis bundle facilitates easy use of the TCPDF PDF generation library in\nSymfony applications.\n\nInstallation\n------------\n\n### Step 1: Setup Bundle and dependencies\n```\ncomposer require borsaco/tcpdf-bundle\n```\n\n### Step 2: Enable the bundle in the kernel\n\nAdd the bundle to the `registerBundles()` method in your kernel:\n\n``` php\n// app/AppKernel.php\n\u003c?php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        // ...\n        new Borsaco\\TCPDFBundle\\TCPDFBundle(),\n    );\n}\n```\n\nUsing TCPDF\n-----------\n\nYou can obtain the `tcpdf` service from the container,\nand then create a new TCPDF object via the service:\n\n``` php\n$pdfObj = $this-\u003econtainer-\u003eget(\"tcpdf\")-\u003ecreate();\n```\n\nFrom hereon in, you are using a TCPDF object to work with as normal.\n\nUsing a custom class\n--------------------\n\nIf you want to use your own custom TCPDF-based class, you can use\nthe `class` parameter in your configuration eg in `config.yml`:\n\n``` yaml\ntcpdf:\n    class: 'Acme\\MyBundle\\MyTCPDFClass'\n```\n\nThe class must extend from the `TCPDF` class; an exception will be\nthrown if this is not the case.\n\nExamples\n--------\nThis bundle also supports Persian and Arabic languages. \n\nsee example on:  https://tcpdf.org/examples/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsaco%2Ftcpdfbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborsaco%2Ftcpdfbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborsaco%2Ftcpdfbundle/lists"}