PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 5:32 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Mon Jun 16, 2008 3:09 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
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).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 26, 2010 2:56 pm 
Offline

Joined: Sun Dec 26, 2010 2:52 pm
Posts: 1
I've downloaded everything and unzipped it. None of the folders contain a PdfSharp.Dll file. Where is it?


Top
 Profile  
Reply with quote  
PostPosted: Sat Jan 01, 2011 8:14 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
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"

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 12, 2011 1:34 pm 
Offline

Joined: Wed Oct 12, 2011 1:26 pm
Posts: 5
For us assembly dummies, can you post the dll to sourceforge so we can simply register/use it?


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 12, 2011 1:37 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
jbruns2011 wrote:
For us assembly dummies, can you post the dll to sourceforge so we can simply register/use it?

It is there.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 12, 2011 1:49 pm 
Offline

Joined: Wed Oct 12, 2011 1:26 pm
Posts: 5
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 12, 2011 2:25 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Dec 06, 2011 11:10 pm 
Offline

Joined: Tue Dec 06, 2011 11:02 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 07, 2011 8:24 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
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).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 28, 2011 5:11 pm 
Offline

Joined: Wed Dec 28, 2011 5:03 pm
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 31, 2011 6:38 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 339
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).

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 13, 2012 6:59 pm 
Offline

Joined: Tue Mar 13, 2012 2:46 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 14, 2012 8:26 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
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

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 46 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group