douji2520 2019-07-17 09:17
浏览 257
已采纳

Laravel snappy错误代码1073741819 - 正在加载页面1/6

OS:Windows 10 pro

PHP: 7.3.5

Laravel: 5.8

I have installed below packages based on composer suggestion

  "barryvdh/laravel-snappy": "^0.4.4",
    "h4cc/wkhtmltopdf-i386": "0.12.4",
    "wemersonjanuario/laravelpdf": "1.1.*",
    "wemersonjanuario/wkhtmltopdf-windows": "0.12.2.3"

binary path

'pdf' => array(
        'enabled' => true,
        'binary'  => '"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf"',
        'timeout' => false,
        'options' => array(),
        'env'     => array(),
    ),

Showing error

"The exit status code '-1073741819' says something went wrong:↵stderr: "Loading pages (1/6)
↵[>                                                           ] 0%
[======>                                                     ] 10%
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
↵QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
↵[========>                                                   ] 14%
[=============>                                              ] 23%
"↵stdout: ""↵command: "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf" --lowquality "C:\Users\DELL~1.DES\AppData\Local\Temp\knp_snappy5d2ee6e73b39b3.84603457.html" "D:\work\www\myapp/public/job-cards/job-card-1-07-17-2019_0914am.pdf"."
trace: [{file: "D:\work\www\myapp\vendor\knplabs\knp-snappy\src\Knp\Snappy\AbstractGenerator.php",…},…]

UPDATE

C:\Program Files\wkhtmltopdf\bin>wkhtmltopdf http://www.google.com test.pdf
Loading pages (1/6)
QPainter::begin(): Returned false============================] 100%
Error: Unable to write to destination
Exit with code 1, due to unknown error.

command line also giving same error.

  • 写回答

2条回答 默认 最新

  • dpv50040 2019-07-29 10:21
    关注

    This issue is because of presence of JS in google.com page, using only html content, it is working fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页
  • ¥15 376.1电表主站通信协议下发指令全被否认问题
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证