/** * 图片提取器 - 使用外部工具实现 * * 依赖 poppler-utils 的 pdfimages 命令 * 安装: * - Ubuntu/Debian: sudo apt-get install poppler-utils * - macOS: brew install poppler * - Windows: 下载 https://github.com/oschwartz10612/poppler-windows/releases */ import type { ImageExtractOptions } from '../types/index.js'; export declare class ImageExtractorExternal { private pdfimagesPath; /** * @param pdfimagesPath - pdfimages 可执行文件的完整路径(可选) */ constructor(pdfimagesPath?: string); /** * 检查 pdfimages 是否可用 */ isAvailable(): Promise; /** * 提取 PDF 中的图片 * * @param pdfPath - PDF 文件路径 * @param outputDir - 输出目录 * @param options - 提取选项 * @returns 提取的图片路径数组 */ extract(pdfPath: string, outputDir: string, options?: ImageExtractOptions): Promise; /** * 获取使用说明 */ getUsageInfo(): string; } //# sourceMappingURL=image-extractor-external.d.ts.map