Unix wkhtmltopdf-如何在参数中使用空格?

Unix wkhtmltopdf-如何在参数中使用空格?,unix,wkhtmltopdf,Unix,Wkhtmltopdf,我正在对本地文件使用wkhtmltopdf。我注意到它不适用于输入/输出文件名中的空格 wkhtmltopdf --footer-left reports --footer-right [page]/[toPage] -O landscape report.html report.pdf 下面是一个示例,该示例获取“report.html”文件,并将其转换为名为“report.PDF”的PDF格式,从而启用一个页脚,页脚上的标签写有“reports”,其中包含当前和总页数。很好 但是现在我需

我正在对本地文件使用wkhtmltopdf。我注意到它不适用于输入/输出文件名中的空格

wkhtmltopdf --footer-left reports --footer-right [page]/[toPage] -O landscape report.html report.pdf
下面是一个示例,该示例获取“report.html”文件,并将其转换为名为“report.PDF”的PDF格式,从而启用一个页脚,页脚上的标签写有“reports”,其中包含当前和总页数。很好


但是现在我需要在页脚标签中设置一个带空格的字符串。 我尝试过不同的方法,比如使用引号、双引号、对空格进行编码等等,但似乎不起作用

大概是这样的:

wkhtmltopdf --footer-left "Shell - January Report" --footer-right [page]/[toPage] -O landscape /var/shell_report_15_01.html /var/reports/shell_report_15_01.pdf
无法识别参数“Shell-January Report”,似乎忽略了引号,这些空格用作参数分隔符


提前谢谢

命令中哪里有空格?是下划线空格,您是否尝试过
khtmltopdf--footer left“NICE footer LABEL”-footer right[page]/[toPage]-O横向“INPUT FILENAME.HTML”“OUTPUT FILENAME.PDF”
@WalterA-改进了我的问题可能尝试单引号,如
--header right='[page]/[toPage]“
并尝试不带
-
的左页脚:
wkhtmltopdf--footer left'Shell=janur Report'--footer right'[page]/[toPage]--O横向/var/Shell_Report_15_01.html/var/reports/Shell_Report_15_01.pdf
命令中哪里有空格?是下划线空格,您是否尝试过
khtmltopdf--footer left“NICE footer LABEL”-footer right[page]/[toPage]-O横向“INPUT FILENAME.HTML”“OUTPUT FILENAME.PDF”
@WalterA-改进了我的问题可能尝试单引号,如
--header right='[page]/[toPage]“
并尝试不带
-
的左页脚:
wkhtmltopdf--footer left'Shell=Janur Report'--footer right'[page]/[toPage]--O横向/var/Shell_Report_15_01.html/var/reports/Shell_Report_15_01.pdf