Some test text!

menu
search

PDFTron for .NET Core

linkPrerequisites

  • Target framework >= netcoreapp2.1

linkRun sample projects

  1. Install the .NET Core SDK: https://www.microsoft.com/net
  2. Download the PDFTron SDK
  3. Navigate into a sample project, for example /Samples/AddImageTest/CS
  4. Run dotnet run

linkCreate your own app

  1. Install the .NET Core SDK: https://www.microsoft.com/net
  2. Download the PDFTron SDK
  3. Create a new project
> dotnet new console -o myApp
> cd myApp
  1. Unzip PDFTron SDK package, copy /Lib/libPDFNetC.dylib, /Lib/libPDFNetC.dylib.7.0.1 and /Lib/PDFNetDotNetCore.dll into myApp folder.
  2. Open myApp.csproj in your favorite text editor, add:
<ItemGroup>
  <Content Include="libPDFNetC.dylib">
    <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.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close