Installation¶
Composer¶
Install via Composer:
Or add to your composer.json:
Then run composer update.
LibreOffice (for PDF export)¶
PDF export uses LibreOffice’s soffice command to convert .docx to .pdf. Install LibreOffice if you need PDF output.
Linux¶
Windows¶
- Download and install LibreOffice.
- Add the directory containing
soffice(orsoffice.exe) to your systemPATH, or set theSOFFICE_PATHenvironment variable (see Configuration).
Example (Unix-style, adjust path as needed):
Security note¶
PDF conversion runs the soffice command with file paths from your application. Only use templates from trusted sources and sanitize any user-provided template paths to avoid command injection.