Skip to content

Commit

Permalink
more to README
Browse files Browse the repository at this point in the history
  • Loading branch information
gutschilla committed Aug 24, 2016
1 parent 7d372e9 commit 5c86e0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ config :pdf_generator,
- `open_password`: requires `pdftk`, password to encrypt PDFs with
- `edit_password`: requires `pdftk`, sets password for edit permissions on PDF
- `shell_params`: pass custom parameters to wkhtmltopdf. **CAUTION: BEWARE OF SHELL INJECTIONS!**
- `command_prefix`: see "Running headless" above
- `command_prefix`: prefix wkhtmltopdf with some command (e.g. `xvfb-run`, `sudo` ..)
- `delete_temporary`: immediately remove temp files after generation

# Documentation
Expand Down
5 changes: 3 additions & 2 deletions lib/pdf_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ defmodule PdfGenerator do
# worker(TestApp.Worker, [arg1, arg2, arg3])
worker(
PdfGenerator.PathAgent, [[
wkhtml_path: Application.get_env(:pdf_generator, :wkhtml_path ),
pdftk_path: Application.get_env(:pdf_generator, :pdftk_path ),
wkhtml_path: Application.get_env(:pdf_generator, :wkhtml_path),
pdftk_path: Application.get_env(:pdf_generator, :pdftk_path),
command_prefix: Application.get_env(:pdf_generator, :command_prefix),
]]
)
]
Expand Down

0 comments on commit 5c86e0b

Please sign in to comment.