argument('directory'); $this->info('Starting HTML to PDF conversion process...'); // Dispatch the job ConvertHtmlToPdfJob::dispatch($directory); $this->info('HTML to PDF conversion job has been queued.'); return 0; } catch (Exception $e) { $this->error('Error processing HTML to PDF conversion: ' . $e->getMessage()); return 1; } } }