argument('directory'); $password = $this->option('password'); $this->info('Starting PDF unlock process...'); // Dispatch the job UnlockPdfJob::dispatch($directory, $password); $this->info('PDF unlock job has been queued.'); return 0; } catch (Exception $e) { $this->error('Error processing PDF unlock: ' . $e->getMessage()); return 1; } } }