{"id":22104194,"url":"https://github.com/brianpursley/pdfform-lambda","last_synced_at":"2026-04-25T16:34:27.890Z","repository":{"id":144192704,"uuid":"386986300","full_name":"brianpursley/pdfform-lambda","owner":"brianpursley","description":"Demonstrates creating a serverless application for populating fillable PDFs, using Node.js, AWS Lambda, AWS API Gateway, AWS CloudWatch, and Terraform","archived":false,"fork":false,"pushed_at":"2022-02-20T18:19:57.000Z","size":50,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:37:33.536Z","etag":null,"topics":["aws-api-gateway","aws-cloudwatch","aws-lambda","node-js","pdf","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianpursley.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-17T16:20:40.000Z","updated_at":"2025-02-02T19:50:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dfed527-5179-46e6-821a-5fb03dbb4741","html_url":"https://github.com/brianpursley/pdfform-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brianpursley/pdfform-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fpdfform-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fpdfform-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fpdfform-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fpdfform-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianpursley","download_url":"https://codeload.github.com/brianpursley/pdfform-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianpursley%2Fpdfform-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32269462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws-api-gateway","aws-cloudwatch","aws-lambda","node-js","pdf","terraform"],"created_at":"2024-12-01T06:29:23.366Z","updated_at":"2026-04-25T16:34:27.875Z","avatar_url":"https://github.com/brianpursley.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdfform-lambda\n\nThis project demonstrates creating a serverless application for populating fillable PDFs.\n\n## Technologies Used\n\n* Node.js\n* AWS Lambda\n* AWS API Gateway\n* AWS CloudWatch\n* Terraform\n\n## Deploying\n\n```\nterraform -chdir=tf apply\n```\nor\n```\ncd tf\nterraform apply\n```\n\n## Usage\n\n### Listing the fields of a fillable PDF:\n\n```\ncurl --request POST \\\n    --url https://11hnc9oxr8.execute-api.us-east-2.amazonaws.com/test/listFields \\\n    --header 'content-type: application/json' \\\n    --data '{\"pdf\": \"https://www.irs.gov/pub/irs-pdf/fw9.pdf\"}'\n```\n\nResponse:\n```\n{\"f1_1\":[{\"type\":\"string\"}],\"f1_2\":[{\"type\":\"string\"}],\"f1_9\":[{\"type\":\"string\"}],\"f1_10\":[{\"type\":\"string\"}],\"c1_1\":[{\"type\":\"boolean\"},{\"type\":\"boolean\"},{\"type\":\"boolean\"},{\"type\":\"boolean\"},{\"type\":\"boolean\"},{\"type\":\"boolean\"},{\"type\":\"boolean\"}],\"f1_3\":[{\"type\":\"string\"}],\"f1_4\":[{\"type\":\"string\"}],\"f1_5\":[{\"type\":\"string\"}],\"f1_6\":[{\"type\":\"string\"}],\"f1_7\":[{\"type\":\"string\"}],\"f1_8\":[{\"type\":\"string\"}],\"f1_11\":[{\"type\":\"string\"}],\"f1_12\":[{\"type\":\"string\"}],\"f1_13\":[{\"type\":\"string\"}],\"f1_14\":[{\"type\":\"string\"}],\"f1_15\":[{\"type\":\"string\"}]}\n```\n\n### Transforming a fillable PDF using field values:\n\n```\ncurl --request POST \\\n    --url https://11hnc9oxr8.execute-api.us-east-2.amazonaws.com/test/transform \\\n    --header 'content-type: application/json' \\\n    --data '{\n        \"pdf\": \"https://www.irs.gov/pub/irs-pdf/fw9.pdf\",\n        \"fields\": {\n            \"f1_1\": [\"FirstName LastName\"],\n            \"f1_2\": [\"CompanyName\"],\n            \"c1_1\": [1,0,0,0,0,0,0],\n            \"f1_7\": [\"123 Fake Street\"],\n            \"f1_8\": [\"Cincinnati, OH 45241\"],\n            \"f1_14\": [\"12\"],\n            \"f1_15\": [\"3456789\"]\n        }\n    }' \\\n    --output /tmp/output.pdf\n```\n\nThe filled PDF will be written to **/tmp/output.pdf**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpursley%2Fpdfform-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianpursley%2Fpdfform-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpursley%2Fpdfform-lambda/lists"}