search

Home  >  Q&A  >  body text

Convert html template to pdf through wkhtmltopdf software

<p>I am using wkhtmltopdf to convert three html files (body html template, header html template, footer html template) to pdf. But this error appeared "Unknown long argument --header-htmlá" This error appeared after I updated my computer, everything was fine before. </p> <p>I have tried multiple versions of the wkhtmltopdf software but cannot overcome this error. </p>
P粉198670603P粉198670603446 days ago594

reply all(1)I'll reply

  • P粉748218846

    P粉7482188462023-09-06 09:17:50

    --header-html

    The above are valid parameters for wkhtmltopdf, but it thinks you have already entered:

    --header-htmlà

    Without additional information it's hard to know why this is happening, but I suspect you are copy-pasting the command.

    Try typing in full instead of copy-pasting, the source application or terminal you are using may not display or understand the extended character set correctly, causing unexpected behavior.

    reply
    0
  • Cancelreply