{"id":28061275,"url":"https://github.com/rospdf/pdf-php","last_synced_at":"2025-05-12T09:55:38.765Z","repository":{"id":8448878,"uuid":"58448904","full_name":"rospdf/pdf-php","owner":"rospdf","description":"Official R\u0026OS PHP Pdf repository","archived":false,"fork":false,"pushed_at":"2024-01-25T07:19:42.000Z","size":5812,"stargazers_count":144,"open_issues_count":27,"forks_count":65,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-02T23:03:05.097Z","etag":null,"topics":["native","pdf-php","php","ros"],"latest_commit_sha":null,"homepage":"http://pdf-php.sourceforge.net/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rospdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2016-05-10T09:44:43.000Z","updated_at":"2025-02-18T08:48:26.000Z","dependencies_parsed_at":"2024-06-18T12:29:00.032Z","dependency_job_id":"4d31384c-ce4f-44d5-b952-f66fbffea1d1","html_url":"https://github.com/rospdf/pdf-php","commit_stats":{"total_commits":323,"total_committers":21,"mean_commits":"15.380952380952381","dds":0.4643962848297214,"last_synced_commit":"fce993f08f99305569bb238644c5c35c0db0f85a"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rospdf%2Fpdf-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rospdf%2Fpdf-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rospdf%2Fpdf-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rospdf%2Fpdf-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rospdf","download_url":"https://codeload.github.com/rospdf/pdf-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253391393,"owners_count":21900948,"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":["native","pdf-php","php","ros"],"created_at":"2025-05-12T09:55:37.962Z","updated_at":"2025-05-12T09:55:38.758Z","avatar_url":"https://github.com/rospdf.png","language":"PHP","readme":"# ROS PHP Pdf creation class\n\n[![Latest Stable Version](https://poser.pugx.org/rospdf/pdf-php/v/stable)](https://packagist.org/packages/rospdf/pdf-php)\n[![Total Downloads](https://poser.pugx.org/rospdf/pdf-php/downloads)](https://packagist.org/packages/rospdf/pdf-php)\n[![Daily Downloads](https://poser.pugx.org/rospdf/pdf-php/d/daily)](https://packagist.org/packages/rospdf/pdf-php)\n[![License](https://poser.pugx.org/rospdf/pdf-php/license)](https://packagist.org/packages/rospdf/pdf-php)\n[![Build](https://github.com/rospdf/pdf-php/actions/workflows/ci-build.yml/badge.svg)](https://github.com/rospdf/pdf-php/actions/workflows/ci-build.yml)\n[![Donations Badge](https://raw.githubusercontent.com/k4m4/donations/master/images/badge.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CCU8QYD549JCU\u0026source=url)\n\n![ros.jpg](https://raw.githubusercontent.com/rospdf/pdf-php/master/ros.jpg \"R\u0026OS PHP Pdf creation class\")\n\nThis is the official GIT clone from the R\u0026OS PHP Pdf class previously stored on [sourceforge.net/projects/pdf-php](https://sourceforge.net/projects/pdf-php/). Development will take place here now.\n\nThe R\u0026OS Pdf class is used to generate PDF Documents using PHP without installing any additional modules or extensions\nIt comes with a base class called \"Cpdf.php\" plus a helper class \"Cezpdf.php\" to generate tables, add backgrounds and provide paging.\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/rospdf/pdf-php/blob/master/readme.pdf\"\u003eDOCUMENTATION\u003c/a\u003e :\n    \u003ca href=\"https://pdf-php.sourceforge.net/\"\u003eWEBSITE\u003c/a\u003e :\n    \u003ca href=\"CONTRIBUTING.md\"\u003eCONTRIBUTING\u003c/a\u003e\n\u003c/div\u003e\n\n## Features\n- Quick and easy to use\n- Support for extension classes\n- Unicode and ANSI formatted text\n- Custom TTF fonts and font subsetting (version \u003e= 0.11.8)\n- Auto page and line breaks\n- Text alignments (left, right, center, justified)\n- Linked XObjects\n- Internal and external links\n- Compression by using gzcompress\n- Encryption 40bit, 128bit since PDF 1.4\n- Image support for JPEG, PNG and GIF (partly)\n- Template support\n\n## Installation\n\n### Manual Download\n\nOpen the [RELEASE](https://github.com/rospdf/pdf-php/releases) page and pick the latest version to download.\n\nExtract the archive into your project directory\n\n### Clone via git\n\nYou can also use git to install it using:\n\n    git clone https://github.com/rospdf/pdf-php.git\n    git checkout \u003clatest-version\u003e\n\t\n\n### Installation via composer\n\nThis library is also available on the dependency manager `composer` - https://packagist.org/packages/rospdf/pdf-php\n\nPlease follow the steps [here](https://getcomposer.org/download/) to install. Once this is done one simple command will get all dependencies for the package `rospdf/pdf-php`\n\n\t./composer.phar require rospdf/pdf-php\n\nFor more details on how to use `composer` please refer to the documentation - https://getcomposer.org/doc/\n\n### Example\n\n```php\n\u003c?php\n\ninclude 'src/Cezpdf.php'; // Or use 'vendor/autoload.php' when installed through composer\n\n// Initialize a ROS PDF class object using DIN-A4, with background color gray\n$pdf = new Cezpdf('a4','portrait','color',[0.8,0.8,0.8]);\n// Set pdf Bleedbox\n$pdf-\u003eezSetMargins(20,20,20,20);\n// Use one of the pdf core fonts\n$mainFont = 'Times-Roman';\n// Select the font\n$pdf-\u003eselectFont($mainFont);\n// Define the font size\n$size=12;\n// Modified to use the local file if it can\n$pdf-\u003eopenHere('Fit');\n\n// Output some colored text by using text directives and justify it to the right of the document\n$pdf-\u003eezText(\"PDF with some \u003cc:color:1,0,0\u003eblue\u003c/c:color\u003e \u003cc:color:0,1,0\u003ered\u003c/c:color\u003e and \u003cc:color:0,0,1\u003egreen\u003c/c:color\u003e colours\", $size, ['justification'=\u003e'right']);\n// Output the pdf as stream, but uncompress\n$pdf-\u003eezStream(['compress'=\u003e0]);\n?\u003e\n```\n\n## Contributors\n\n[ole1986](http://github.com/ole1986) is lead developer. \n\nSee the full list of [contributors](https://github.com/rospdf/pdf-php/graphs/contributors).\n","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=CCU8QYD549JCU\u0026source=url"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frospdf%2Fpdf-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frospdf%2Fpdf-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frospdf%2Fpdf-php/lists"}