Some test text!

PDFTron for .NET Core

In this document
chevron_rightRunning sample projects
chevron_rightCreating your app

linkRunning sample projects

  1. Install the .NET Core SDK: https://www.microsoft.com/net/learn/get-started/windows
  2. Download PDFTron SDK
An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.
  1. Navigate into a sample project, for example /Samples/AddImageTest/CS
  2. Run dotnet run

linkCreating your app

  1. Install the .NET Core SDK: https://www.microsoft.com/net/learn/get-started/windows
  2. Download PDFTron SDK
  1. Create a new project
> dotnet new console -o myApp
> cd myApp
  1. Unzip PDFTron SDK package, copy /Lib/libPDFNetC.so, /Lib/libPDFNetC.so.6.8.7 and /Lib/PDFNetDotNetCore.dll into myApp folder.
  2. Open myApp.csproj in your favorite text editor, add:
<ItemGroup>
  <Content Include="libPDFNetC.so">
    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  </Content>
</ItemGroup>

<ItemGroup>
  <Reference Include="PDFNetDotNetCore">
    <HintPath>PDFNetDotNetCore.dll</HintPath>
  </Reference>
</ItemGroup>
  1. Open Program.cs in your favorite text editor, add:
static void Main(string[] args)
{
    Console.WriteLine("Hello World!");
    pdftron.PDFNet.Initialize();
}
  1. Run the project:
> dotnet run

Now you have made a .NET Core project with PDFTron SDK!

Hello World!

PDFNet is running in demo mode.