UNPKG

kdp-book-generator

Version:

Generate KDP-compliant PDFs and EPUBs from Markdown for Amazon book publishing

41 lines 1.33 kB
export { MarkdownParser } from './parser/markdown-parser'; export { PDFGenerator } from './generator/pdf-generator'; export { StyleGenerator } from './styles/style-generator'; export { BookConfigManager } from './config/book-config'; export * from './types'; import { BookConfig } from './types'; /** * Options for generating a PDF from Markdown */ export interface GenerateOptions { /** Path to the input Markdown file */ input: string; /** Path where the output PDF will be saved */ output: string; /** Optional partial book configuration to override defaults */ config?: Partial<BookConfig>; /** Enable debug mode for additional output */ debug?: boolean; } /** * Generate a KDP-compliant PDF from a Markdown file * * @param options - Generation options including input/output paths and configuration * @throws {Error} If configuration validation fails or PDF generation encounters an error * * @example * ```typescript * await generatePDF({ * input: 'my-book.md', * output: 'my-book.pdf', * config: { * title: 'My Book', * author: 'Author Name', * format: { name: '6" x 9"', width: 6, height: 9, unit: 'in' } * }, * debug: true * }); * ``` */ export declare function generatePDF(options: GenerateOptions): Promise<void>; //# sourceMappingURL=index.d.ts.map