Skip to content

Foxit PDF SDK .NET Core Library ​

This guide describes how to create a basic C# console sample project and a cross-platform sample project using Foxit PDF SDK for .NET Core. The sample renders the first page of a PDF document to a bitmap and saves it as a JPG image. Using .NET Core 2.2 as an example, it shows how to create projects on Windows, Linux, and Mac x64 and automatically switch library files.

Prerequisites ​

Development environment ​

  • Windows/Linux/macOS x64 .NET Core version: ≥ 2.1
  • macOS arm64 .NET SDK version: ≥ 6.0
  • Foxit PDF SDK .NET Core library

System support ​

We provide detailed system support information for Windows, Linux, and macOS, including operating system versions and compiler requirements. Select your platform to view the details.

WindowsLinux Mac

Run samples ​

Run samples from the command line ​

See Samples for an overview of the sample projects, dependency information for specific samples, and instructions for running samples from the command line.

.NET SDK 6.0 or later ​

If you are using .NET SDK 6.0 or later, follow these steps to run samples:

  1. Edit the project file: Open your .csproj project file.

  2. Update TargetFramework: Set the <TargetFramework> value to net6.0.

    xml
    <Project Sdk="Microsoft.NET.Sdk">
      <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net6.0</TargetFramework>
        </PropertyGroup>
      </Project>