{"id":21603146,"url":"https://github.com/evmar/envelope","last_synced_at":"2025-04-11T02:35:51.733Z","repository":{"id":55386062,"uuid":"2540665","full_name":"evmar/envelope","owner":"evmar","description":"python script to generate envelopes","archived":false,"fork":false,"pushed_at":"2021-01-04T06:42:07.000Z","size":92,"stargazers_count":13,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T00:11:12.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/evmar.png","metadata":{"files":{"readme":"README.markdown","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":"2011-10-09T00:13:30.000Z","updated_at":"2023-09-08T16:30:46.000Z","dependencies_parsed_at":"2022-08-14T23:10:20.263Z","dependency_job_id":null,"html_url":"https://github.com/evmar/envelope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evmar%2Fenvelope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evmar%2Fenvelope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evmar%2Fenvelope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evmar%2Fenvelope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evmar","download_url":"https://codeload.github.com/evmar/envelope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248330128,"owners_count":21085661,"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-11-24T19:15:27.269Z","updated_at":"2025-04-11T02:35:51.688Z","avatar_url":"https://github.com/evmar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Background\n\nI recently had occasion to print a bunch of envelopes with different\naddresses.\n\nI found that the standard word-processing software included with\nWindows or Mac OS didn't support automating that, while the more\ncomplex freely-available software (Abiword, LibreOffice) had\nmaddeningly complicated and buggy implementations of mail merge.\n\nI eventually, after 10 misprints and 3 do-overs, coaxed LibreOffice\ninto generating a PDF that I then printed with another program (the\ncombination of LibreOffice's conception of print settings and the\nactual print settings caused many hilariously wrong misprints when\nattempting to print from LibreOffice directly).  I proudly showed\nthese to my wife, who then pointed out that in my last reprent I\nsomehow managed to swap the last two lines of every address.\n\nAnd so, tasked with going through that ordeal again, it suddenly hit\nme: it's not hard to generate a PDF with some text.\n\n## The Code\n\nThe code is shorter than this README, but briefly:\n\n1. Create a CSV with the data you want, like one address per row with\n   one line per column.  (We used Google Docs, which can export CSV.)\n2. Modify the constants in the `__main__` block of the code.\n3. Run it, print the PDF using whatever PDF program you like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevmar%2Fenvelope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevmar%2Fenvelope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevmar%2Fenvelope/lists"}