【发布时间】:2021-12-12 07:33:35
【问题描述】:
注意:使用 Python。 我正在尝试使用 pdfkit.from_file 命令将 html 转换为 pdf。 这是我的输入:
html_path="abfss://container@DataLakeName.dfs.core.windows.net/user/trusted-service-user/for_html/htmltest.html"
pdf_path = "abfss://container@DataLakeName.dfs.core.windows.net/user/trusted-service-user/for_html/htmltest.pdf"
我正在使用的命令:
pdfkit.from_file(html_path, pdf_path, options = myoptions)
我的输出是:
No such file: abfss://container@DataLakeName.dfs.core.windows.net/user/trusted-service-user/for_html/htmltest.html
对于上下文: 在此之前,我使用 mssparkutils.fs.put() 将 html 文件放在那里。所以系统可以写,但不能读?这令人困惑。
我尝试过的其他方法:
pdfkit.from_string()
pdfkit.from_url()
他们给出的错误:
No wkhtmltopdf executable found: "b''"
【问题讨论】:
标签: python-3.x apache-spark-sql pdfkit azure-synapse azure-data-lake-gen2