@transai/connector-runner-pdf
v0.4.0
Published
PDF generation connector using pdfme library with Roboto fonts.
Readme
connector-runner-pdf
PDF generation connector using pdfme library with Roboto fonts.
Requirements
Fonts
This connector requires Roboto fonts to be installed on the system via the fonts-roboto package.
Production (Docker):
Fonts are automatically installed via the Dockerfile:
RUN apt-get install -y fonts-robotoFonts are loaded from: /usr/share/fonts/truetype/roboto/unhinted/RobotoTTF/
Local Development:
To test locally, install the fonts:
# Ubuntu/Debian
sudo apt-get install fonts-roboto
# macOS
brew tap homebrew/cask-fonts
brew install --cask font-robotoNote: If system fonts are not found, the connector will log a warning and generate PDFs with default fonts (which may not render correctly).
Building
Run nx build connector-runner-pdf to build the library.
Running unit tests
Run nx test connector-runner-pdf to execute the unit tests via Jest.
