This project is a lightweight HTTP(S) interface to the pdf2htmlex library.
docker run -p 8080 corefiling/pdf2html:$version
The command line arguments passed into pdf2htmlEX
can be overridden by passing in environment variables prefixed by ConversionOptions__
, e.g:
docker run -p 8080 -e ConversionOptions__BgFormat=png -e ConversionOptions__OptimizeText=true corefiling/pdf2html$version
The names of these setting keys are converted to lower-kebab-case arguments, and the values are converted to strings as needed - in the above example, the arguments are converted to --bg-format=png --optimize-text=0
.
The full list of arguments can be found by running pdf2htmlEX
:
docker run corefiling/pdf2html pdf2htmlEX:$version --help
Since pdf2htmlex is licensed under the GPL, this project is too (see the LICENSE.TXT file).
As you can see from the build process, pdf2htmlEX itself is aquired from our fork of pdf2htmlEX/pdf2htmlEX found here: https://github.com/CoreFiling/pdf2htmlEX/tree/feature/cfl-patches