Getting Started

System Requirements

The DsPdf packages are fully supported on Visual Studio 2017 or later for Windows, Visual Studio for MAC, and Visual Studio Code for Linux and are compatible with the following:

Setting up an Application

DsPdf references are available through NuGet, a Visual Studio extension that adds the required libraries and references to your project automatically. To work with DsPdf, you need to have following references in your application:

Reference Purpose
DS.Documents.Pdf To use DsPdf in an application, you need to reference (install) just the DS.Documents.Pdf package. It will pull in the required infrastructure packages.
DS.Documents.BarCode To render barcodes, install the DS.Documents.Barcode (aka DsBarcode) package. It provides extension methods allowing to render barcodes when using DsPdf.
DS.Documents.Imaging DS.Documents.Imaging provides image handling. You do not need to reference it directly.
DS.Documents.DX.Windows DS.Documents.DX.Windows is an infrastructure package. You do not need to reference it directly.

Add reference to DsPdf in your application from NuGet.org

In order to use DsPdf in a .NET Core, ASP.NET Core, .NET Framework application (any target that supports .NET Standard 2.0), install the NuGet packages in your application using the following steps:

  1. Open Visual Studio for Windows.
  2. Create a .NET Core Console/.NET Framework Windows Forms Application.
  3. Right-click the project in Solution Explorer and choose Manage NuGet Packages.
  4. In the Package source on top right, select nuget.org.
  5. Click Browse tab on top left and search for "DS.Documents".
  6. On the left panel, select DS.Documents.Pdf
  7. On the right panel, click Install.
  8. In the Preview Changes dialog, click OK and choose I Accept in the next screen.
  9. (Optional)If you want to add barcodes in your PDF file, you need to install the package DS.Documents.Barcode using the steps 5 to 8 above.

This adds all the required references of the package to your application. After this step, follow the steps in the Quick Start section.