Use «Pdf .Net» library under Windows


You can easily use «SautinSoft.Pdf» in any .NET application, because of the component is completely written in C# managed code.

  1. Add dependencies through NuGet (optional).
  2. Add the reference to SautinSoft.PDF.dll.

1. Add dependencies through NuGet (optional):

  1. Open Microsoft Visual Studio and create a new project or open an existing
  2. Solution Explorer Window –> right click by "References" –> Manage NuGet Packages... –> In the tab "Browse" type "sautinsoft" and find the "sautinsoft.pdf"
  3. Install using nuget

  4. Select the desired version API and click "Install"

The selected API will be downloaded and referenced in your project. All dependencies are already installed automatically.

Using Manage NuGet Packages you can also update SautinSoft.Pdf to the desired version.


2. Add the reference to SautinSoft.Pdf.dll:

  1. First of all, download the SautinSoft.Pdf package. Unzip it at any place in your computer and find the assembly file "SautinSoft.Pdf.dll"
  2. Open Microsoft Visual Studio and create a new project or open an existing project
  3. Solution Explorer Window –> right click by "Dependencies" –> Add Project References –> In the tab "Browse" find the "SautinSoft.Pdf.dll"
  4. Install adding reference

    Note
    SautinSoft.Pdf.dll assemblies compiled for old .NET Framework 4.6.2 - 4.8 are located inside (pdf_net.zip –> Pdf .Net (X.X.X.X)\Bin\.NET Framework X.X) folder.
    SautinSoft.Pdf.dll assemblies compiled for .NET 6 and up are located inside (pdf_net.zip –> Pdf .Net (X.X.X.X)\Bin\.NET X.X) folder.

  5. Once you have referenced SautinSoft.Pdf.dll, add these dependencies to your project:
    • Pkcs11Interop (>=5.1.2)
    • Portable.BouncyCastle (>=1.9.0)
    • SkiaSharp (>=2.88.7)
    • SkiaSharp.HarfBuzz (>=2.88.7)
    • Svg.Skia (>=1.0.0.18)
    • System.IO.Packaging (>=4.5.0)
    • System.Net.Http (>=4.3.4)
    • System.Text.Encoding.CodePages (>=4.5.0)
    • System.Xml.XPath.XmlDocument (>=4.7.0)
    • Tesseract (>=5.2.0)
    • Tesseract.Data.English (>=4.0.0)

Above we mentioned about the minimal versions of the dependencies, actually you can use newer versions.


Если вам нужен пример кода или у вас есть вопрос: напишите нам по адресу support@sautinsoft.ru или спросите в онлайн-чате (правый нижний угол этой страницы) или используйте форму ниже:



Вопросы и предложения всегда приветствуются!

Мы разрабатываем компоненты .Net с 2002 года. Мы знаем форматы PDF, DOCX, RTF, HTML, XLSX и Images. Если вам нужна помощь в создании, изменении или преобразовании документов в различных форматах, мы можем вам помочь. Мы напишем для вас любой пример кода абсолютно бесплатно.