We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c27001 commit ac0406aCopy full SHA for ac0406a
1 file changed
README.rst
@@ -164,6 +164,16 @@ Example - for when ``wkhtmltopdf`` is not on ``$PATH``:
164
config = pdfkit.configuration(wkhtmltopdf='/opt/bin/wkhtmltopdf')
165
pdfkit.from_string(html_string, output_file, configuration=config)
166
167
+Also you can use ``configuration()`` call to check if wkhtmltopdf is present in ``$PATH``:
168
+
169
+.. code-block:: python
170
171
+ try:
172
+ config = pdfkit.configuration()
173
+ pdfkit.from_string(html_string, output_file)
174
+ except OSError:
175
+ #not present in PATH
176
177
178
Troubleshooting
179
---------------
0 commit comments