We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from_file
Hello.
When I try to use a list of files to create a PDF, I get the following error:
OSError: wkhtmltopdf exited with non-zero code 1. error: Exit with code 1, due to unknown error.
my code :
from glob import glob import pdfkit options = { "enable-local-file-access": "", "margin-top": "0", "margin-bottom": "0", "margin-left": "0", "margin-right": "0", 'page-size': 'Letter', 'encoding': "UTF-8", } pdfkit.from_file(glob("*.html"), "out.pdf", options=options) # or ["1.html", "2.html"]
pdfkit : 1.0.0 python : 3.6.13 wkhtmltopdf : 0.12.6
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
When I try to use a list of files to create a PDF, I get the following error:
my code :
pdfkit : 1.0.0
python : 3.6.13
wkhtmltopdf : 0.12.6
The text was updated successfully, but these errors were encountered: