{"id":13508951,"url":"https://github.com/ricn/pdf2htmlex","last_synced_at":"2025-04-23T22:31:59.745Z","repository":{"id":34400469,"uuid":"38328523","full_name":"ricn/pdf2htmlex","owner":"ricn","description":"Convert PDF docs to beautiful HTML files without losing text or format.","archived":false,"fork":false,"pushed_at":"2016-01-13T11:40:59.000Z","size":177,"stargazers_count":89,"open_issues_count":3,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T03:05:17.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ricn/pdf2htmlex","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/ricn.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}},"created_at":"2015-06-30T19:22:40.000Z","updated_at":"2024-11-19T14:07:03.000Z","dependencies_parsed_at":"2022-09-14T06:10:49.260Z","dependency_job_id":null,"html_url":"https://github.com/ricn/pdf2htmlex","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/ricn%2Fpdf2htmlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricn%2Fpdf2htmlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricn%2Fpdf2htmlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ricn%2Fpdf2htmlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ricn","download_url":"https://codeload.github.com/ricn/pdf2htmlex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250527087,"owners_count":21445299,"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-08-01T02:01:00.875Z","updated_at":"2025-04-23T22:31:59.370Z","avatar_url":"https://github.com/ricn.png","language":"Elixir","funding_links":[],"categories":["PDF"],"sub_categories":[],"readme":"Pdf2htmlex\n==========\nElixir library to convert PDF documents to HTML without losing text or format.\n\n[![Build Status](https://travis-ci.org/ricn/pdf2htmlex.png?branch=master)](https://travis-ci.org/ricn/pdf2htmlex)\n[![Hex.pm](https://img.shields.io/hexpm/v/pdf2htmlex.svg)](https://hex.pm/packages/pdf2htmlex)\n[![Inline docs](http://inch-ci.org/github/ricn/pdf2htmlex.svg?branch=master)](http://inch-ci.org/github/ricn/pdf2htmlex)\n\n## Requirements\n\nThe command line tool [pdf2htmlex](http://coolwanglu.github.io/pdf2htmlEX/) must be installed on your system and the binary must be on your PATH.\n\n## Installation\n\nAdd this to your `mix.exs` file, then run `mix do deps.get, deps.compile`:\n\n```elixir\n  {:pdf2htmlex, \"~\u003e 0.1\"}\n```\n\n## Examples\n```elixir\n  import Pdf2htmlex\n  # Simplest conversion possible.\n  open(\"/Users/ricn/pdfs/sample.pdf\") |\u003e convert_to!(\"/Users/ricn/html\")\n\n  # Set zoom ratio to 150 % and set horizontal and vertical dpi to 96 for images.\n  open(\"/Users/ricn/pdfs/sample.pdf\")\n  |\u003e zoom(1.5)\n  |\u003e hdpi(96)\n  |\u003e vdpi(96)\n  |\u003e convert_to!(\"/Users/ricn/html\")\n\n  # Set the maximum width to 640 pixels and maximum height to 480 pixels\n  open(\"/Users/ricn/pdfs/sample.pdf\")\n  |\u003e fit_width(640)\n  |\u003e fit_height(480)\n  |\u003e convert_to!(\"/Users/ricn/html\")\n\n  # Converts only page 1 to 10\n  open(\"/Users/ricn/pdfs/sample.pdf\")\n  |\u003e first_page(1)\n  |\u003e last_page(10)\n  |\u003e convert_to!(\"/Users/ricn/html\")\n\n  # For more options see the documentation\n```\n\n## Credits\n\nThe following people have contributed ideas, documentation, or code to Pdf2htmlex:\n\n* Richard Nyström\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricn%2Fpdf2htmlex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricn%2Fpdf2htmlex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricn%2Fpdf2htmlex/lists"}