{"id":23857417,"url":"https://github.com/ekaputra07/api2pdf","last_synced_at":"2025-09-08T05:32:50.440Z","repository":{"id":63474080,"uuid":"565860355","full_name":"ekaputra07/api2pdf","owner":"ekaputra07","description":"Elixir client for the Api2Pdf.com API","archived":false,"fork":false,"pushed_at":"2025-03-17T16:32:22.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T07:36:32.217Z","etag":null,"topics":["elixir-lang","elixir-library","pdf-api"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/api2pdf","language":"Elixir","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/ekaputra07.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":"2022-11-14T13:35:45.000Z","updated_at":"2024-12-15T10:23:38.000Z","dependencies_parsed_at":"2024-10-28T01:50:19.426Z","dependency_job_id":"e8189801-3ab3-4e2c-a9e4-1213346705ca","html_url":"https://github.com/ekaputra07/api2pdf","commit_stats":null,"previous_names":["ekaputra07/api2pdf","elixir-id/api2pdf"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ekaputra07/api2pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekaputra07%2Fapi2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekaputra07%2Fapi2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekaputra07%2Fapi2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekaputra07%2Fapi2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekaputra07","download_url":"https://codeload.github.com/ekaputra07/api2pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekaputra07%2Fapi2pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136496,"owners_count":25228389,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elixir-lang","elixir-library","pdf-api"],"created_at":"2025-01-03T02:55:05.689Z","updated_at":"2025-09-08T05:32:50.087Z","avatar_url":"https://github.com/ekaputra07.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Api2pdf\n\nAPI client for PDF generator/converter service https://www.api2pdf.com.\n\nAt this point only features that are related to PDF generation and conversion that are supported as those are the ones that I'm currently using.\n\nContribution are welcomed to add/fix features or simply open a ticket for feature requests or bug report. If you're looking for API clients in other languages please check their [official repository](https://github.com/Api2Pdf).\n\nBelow are lists of features that are supported and those that are not, grouped by their engine:\n\n### Headless Chrome\n- [x] html_to_image (`Api2pdf.Chrome.html_to_image/2`)\n- [x] html_to_pdf (`Api2pdf.Chrome.html_to_pdf/2`)\n- [x] url_to_image (`Api2pdf.Chrome.url_to_image/2`)\n- [x] url_to_pdf(`Api2pdf.Chrome.url_to_pdf/2`) \n\n### Wkhtml\n- [x] html_to_pdf (`Api2pdf.Wkhtml.html_to_pdf/2`)\n- [x] url_to_pdf (`Api2pdf.Wkhtml.url_to_pdf/2`)\n\n### Libre Office\n- [x] any_to_pdf (`Api2pdf.LibreOffice.any_to_pdf/2`)\n- [x] any_to_image (`Api2pdf.LibreOffice.any_to_image/2`)\n- [x] pdf_to_html (`Api2pdf.LibreOffice.pdf_to_html/2`)\n- [x] html_to_docx (`Api2pdf.LibreOffice.html_to_docx/2`)\n- [x] html_to_xlsx (`Api2pdf.LibreOffice.html_to_xlsx/2`)\n\n### PdfSharp\n- [ ] merge_pdfs\n- [ ] bookmark_pdf\n- [ ] password_pdf\n- [ ] extract_pdf\n- [ ] compress_pdf\n\n### ZXING (Bar codes generator)\n- [ ] generate_barcode\n\n### Utility Commands\n- [x] check_balance (`Api2pdf.balance/1`)\n- [x] delete_file (`Api2pdf.delete_file/2`)\n- [x] zip_files (`Api2pdf.zip_files/2`)\n- [x] api_status (`Api2pdf.status/1`)\n\n## Installation\n\nAdd `api2pdf` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:api2pdf, \"~\u003e 0.3\"}\n  ]\nend\n```\n\n## API Key\n\nApi2pdf service requires API key to be able to access their endpoints which you can get by creating an account on their [membership portal site](https://portal.api2pdf.com).\n\nOnce you have API key, you can pass it to this `Api2pdf` client in two ways.\n\n### Via application config\n\n```elixir\n# file: config.exs\n\nconfig :api2pdf,\n  api_key: \"YOUR-API-KEY\"\n```\n\n### Via options\n\nAll functions accept optional `Keyword` list where you can pass the `api_key` and some other configuration.\n\n```elixir\nApi2pdf.Chrome.url_to_pdf(\"https://example.com\", api_key: \"YOUR-API-KEY\")\n```\n\n## Engines\n\nApi2pdf service uses multiple engines to generate PDF and doing document conversions that you can choose from. Which one to use? It's up to your preference.\n\nYou can switch between those engines by using separate modules, they are:\n\n- `Api2pdf.Chrome`\n- `Api2pdf.Wkhtml`\n- `Api2pdf.LibreOffice`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekaputra07%2Fapi2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekaputra07%2Fapi2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekaputra07%2Fapi2pdf/lists"}