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,GOTENBERG_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.CHROMIUM_ROUTES,PDF_ENGINE_ROUTES,LIBRE_OFFICE_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.