Skip to content

Commit f04dd5d

Browse files
authored
fix options for headless chrome documentation
1 parent 5f7dbb9 commit f04dd5d

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
@@ -112,8 +112,7 @@ An `Api2PdfResponse` object is returned from every API call. If a call is unsucc
112112
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
113113

114114
var options = new Dictionary<string, string>();
115-
options.Add("orientation", "landscape");
116-
options.Add("pageSize", "Letter");
115+
options.Add("landscape", "true");
117116
var apiResponse = a2pClient.HeadlessChrome.FromHtml("<p>Hello, World</p>", options: options);
118117

119118
**Convert URL to PDF**
@@ -128,8 +127,7 @@ An `Api2PdfResponse` object is returned from every API call. If a call is unsucc
128127
[View full list of Headless Chrome options available.](https://www.api2pdf.com/documentation/advanced-options-headless-chrome/)
129128

130129
var options = new Dictionary<string, string>();
131-
options.Add("orientation", "landscape");
132-
options.Add("pageSize", "Letter");
130+
options.Add("landscape", "true");
133131
var apiResponse = a2pClient.HeadlessChrome.FromUrl("http://www.api2pdf.com", options: options);
134132

135133
---

0 commit comments

Comments
 (0)