-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README.md, go.mod / go.sum to fix build problems
- Loading branch information
1 parent
892c239
commit 659d514
Showing
3 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
# fylr-plugin-server-pdf | ||
|
||
Plugin to provide HTML to PDF functionality for fylr. | ||
|
||
* Check that you exec server is prepared to run plugin binaries, like so: | ||
|
||
```yaml | ||
execserver: | ||
... | ||
waitgroups: | ||
a: | ||
processes: 2 | ||
services: | ||
# this service allows to execute arbitrary binaries | ||
exec: | ||
# choose a waitgroup which can take heavy tasks. Chromium on | ||
# Linux needs about 500 MB to operate. Each parallel produce PDF | ||
# will take that memory. | ||
waitgroup: c | ||
commands: | ||
exec: | ||
env: | ||
# defaults to "chromium" | ||
- SERVER_PDF_CHROME=chromium # change to Chrome or absolute paths | ||
|
||
``` | ||
|
||
* By default the server-pdf plugin expect the binary `chromium` in the exec server. If you prefer to use "Chrome" or want to provide an absolute path to the binary, use environment. | ||
|
||
* Install this Plugin into fylr (URL, ZIP or disk mode) | ||
* The [easydb-pdf-creator-plugin](https://github.com/programmfabrik/easydb-pdf-creator-plugin) will auto recognize this plugin and call the fylr server pdf creator automatically. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters