{"id":14036787,"url":"https://github.com/uplg/PDFFormsFiller","last_synced_at":"2025-07-27T04:32:05.068Z","repository":{"id":62510590,"uuid":"113764272","full_name":"m1m1s1ku/PDFFormsFiller","owner":"m1m1s1ku","description":"Fill Acrobat forms easily using pure PHP ! 💪","archived":true,"fork":false,"pushed_at":"2018-01-14T02:22:31.000Z","size":1623,"stargazers_count":26,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-30T22:30:14.407Z","etag":null,"topics":["acrobat","fill","forms","fpdf","fpdi","pdf","php"],"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/m1m1s1ku.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":"2017-12-10T16:12:51.000Z","updated_at":"2024-09-21T12:55:09.000Z","dependencies_parsed_at":"2022-11-02T12:33:01.631Z","dependency_job_id":null,"html_url":"https://github.com/m1m1s1ku/PDFFormsFiller","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1m1s1ku%2FPDFFormsFiller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1m1s1ku%2FPDFFormsFiller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1m1s1ku%2FPDFFormsFiller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m1m1s1ku%2FPDFFormsFiller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m1m1s1ku","download_url":"https://codeload.github.com/m1m1s1ku/PDFFormsFiller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227762261,"owners_count":17815997,"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":["acrobat","fill","forms","fpdf","fpdi","pdf","php"],"created_at":"2024-08-12T03:02:13.864Z","updated_at":"2025-07-27T04:31:59.351Z","avatar_url":"https://github.com/m1m1s1ku.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# PDFFormsFiller\n\n[![forthebadge](http://forthebadge.com/images/badges/gluten-free.svg)](http://forthebadge.com)\n[![forthebadge](http://forthebadge.com/images/badges/contains-cat-gifs.svg)](http://forthebadge.com)\n\n[![Build Status](https://travis-ci.org/Ghostfly/PDFFormsFiller.svg?branch=master)](https://travis-ci.org/Ghostfly/PDFFormsFiller)\n[![Coverage Status](https://coveralls.io/repos/github/Ghostfly/PDFFormsFiller/badge.svg?branch=master)](https://coveralls.io/github/Ghostfly/PDFFormsFiller?branch=master)\n[![Total Downloads](https://poser.pugx.org/ghostfly/pdf-forms-filler/downloads)](https://packagist.org/packages/ghostfly/pdf-forms-filler)\n[![License](https://poser.pugx.org/ghostfly/pdf-forms-filler/license)](https://packagist.org/packages/ghostfly/pdf-forms-filler)\n[![composer.lock](https://poser.pugx.org/ghostfly/pdf-forms-filler/composerlock)](https://packagist.org/packages/ghostfly/pdf-forms-filler)\n\nFill Acrobat forms easily using pure PHP ! 💪\n\n## Requirements\n- PHP \u003e= 7.1.0\n\n## Install :\n```\n$ composer require ghostfly/pdf-forms-filler\n```\n\n## Example :\n- clone repository\n- go to example folder\n- composer install\n- run [index.php](https://github.com/Ghostfly/PDFFormsFiller/blob/master/example/index.php)\n\n## Usage :\nYou need to do a PDF Form with Acrobat, and the string to convert is given by this page :\n\n[Find Form Field coordinates](https://www.setasign.com/products/setapdf-core/demos/find-form-field-coordinates/)\n\nUse Converter who gives you a JSON Array containing fields with locations / page, in a form usable by the Generator\n\n```\n$converter = new Converter($string);\n$converter-\u003egetPagesWithFieldsCount();\n$json = $converter-\u003eformatFieldsAsJson($pages);\n\necho json;\n```\n\nUse PDF Generator with one array containing every field with id -\u003e value\nAnd one array containing every field with id -\u003e llx, lly, urx, ury, page\n\n```\n$pdfGenerator = new PDFGenerator($coords, $data, 'P', 'pt', 'A4');\n$pdfGenerator-\u003estart($original, $dest);\n```\n\nIf your original PDF is not handled by fpdf, you can convert it using this service :\n\n[Convert PDF](https://docupub.com/pdfconvert/) with \"Acrobat 4.0 (PDF 1.3)\"\n\nDon't care about form fields on file to send to generator, the locations are determined using the latest PDF format. \n\nIf you need a full example : [index.php](https://github.com/Ghostfly/PDFFormsFiller/blob/master/example/index.php).\n\n## Tests\n```\n$ ./vendor/bin/phpunit tests\n```\n\n## Code coverage\n```\n$ ./vendor/bin/phpunit tests --coverage-text --coverage-clover build/logs/clover.xml\n```\n\nDone. ;)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuplg%2FPDFFormsFiller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuplg%2FPDFFormsFiller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuplg%2FPDFFormsFiller/lists"}