Skip to main content
Static class. No constructor; call LibreOffice.convert(options).

convert(options)

Returns Promise<Buffer>: one PDF, or a ZIP for several documents unless a merge stage joins them. Supported input formats are listed in Gotenberg’s LibreOffice route docs. Each files entry is either a path string or { data, ext } for in-memory content. See Types and Stages for the shared types.