Skip to content

Commit d2ab276

Browse files
authored
fix grammar errors
1 parent 5f42bda commit d2ab276

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Api2Pdf.com is a service for instantly generating PDFs.
1313
- [Helper Methods](#helper-methods)
1414
- [FAQ](#faq)
1515

16-
Api2Pdf provides access to **wkhtmltopdf**, **Headless Chrome**, and **LibreOffice**, along with the ability merge / concatenate PDFs together.
16+
Api2Pdf provides access to **wkhtmltopdf**, **Headless Chrome**, and **LibreOffice**, along with the ability to merge / concatenate PDFs together.
1717

1818

1919

@@ -32,7 +32,7 @@ This python library provides convenient methods for accessing the REST API [docu
3232

3333
from api2pdf import Api2Pdf
3434

35-
a2p = Api2PDF('YOUR-API-KEY')
35+
a2p = Api2Pdf('YOUR-API-KEY')
3636
api_response = a2p.HeadlessChrome.convert_from_html('<p>Hello, World</p>')
3737
print(api_response.result)
3838

@@ -73,11 +73,14 @@ Output:
7373

7474
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.
7575

76+
- [wkhtmltopdf options](https://www.api2pdf.com/documentation/advanced-options-wkhtmltopdf/)
77+
- [headless chrome options](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
78+
7679
##### HeadlessChrome.convert_from_html(html, **options)
7780
##### WkHtmlToPdf.convert_from_html(html, **options)
7881

7982
from api2pdf import Api2Pdf
80-
a2p = Api2PDF('YOUR-API-KEY')
83+
a2p = Api2Pdf('YOUR-API-KEY')
8184

8285
# headless chrome
8386
headless_chrome_result = a2p.HeadlessChrome.convert_from_html('<p>Hello World</p>')
@@ -91,12 +94,15 @@ We support both **wkhtmltopdf** and **Headless Chrome** with the endpoint to con
9194

9295
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.
9396

97+
- [wkhtmltopdf options](https://www.api2pdf.com/documentation/advanced-options-wkhtmltopdf/)
98+
- [headless chrome options](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
99+
94100
##### HeadlessChrome.convert_from_url(url, **options)
95101

96102
##### WkHtmlToPdf.convert_from_url(url, **options)
97103

98104
from api2pdf import Api2Pdf
99-
a2p = Api2PDF('YOUR-API-KEY')
105+
a2p = Api2Pdf('YOUR-API-KEY')
100106

101107
# headless chrome
102108
headless_chrome_result = a2p.HeadlessChrome.convert_from_url('https://LINK-TO-YOUR-WEBSITE')
@@ -117,7 +123,7 @@ You must provide a url to the file. Our engine will consume the file at that URL
117123
##### LibreOffice.convert_from_url(url)
118124

119125
from api2pdf import Api2Pdf
120-
a2p = Api2PDF('YOUR-API-KEY')
126+
a2p = Api2Pdf('YOUR-API-KEY')
121127

122128
libreoffice_result = a2p.LibreOffice.convert_from_html('https://LINK-TO-YOUR-FILE')
123129
print(libreoffice_result.result)
@@ -129,7 +135,7 @@ To use the merge endpoint, supply a list of urls to existing PDFs. The engine wi
129135
##### merge(list_of_urls)
130136

131137
from api2pdf import Api2Pdf
132-
a2p = Api2PDF('YOUR-API-KEY')
138+
a2p = Api2Pdf('YOUR-API-KEY')
133139

134140
# merge pdfs
135141
links_to_pdfs = ['https://LINK-TO-PDF', 'https://LINK-TO-PDF']
@@ -143,7 +149,7 @@ To use the merge endpoint, supply a list of urls to existing PDFs. The engine wi
143149
On any `Api2PdfResponse` that succesfully generated a pdf, you can use the handy download_pdf() method to download the pdf to a file-like object which you can then save to your local cache. If the pdf generation was unsuccessful, it will throw a FileNotFoundException.
144150

145151
from api2pdf import Api2Pdf
146-
a2p = Api2PDF('YOUR-API-KEY')
152+
a2p = Api2Pdf('YOUR-API-KEY')
147153

148154
# merge pdfs
149155
links_to_pdfs = ['https://LINK-TO-PDF', 'https://LINK-TO-PDF']

0 commit comments

Comments
 (0)