You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Installation
28
28
.. code-block:: bash
29
29
30
30
$ sudo apt-get install wkhtmltopdf
31
-
31
+
32
32
* macOS:
33
33
34
34
.. code-block:: bash
@@ -70,8 +70,8 @@ If you wish to further process generated PDF, you can read it to a variable:
70
70
71
71
.. code-block:: python
72
72
73
-
#Use False instead of output path to save pdf to a variable
74
-
pdf = pdfkit.from_url('http://google.com', False)
73
+
#Without output_path, PDF is returned for assigning to a variable
74
+
pdf = pdfkit.from_url('http://google.com')
75
75
76
76
You can specify all wkhtmltopdf `options <http://wkhtmltopdf.org/usage/wkhtmltopdf.txt>`_. You can drop '--' in option name. If option without value, use *None, False* or *''* for dict value:. For repeatable options (incl. allow, cookie, custom-header, post, postfile, run-script, replace) you may use a list or a tuple. With option that need multiple values (e.g. --custom-header Authorization secret) we may use a 2-tuple (see example below).
0 commit comments