Use «Document .Net» library under Windows


You can easily use «Document .Net» 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.Document.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.document"
  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 Document .Net to the desired version.


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

  1. First of all, download the Document .Net package. Unzip it at any place in your computer and find the assembly file "SautinSoft.Document.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.Document.dll"
  4. Install adding reference

    Note
    SautinSoft.Document.dll assemblies compiled for old .NET Framework 4.6.1 - 4.8.1 are located inside (document_net.zip –> Document .Net (X.X.X.X)\Bin\.NET Framework X.X) folder.
    SautinSoft.Document.dll assemblies compiled for old .NET Core 2.0 - 3.1, .NET 5 are located inside (document_net.zip –> Document .Net (X.X.X.X)\Bin\.NET Core X.X) folder.
    SautinSoft.Document.dll assemblies compiled for new .NET 6 and up are located inside (document_net.zip –> Document .Net (X.X.X.X)\Bin\.NET X.X) folder.

  5. Once you have referenced SautinSoft.Document.dll, add these dependencies to your project:
    .NET Standard 2.0, .NET Core 2.0 or up, .NET 5 or up:
    • System.IO.Packaging (>= 4.4.0)
    • System.Text.Encoding.CodePages (>= 4.5.0)
    • System.Xml.XPath.XmlDocument (>= 4.3.0)
    • SkiaSharp (>= 2.88.6)
    • Svg.Skia (>= 1.0.0.3)

    .NET Framework 4.6.1 - 4.8.1:
    • No dependencies

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


If you need a new code example or have a question: email us at support@sautinsoft.com or ask at Online Chat (right-bottom corner of this page) or use the Form below:



Questions and suggestions from you are always welcome!

We are developing .Net components since 2002. We know PDF, DOCX, RTF, HTML, XLSX and Images formats. If you need any assistance with creating, modifying or converting documents in various formats, we can help you. We will write any code example for you absolutely free.