mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-07-02 00:17:40 +08:00
766 B
766 B
Adding PDF Engine Features
When adding a new PDF engine capability (e.g., bookmarks, watermark, stamp, embed), you must update the Makefile to include the corresponding engine list variable and flag. Every --pdfengines-*-engines flag registered in pkg/modules/pdfengines/pdfengines.go must have a matching entry in the Makefile:
- Add a variable in the Makefile's variable block (around line 60-70):
PDFENGINES_<FEATURE>_ENGINES=<default engines> - Add the flag in the Makefile's command args block (around line 140-155):
--pdfengines-<feature>-engines=$(PDFENGINES_<FEATURE>_ENGINES) \
The default value should match what is defined in pdfengines.go's fs.StringSlice(...) call for that flag.