How to add PDFsharp lib in C#?

52,980

Solution 1

I've also found that PdfSharp is available as an add on through the Nuget Package Manager Console.

Solution 2

You can add the existing projects (*.csproj) that come with the PDFsharp source code to your solution and then reference these projects. If you do so, you can jump into the PDFsharp source code and IntelliSense will also work. Check the samples to see which references you need.

All required assemblies will automatically be copied to the bin/debug or bin/release folder respectively of your application.

If you only downloaded the binaries, add references to the DLL files.

Update: You can find PDFsharp and MigraDoc on NuGet. The NuGet Package Manager will then add the project references for you.

Solution 3

Download the Assemblies version from this URL: http://pdfsharp.codeplex.com/releases/view/37054

Solution 4

I think you have downloaded the source files. Open the file BuildAll-PdfSharp.sln in visual studio and build the project. Then it will generate the dll files that you have to reference in your own project.

Hope this helps.

/Klaus

Solution 5

you have to add the dll as a reference to your Visual Studio solution. In the project explorer, in the Reference node, right click and add reference. Search for that dll and add it to the project.

Share:
52,980
Royson
Author by

Royson

Updated on August 02, 2020

Comments

  • Royson
    Royson almost 4 years

    I am new to C#.net, I downloaded PDFsharp lib. But how to add this lib to our project?
    My project is to create a PDF file. Please provide me step by step instructions. After unziping it has 32 folders.
    I tried by coping it in my project folder, but same errors come.

    "The type or namespace name 'PdfSharp' could not be found (are you missing a using directive or an assembly reference?)"