import { LibreOffice } from "chromiumly";
const buffer = await LibreOffice.convert({
files: (string | { data: Buffer | ReadStream; ext: string })[];
properties?: PageProperties; // page layout, password for protected source files — see below
nativePdfa?: "PDF/A-1b" | "PDF/A-2b" | "PDF/A-3b" | "PDF/A-4";
nativePdfua?: "PDF/UA-1";
nativeTaggedPdf?: boolean;
nativeQuality?: number; // 1–100, JPG export (default 90)
nativeLosslessImageCompression?: boolean;
nativeReduceImageResolution?: boolean;
nativeMaxImageResolution?: 75 | 150 | 300 | 600 | 1200; // requires nativeReduceImageResolution
initialView?: "default" | "outline" | "thumbnails";
initialPage?: number;
magnification?: "default" | "fitWindow" | "fitWidth" | "fitVisible" | "zoom";
zoom?: number; // with magnification "zoom"
pageLayout?: "default" | "singlePage" | "oneColumn" | "twoColumnRight";
resizeWindowToInitialPage?: boolean;
centerWindow?: boolean;
openInFullScreenMode?: boolean;
displayPDFDocumentTitle?: boolean;
hideViewerMenubar?: boolean;
hideViewerToolbar?: boolean;
hideViewerWindowControls?: boolean;
useTransitionEffects?: boolean;
openBookmarkLevels?: number;
nativeWatermarkText?: string; // set it or nativeTiledWatermarkText, not both
nativeTiledWatermarkText?: string;
nativeWatermarkColor?: string; // "#rrggbb"
nativeWatermarkFontSize?: number;
nativeWatermarkRotation?: number; // degrees, counter-clockwise
nativeWatermarkFont?: string;
stages?: Stage[]; // run on the exported PDFs, in order
archives?: PathLikeOrReadStream[];
downloadFrom?: DownloadFrom;
webhook?: WebhookOptions;
outputFilename?: string;
trace?: string;
});