Popularity
6.2
Stable
Activity
0.0
Stable
82
4
13
Monthly Downloads: 50
Programming language: Elixir
License: MIT License
Tags:
PDF
pdf2htmlex alternatives and similar packages
Based on the "PDF" category.
Alternatively, view pdf2htmlex alternatives based on common mentions on social networks and blogs.
-
pdf_generator
Create PDFs with wkhtmltopdf or puppeteer/chromium from Elixir. -
chromic_pdf
Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of pdf2htmlex or a related project?
README
Pdf2htmlex
Elixir library to convert PDF documents to HTML without losing text or format.
Requirements
The command line tool pdf2htmlex must be installed on your system and the binary must be on your PATH.
Installation
Add this to your mix.exs
file, then run mix do deps.get, deps.compile
:
{:pdf2htmlex, "~> 0.1"}
Examples
import Pdf2htmlex
# Simplest conversion possible.
open("/Users/ricn/pdfs/sample.pdf") |> convert_to!("/Users/ricn/html")
# Set zoom ratio to 150 % and set horizontal and vertical dpi to 96 for images.
open("/Users/ricn/pdfs/sample.pdf")
|> zoom(1.5)
|> hdpi(96)
|> vdpi(96)
|> convert_to!("/Users/ricn/html")
# Set the maximum width to 640 pixels and maximum height to 480 pixels
open("/Users/ricn/pdfs/sample.pdf")
|> fit_width(640)
|> fit_height(480)
|> convert_to!("/Users/ricn/html")
# Converts only page 1 to 10
open("/Users/ricn/pdfs/sample.pdf")
|> first_page(1)
|> last_page(10)
|> convert_to!("/Users/ricn/html")
# For more options see the documentation
Credits
The following people have contributed ideas, documentation, or code to Pdf2htmlex:
- Richard Nyström
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request