Skip to content

Commit 7891b0c

Browse files
authored
fix options for headless chrome documentation
1 parent 7b94dca commit 7891b0c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ Output:
131131
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
132132

133133
options = {
134-
'orientation': 'landscape',
135-
'pageSize': 'A4'
134+
'landscape': True
136135
}
137136
api_response = a2p_client.HeadlessChrome.convert_from_html('<p>Hello, World</p>', **options)
138137

@@ -148,8 +147,7 @@ Output:
148147
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
149148

150149
options = {
151-
'orientation': 'landscape',
152-
'pageSize': 'A4'
150+
'landscape': True
153151
}
154152
api_response = a2p_client.HeadlessChrome.convert_from_url('http://www.api2pdf.com', **options)
155153

0 commit comments

Comments
 (0)