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
Api2Pdf provides access to **wkhtmltopdf**, **Headless Chrome**, and **LibreOffice**, along with the ability merge / concatenate PDFs together.
13
17
14
18
15
19
16
-
## Get Started
20
+
## <aname="get-started"></a>Get Started
17
21
This python library provides convenient methods for accessing the REST API [documented here](https://www.api2pdf.com/documentation/).
18
22
19
23
### Acquire API Key
@@ -65,7 +69,7 @@ Output:
65
69
66
70
## Documentation
67
71
68
-
### Convert HTML to PDF
72
+
### <aname="convert-from-html"></a>Convert HTML to PDF
69
73
70
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.
71
75
@@ -83,7 +87,7 @@ We support both **wkhtmltopdf** and **Headless Chrome** with the endpoint to con
### <aname="convert-from-url"></a>Convert URL to PDF
87
91
88
92
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.
89
93
@@ -102,7 +106,7 @@ We support both wkhtmltopdf and Headless Chrome with the endpoint to convert url
### <aname="merge"></a>Merge / Concatenate Two or More PDFs
122
126
123
127
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.
124
128
@@ -132,7 +136,7 @@ To use the merge endpoint, supply a list of urls to existing PDFs. The engine wi
132
136
merge_result = a2p.merge(links_to_pdfs)
133
137
print(merge_result.result)
134
138
135
-
### Helper Methods
139
+
### <aname="helper-methods"></a>Helper Methods
136
140
137
141
##### Api2PdfResponse: download_pdf()
138
142
@@ -148,7 +152,7 @@ On any `Api2PdfResponse` that succesfully generated a pdf, you can use the handy
148
152
pdf_as_file_object = merge_result.download_pdf()
149
153
150
154
151
-
## FAQ
155
+
## <aname="faq"></a>FAQ
152
156
153
157
#### How do you bill?
154
158
$1 will be deducted from your balance every month as long as you maintain an active account. This charge begins 30 days after your first sign up for the service. In addition, we charge $0.001 per megabyte (data in + data out). We require customers to maintain a positive balance on their account to use the service. You can turn off auto-recharge at any time and let your funds run out if you no longer wish to use the service. See our [pricing calculator](https://www.api2pdf.com/pricing/).
@@ -168,4 +172,4 @@ Api2Pdf does not set any specific limits on PDF file size, however our system do
168
172
- Protected Office Documents
169
173
170
174
#### How long are PDFs stored on Api2Pdf.com?
171
-
After generating a PDF via the API, you are provided with a link to the file. This link will hold the PDF for 24 hours. If you wish to keep your PDF long term, download the file to your local cache.
175
+
After generating a PDF via the API, you are provided with a link to the file. This link will hold the PDF for 24 hours. If you wish to keep your PDF long term, download the file to your local cache.
0 commit comments