Some test text!

platform
search

PDFTron for .NET Core

Contents

Running sample projects
Creating your own app

linkRunning 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

linkCreating 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.so, /Lib/libPDFNetC.so.6.10.0 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.

Get the anwsers you need: Support

Contents

Running sample projects
Creating your own app