wkhtmltopdf, 0.12.6, Warning: Blocked access to file

前端 未结 5 849
耶瑟儿~
耶瑟儿~ 2020-12-20 11:02

When upgrade wkhtmltopdf to 0.12.6, it came to such messages and the image did not show in the target pdf:

    Warning: Blocked acc         


        
5条回答
  •  感动是毒
    2020-12-20 11:56

    For the C API, contrary to what the documentation says, it's not load.blockLocalFileAccess but loadPage.blockLocalFileAccess that you must set to "false":

    wkhtmltoimage_set_global_setting(settings, "loadPage.blockLocalFileAccess", "false");
    

    Hopefully, the documentation will be updated soon; see issue #4763.

提交回复
热议问题