我正在使用cups-ipp從網絡項目打印我得到了這個錯誤file_get_contents(./helloworld.pdf):無法打開流:沒有這樣的文件或目錄我試圖從存儲中獲取文件但遇到了同樣的錯誤 $builder = new Builder(); $responseParser = new ResponseParser(); $printerManager = new PrinterManager($builder, $client, $responseParser); $printer = $printerManager->findByUri('ipp://localhost:631/printers/HP_HP_ColorLaserJet_MFP_M278-M281'); $jobManager = new JobManager($builder, $client, $responseParser); $filePath = '../../../storage/app/public/estimated_dates.pdf'; $job = new Job(); $job->setName('job create file'); $job->setUsername('demo'); $job->setCopies(1); $job->setPageRanges('1'); $job->addFile('./helloworld.pdf'); $job->addAttribute('media', 'A4'); $job->addAttribute('fit-to-page', true); $result = $jobManager->send($printer, $job);我鏈接了存儲,我確定路徑是正確的(我也使用過auto complete path plugin)
- 1 回答
- 0 關注
- 116 瀏覽
添加回答
舉報
0/150
提交
取消