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.
- Add dependencies through NuGet (optional).
- Add the reference to SautinSoft.PDF.dll.
1. Add dependencies through NuGet (optional):
- Open Microsoft Visual Studio and create a new project or open an existing
- Solution Explorer Window –> right click by "References" –> Manage NuGet Packages... –> In the tab "Browse" type "sautinsoft" and find the "sautinsoft.pdf"
- 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:
- First of all, download the SautinSoft.Pdf package. Unzip it at any place in your computer and find the assembly file "SautinSoft.Pdf.dll"
- Open Microsoft Visual Studio and create a new project or open an existing project
- Solution Explorer Window –> right click by "Dependencies" –> Add Project References –> In the tab "Browse" find the "SautinSoft.Pdf.dll"
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.
- 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 или спросите в онлайн-чате (правый нижний угол этой страницы) или используйте форму ниже: