Chromiumly.configure() once to set the Gotenberg endpoint or hosted API key and optional auth.
configure(config)
Sets endpoint, API key, basic auth, and custom headers. All keys are optional.- If only
apiKeyis set, the library useshttps://api.chromiumly.devas the endpoint. - Environment variables (
GOTENBERG_ENDPOINT,CHROMIUMLY_API_KEY,GOTENBERG_API_BASIC_AUTH_USERNAME,GOTENBERG_API_BASIC_AUTH_PASSWORD) are used when no value was set viaconfigure().
Static constants (internal use)
Chromiumly.CHROMIUM_CONVERT_PATH—'forms/chromium/convert'Chromiumly.CHROMIUM_SCREENSHOT_PATH—'forms/chromium/screenshot'Chromiumly.PDF_ENGINES_PATH—'forms/pdfengines'Chromiumly.LIBRE_OFFICE_PATH—'forms/libreoffice'Chromiumly.TEMPLATES_PATH—'/templates'(hosted API)Chromiumly.CHROMIUM_ROUTES,PDF_ENGINE_ROUTES,LIBRE_OFFICE_ROUTES,SYSTEM_ROUTES— route names for each engine
Chromiumly.getGotenbergEndpoint() (and auth getters) internally; you do not need to call these directly unless you are extending the library.
Hosted templates
Templates.generate() uses the configured endpoint and requires an API key. If no endpoint is set and apiKey is provided, Chromiumly points to https://api.chromiumly.dev.