Skip to content

Windows unhappy --bin isn't a valid argument - should update bin to binPath #2

@rezen

Description

@rezen

So digging through everything the code that gets generated by WkHtmlToPdf for Windows is no good - the problem for Windows, this command is not valid. If I update the config and pass directly in a binPath it works hunky dory. I think in the PdfServiceProvider you should require a binPath vs. bin and it should work correctly cross platform.

Also note, doing this way I don't have to download binaries.

  • Windows CMD *
    "C:\Program Files (x86)\wkhtmltopdf\wkhtmltopdf.exe" --bin "C:\xampp\htdocs\console/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64" C:\Users\Administrator2\AppData\Local\Temp\tmpAA79.tmp.html C:\Users\Administrator2\AppData\Local\Temp\tmpAA7A.tmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions