Skip to content

Commit 44e8cc1

Browse files
committed
support delete functionality, new example app
1 parent 47c8254 commit 44e8cc1

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,5 @@ ASALocalRun/
328328

329329
# MFractors (Xamarin productivity tool) working folder
330330
.mfractor/
331+
332+
Api2Pdf.DotNet/Test.cs

Api2Pdf.DotNet.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ VisualStudioVersion = 15.0.27004.2009
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Api2Pdf.DotNet", "Api2Pdf.DotNet\Api2Pdf.DotNet.csproj", "{2E91CC9C-D07D-4C07-83A5-74C79EFC3D83}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples.ConsoleApp", "Examples.ConsoleApp\Examples.ConsoleApp.csproj", "{E549F124-5451-4008-B055-17EB01635F8B}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleApp", "ExampleApp\ExampleApp.csproj", "{05849817-58C8-4921-8B6B-EE747EE80D8B}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -17,10 +17,10 @@ Global
1717
{2E91CC9C-D07D-4C07-83A5-74C79EFC3D83}.Debug|Any CPU.Build.0 = Debug|Any CPU
1818
{2E91CC9C-D07D-4C07-83A5-74C79EFC3D83}.Release|Any CPU.ActiveCfg = Release|Any CPU
1919
{2E91CC9C-D07D-4C07-83A5-74C79EFC3D83}.Release|Any CPU.Build.0 = Release|Any CPU
20-
{E549F124-5451-4008-B055-17EB01635F8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21-
{E549F124-5451-4008-B055-17EB01635F8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22-
{E549F124-5451-4008-B055-17EB01635F8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23-
{E549F124-5451-4008-B055-17EB01635F8B}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{05849817-58C8-4921-8B6B-EE747EE80D8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{05849817-58C8-4921-8B6B-EE747EE80D8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{05849817-58C8-4921-8B6B-EE747EE80D8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{05849817-58C8-4921-8B6B-EE747EE80D8B}.Release|Any CPU.Build.0 = Release|Any CPU
2424
EndGlobalSection
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE

ExampleApp/ExampleApp.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp2.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\Api2Pdf.DotNet\Api2Pdf.DotNet.csproj" />
10+
</ItemGroup>
11+
12+
</Project>

ExampleApp/Program.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using Api2PdfLibrary;
3+
4+
namespace ExampleApp
5+
{
6+
class Program
7+
{
8+
static void Main(string[] args)
9+
{
10+
Console.WriteLine("Hello World!");
11+
var a2pClient = new Api2Pdf("YOUR-API-KEY"); //portal.api2pdf.com/register
12+
13+
var result = a2pClient.HeadlessChrome.FromHtml("<p>Hello World</p>");
14+
Console.WriteLine(result.Pdf);
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)