You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,28 @@
2
2
3
3
This project is a lightweight HTTP(S) interface to the [pdf2htmlex library](https://pdf2htmlex.github.io/pdf2htmlEX/).
4
4
5
+
## Running via Docker
6
+
7
+
```bash
8
+
docker run -p 8080 corefiling/pdf2html:$version
9
+
```
10
+
11
+
### Overriding `pdf2htmlEX` options
12
+
13
+
The command line arguments passed into `pdf2htmlEX` can be overridden by passing in environment variables prefixed by `ConversionOptions__`, e.g:
14
+
15
+
```bash
16
+
docker run -p 8080 -e ConversionOptions__BgFormat=png -e ConversionOptions__OptimizeText=true corefiling/pdf2html$version
17
+
```
18
+
19
+
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`.
20
+
21
+
The full list of arguments can be found by running `pdf2htmlEX`:
22
+
23
+
```bash
24
+
docker run corefiling/pdf2html pdf2htmlEX:$version --help
25
+
```
26
+
5
27
## Licensing
6
28
7
29
Since pdf2htmlex is licensed under the GPL, this project is too (see the LICENSE.TXT file).
0 commit comments