/** * Configuration options for the msoffice2pdf conversion function. * All properties are optional. */ export default interface Options { /** * Full path to the LibreOffice soffice binary. * * When omitted, the binary is auto-detected from platform-specific locations: * * Linux: * /usr/bin/libreoffice, /usr/bin/soffice, /snap/bin/libreoffice, * /opt/libreoffice{@literal *}/program/soffice, * /usr/lib/libreoffice{@literal *}/program/soffice, * /usr/lib64/libreoffice{@literal *}/program/soffice * * macOS: * /Applications/LibreOffice.app/Contents/MacOS/soffice * * Windows: * C:\Program Files\LibreOffice{@literal *}\program\soffice.exe, * C:\Program Files (x86)\LibreOffice{@literal *}\program\soffice.exe * * Paths with wildcards are expanded via glob to match version-numbered * directories (e.g. LibreOffice26.2). * * @example '/opt/libreoffice26.2/program/soffice' */ libreOfficeBinaryPath?: string; /** * Locale code passed to LibreOffice's --language flag. * * Controls the language used during document rendering, which can affect * font substitution, hyphenation, and date/number formatting in the output PDF. * * When omitted, LibreOffice uses its default system locale. * * @example 'ja' * @example 'en-us' */ language?: 'af' | 'sq' | 'ar-dz' | 'ar-bh' | 'ar-eg' | 'ar-iq' | 'ar-jo' | 'ar-kw' | 'ar-lb' | 'ar-ly' | 'ar-ma' | 'ar-om' | 'ar-qa' | 'ar-sa' | 'ar-sy' | 'ar-tn' | 'ar-ae' | 'ar-ye' | 'eu' | 'be' | 'bg' | 'ca' | 'zh-hk' | 'zh-cn' | 'zh-sg' | 'zh-tw' | 'hr' | 'cs' | 'da' | 'nl-be' | 'nl' | 'en' | 'en-au' | 'en-bz' | 'en-ca' | 'en-ie' | 'en-jm' | 'en-nz' | 'en-za' | 'en-tt' | 'en-gb' | 'en-us' | 'et' | 'fo' | 'fa' | 'fi' | 'fr-be' | 'fr-ca' | 'fr-lu' | 'fr' | 'fr-ch' | 'gd' | 'de-at' | 'de-li' | 'de-lu' | 'de' | 'de-ch' | 'el' | 'he' | 'hi' | 'hu' | 'is' | 'id' | 'ga' | 'it' | 'it-ch' | 'ja' | 'ko' | 'ku' | 'lv' | 'lt' | 'mk' | 'ml' | 'ms' | 'mt' | 'no' | 'nb' | 'nn' | 'pl' | 'pt-br' | 'pt' | 'pa' | 'rm' | 'ro' | 'ro-md' | 'ru' | 'ru-md' | 'sr' | 'sk' | 'sl' | 'sb' | 'es-ar' | 'es-bo' | 'es-cl' | 'es-co' | 'es-cr' | 'es-do' | 'es-ec' | 'es-sv' | 'es-gt' | 'es-hn' | 'es-mx' | 'es-ni' | 'es-pa' | 'es-py' | 'es-pe' | 'es-pr' | 'es' | 'es-uy' | 'es-ve' | 'sv' | 'sv-fi' | 'th' | 'ts' | 'tn' | 'tr' | 'ua' | 'ur' | 've' | 'vi' | 'cy' | 'xh' | 'ji' | 'zu'; }