Skip to content

Commit d92dde2

Browse files
committed
Update to Nuget Package Version 1.0.1
1 parent e1222c6 commit d92dde2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Api2Pdf.DotNet/Api2Pdf.DotNet.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<RepositoryUrl>https://github.com/Api2Pdf/api2pdf.dotnet/</RepositoryUrl>
1313
<PackageTags>pdf wkhtmtopdf headless chrome libreoffice</PackageTags>
1414
<Description>Wrapper for Api2Pdf.com - instantly generate PDFs from HTML, URLs or office documents. Also includes support for merge. Wrapper around wkhtmltopdf, headless chrome, and libre office.</Description>
15+
<Version>1.0.1</Version>
1516
</PropertyGroup>
1617

1718
<ItemGroup>

Api2Pdf.DotNet/Api2Pdf.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)