@@ -102,7 +102,7 @@ public WkHtmlToPdfHandler(string apiKey)
102102 _apiKey = apiKey ;
103103 }
104104
105- public Api2PdfResponse FromHtml ( string html , bool inline = false , string outputFileName = null , params KeyValuePair < string , string > [ ] options )
105+ public Api2PdfResponse FromHtml ( string html , bool inline = false , string outputFileName = null , Dictionary < string , string > options = null )
106106 {
107107 var wkRequest = new WkHtmlToPdfHtmlRequest
108108 {
@@ -121,7 +121,7 @@ public Api2PdfResponse FromHtml(string html, bool inline = false, string outputF
121121 return _httpClient . PostPdfRequest < Api2PdfResponse > ( $ "{ API_BASE_URL } /wkhtmltopdf/html", wkRequest ) ;
122122 }
123123
124- public Api2PdfResponse FromUrl ( string url , bool inline = false , string outputFileName = null , params KeyValuePair < string , string > [ ] options )
124+ public Api2PdfResponse FromUrl ( string url , bool inline = false , string outputFileName = null , Dictionary < string , string > options = null )
125125 {
126126 var wkRequest = new WkHtmlToPdfUrlRequest
127127 {
@@ -149,7 +149,7 @@ public HeadlessChromeHandler(string apiKey)
149149 _apiKey = apiKey ;
150150 }
151151
152- public Api2PdfResponse FromHtml ( string html , bool inline = false , string outputFileName = null , params KeyValuePair < string , string > [ ] options )
152+ public Api2PdfResponse FromHtml ( string html , bool inline = false , string outputFileName = null , Dictionary < string , string > options = null )
153153 {
154154 var chromeRequest = new ChromeHtmlRequest
155155 {
@@ -168,7 +168,7 @@ public Api2PdfResponse FromHtml(string html, bool inline = false, string outputF
168168 return _httpClient . PostPdfRequest < Api2PdfResponse > ( $ "{ API_BASE_URL } /chrome/html", chromeRequest ) ;
169169 }
170170
171- public Api2PdfResponse FromUrl ( string url , bool inline = false , string outputFileName = null , params KeyValuePair < string , string > [ ] options )
171+ public Api2PdfResponse FromUrl ( string url , bool inline = false , string outputFileName = null , Dictionary < string , string > options = null )
172172 {
173173 var chromeRequest = new ChromeUrlRequest
174174 {
0 commit comments