#!/usr/bin/env ts-node
"use strict";
/**
 * Example script showing how to use the md-to-pdf converter
 */
Object.defineProperty(exports, "__esModule", { value: true });
const md_to_pdf_1 = require("./md-to-pdf");
async function examples() {
    try {
        // Example 1: Convert with automatic output name
        console.log('Example 1: Converting GUIDE.md to GUIDE.pdf...');
        await (0, md_to_pdf_1.convertMdToPdf)('template/GUIDE.md');
        // Example 2: Convert with custom output name
        console.log('\nExample 2: Converting with custom output...');
        await (0, md_to_pdf_1.convertMdToPdf)('README.md', 'docs/readme.pdf');
        // Example 3: Convert multiple files
        console.log('\nExample 3: Converting multiple files...');
        const files = ['README.md', 'DOCUMENTATION.md', 'template/GUIDE.md'];
        for (const file of files) {
            await (0, md_to_pdf_1.convertMdToPdf)(file);
        }
        console.log('\n✓ All conversions completed!');
    }
    catch (error) {
        console.error('Error during conversion:', error);
        process.exit(1);
    }
}
// Run examples
void examples();
//# sourceMappingURL=md-to-pdf-example.js.map