
import { pdfService } from '../services/pdf.service';
import logger from '../utils/logger';

async function main() {
    const requestId = '468d45f9-2ea3-4b4d-82fc-6721b60cf8bb';
    console.log(`Starting PDF generation for request: ${requestId}...`);

    try {
        const fileName = await pdfService.generateInvoicePdf(requestId);
        console.log(`✅ Success! PDF generated: ${fileName}`);
        process.exit(0);
    } catch (error) {
        console.error('❌ Failed to generate PDF:', error);
        process.exit(1);
    }
}

main();
