@slidef/cli
Version:
CLI tool for converting PDF slides to web-viewable format
15 lines • 497 B
TypeScript
export type ImageFormat = "png" | "jpeg" | "webp";
export interface ConvertOptions {
scale?: number;
format?: ImageFormat;
quality?: number;
}
/**
* Convert entire PDF to images using pdf.js directly
*/
export declare function convertPdfToImages(pdfPath: string, outputDir: string, options?: ConvertOptions): Promise<number>;
/**
* Get PDF page count without converting
*/
export declare function getPdfPageCount(pdfPath: string): Promise<number>;
//# sourceMappingURL=pdf.d.ts.map