Docker source image to convert PDFs into beautiful HTML
2.7K
Suppose you have a PDF file ~/pdf/test.pdf, simply place on your pdf file path and type:
docker run -ti --rm -v ~/pdf:/pdf sergiomtzlosa/pdf2htmlex pdf2htmlEX --zoom 1.3 test.pdf test.html
It would produce a single HTML file test.html in ~/pdf directory.
Set an alias in yout .bashrc file:
alias pdf2htmlEX='docker run -ti --rm -v `pwd`:/pdf sergiomtzlosa/pdf2htmlex pdf2htmlEX'
Use the alias on your bash prompt:
pdf2htmlEX -h
pdf2htmlEX --zoom 1.3 test.pdf
For detailed instructions to build the image manually check the repository:
Content type
Image
Digest
Size
957 MB
Last updated
over 6 years ago
docker pull sergiomtzlosa/pdf2htmlex