PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to Obtain PdfSharp.Dll
https://forum.pdfsharp.net/viewtopic.php?f=2&t=409
Page 1 of 1

Author:  Thomas Hoevel [ Mon Jun 16, 2008 3:09 pm ]
Post subject:  How to Obtain PdfSharp.Dll

Update 2017:
We no longer publish ZIP files with DLLs.
So one option is downloading the source code and compiling yourself.

The other option: Download the NuGet package. On nuget.org select the package you need, then select "Manual download", rename the file from ".nupkg" to ".zip" and extract the files.


Old version:
Beginning with PDFsharp 1.30 we include binaries in a separate ZIP file.

http://sourceforge.net/project/showfile ... _id=150343

http://pdfsharp.codeplex.com/

Download "PDFsharp-MigraDocFoundation-Assemblies-1_xx.zip" to get the DLLs (called "assemblies" in the .NET world).

Author:  wise_s [ Sun Dec 26, 2010 2:56 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

I've downloaded everything and unzipped it. None of the folders contain a PdfSharp.Dll file. Where is it?

Author:  () => true [ Sat Jan 01, 2011 8:14 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

wise_s wrote:
I've downloaded everything and unzipped it. None of the folders contain a PdfSharp.Dll file. Where is it?

DLLs are nowadays called "assemblies".
Download "PDFsharp-MigraDocFoundation-Assemblies-1_31.zip"

Author:  jbruns2011 [ Wed Oct 12, 2011 1:34 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

For us assembly dummies, can you post the dll to sourceforge so we can simply register/use it?

Author:  Thomas Hoevel [ Wed Oct 12, 2011 1:37 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

jbruns2011 wrote:
For us assembly dummies, can you post the dll to sourceforge so we can simply register/use it?

It is there.

Author:  jbruns2011 [ Wed Oct 12, 2011 1:49 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

I just downloaded the 1.31 zip, searched the entire structure, found files similar in name but none exactly named pdfsharp.dll.

When we do find it, does it need to be registered to use or can it just be referenced? I found one of your Powershell examples for creating a PDF from Powershell and of course the first thing it tries to do is,

[reflection.assembly]::loadfrom("C:\downloads\pdfsharp\PDFsharp\code\PdfSharp\bin\Debug\PdfSharp.dll") | out-null

Author:  Thomas Hoevel [ Wed Oct 12, 2011 2:25 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

Download "PDFsharp-MigraDocFoundation-Assemblies-1_31.zip".
There's not much "structure" in that file, so I presume you got the wrong ZIP file.

See here:
http://sourceforge.net/projects/pdfshar ... p/download

Or here:
http://pdfsharp.codeplex.com/releases/3 ... load/96263

Author:  MortyD [ Tue Dec 06, 2011 11:10 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

I am still running into trouble getting the dll.

I have downloaded the assembly zip file and get this error when I try to add it to my References:
You can't add a reference to PdfSharp.dll as it was not built against the Silverlight runtime. Silverlight projects will only work with Silverlight Assemblies.

Originally I was working with a dll called SilverPDf, but it uses this pdfsharp.

I'm running Visual Studio 2010 now. I've opened the BuildAll-PdfSharp.sln in 2010 and tried to build. I get 5 errors, basically all saying that it cant find the pdfSharp.dll

Am I building it incorrectly? Is there something different about VS 2010?

Suggestions?
Dorothy

Author:  Thomas Hoevel [ Wed Dec 07, 2011 8:24 am ]
Post subject:  Re: How to Obtain PdfSharp.Dll

MortyD wrote:
Originally I was working with a dll called SilverPDf, but it uses this pdfsharp.
That's a completely different project (it's based on PDFsharp, but it's not supported on this site).

We haven't yet released a PDFsharp version that supports Silverlight.
The DLLs we released are for .NET and will not work with Silverlight projects (just as the error message indicates).

Author:  YJWONG [ Wed Dec 28, 2011 5:11 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

Hi.

I just downloaded the PDFSharp-MigraDocFoundation-1_31.zip

but i still cant find the PdfSharp.DLL like you mention on the post above. I found similar but witht he .DLL format like pdflib.dll, PdfSharp.charting-WPF.dll.

By the way, I am using Microsoft Visual Studio 2010. You mind teach me step by step on copying the library/Plugin into the Visual Studio 2010 Folder to make it workable.

Regards
YJWONG

Author:  () => true [ Sat Dec 31, 2011 6:38 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

Hi!
YJWONG wrote:
I just downloaded the PDFSharp-MigraDocFoundation-1_31.zip
but i still cant find the PdfSharp.DLL like you mention on the post above.
The post tells to download "PDFsharp-MigraDocFoundation-Assemblies-1_31.zip" to get the DLLs (nowadays called assemblies).

You downloaded the source code package (no DLLs included).

Author:  kforslund [ Tue Mar 13, 2012 6:59 pm ]
Post subject:  Re: How to Obtain PdfSharp.Dll

This thread seems like it didn't get the problem solved.

If you need the DLL, it is assumed it is because you are coding against it. Therefore, you must have Visual Studio and know how to compile stuff.

Therefore:
download the source and unzip
open the .SLN file
Right-click it and rebuild
open the directory where you saved the source
navigate to PDFSharp\bin\Debug and there is your DLL.


Just as effective is to incorporate the PDFSharp project into your solution:
download the source and unzip
move the project dirs over to your solution directory
add Existing Projects to your solution for each of those projects from PDFSharp
add a reference (from the PDF Sharp project) to your project
You can then to Imports PDFSharp or using PDFSharp; in you VB/C# respectively and access the library.

I prefer the latter method, because if PDFSharp throws an exception, the debugger will trace to the source in the project, rather than stopping at the external API reference in the DLL.

Author:  Thomas Hoevel [ Wed Mar 14, 2012 8:26 am ]
Post subject:  Re: How to Obtain PdfSharp.Dll

kforslund wrote:
This thread seems like it didn't get the problem solved.
I'm not sure if the last post makes it clearer.

There is a ZIP file with DLLs only - or use the NuGet package if you need the DLLs only.

If you have C# knowledge, download the ZIP file with the source code and reference the projects (this is the recommended way).

Downloading the source files to compile them and then reference the DLL instead of the projects (as described in the post above) is the way I would not recommend.

When you download files, pay attention to the name of the ZIP file:
  • PDFSharp-MigraDocFoundation-1_32.zip: source code only, recommended for users of Visual Studio 2010 (no DLLs included, VS will create them on compile)
  • PDFsharp-MigraDocFoundation-Assemblies-1_32.zip: DLLs only

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/