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.md
+42-5Lines changed: 42 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -73,11 +73,23 @@ Output:
73
73
74
74
We support both **wkhtmltopdf** and **Headless Chrome** with the endpoint to convert raw html to PDFs. Both endpoints allow you to pass keyword arguments that are options available for their respective libraries.
@@ -94,12 +106,24 @@ We support both **wkhtmltopdf** and **Headless Chrome** with the endpoint to con
94
106
95
107
We support both wkhtmltopdf and Headless Chrome with the endpoint to convert urls to PDFs. Both endpoints allow you to pass keyword arguments that are options available for their respective libraries.
`url <string>` - url to a file of one of the supported formats above
152
+
153
+
`inline_pdf <bool> (optional, default=False)` - if set to True, web browser will load the PDF in a new tab.
154
+
155
+
`file_name <string> (optional, default=None)` - specify an optional file name like "report-03012019.pdf".
156
+
124
157
125
158
from api2pdf import Api2Pdf
126
159
a2p = Api2Pdf('YOUR-API-KEY')
@@ -133,6 +166,10 @@ You must provide a url to the file. Our engine will consume the file at that URL
133
166
To use the merge endpoint, supply a list of urls to existing PDFs. The engine will consume all of the PDFs and merge them into a single PDF, in the order in which they were provided in the list.
0 commit comments