PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 5:16 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed May 25, 2016 2:30 pm 
Offline

Joined: Wed May 25, 2016 1:24 pm
Posts: 1
I have a C# application, for which the GUI has been written in XAML.

I want to add the functionality to be able to display PDF documents from inside my application, and came across PDFSharp as one of the PDF viewers that provides this functionality.

I have downloaded the source code for PDFSharp, but I'm not sure how I now incorporate this into my application... Is there a guide for how to do this? I had a look on SourceForge, but couldn't see any supporting documentation that explained how to do it.

I have tried opening the source folder in Visual Studio, but can't find a way to build or run the code to see a working example of it... when I try to run the solution, I get an error message which says:

Quote:
A project with an Output Type of Class Library cannot be started directly.

In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.


How would I go about looking into adding this PDF viewer to my application?


Top
 Profile  
Reply with quote  
PostPosted: Wed May 25, 2016 2:41 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
noble-surfer wrote:
How would I go about looking into adding this PDF viewer to my application?
Start with the FAQ and you will find that PDFsharp cannot show PDF files.

http://www.pdfsharp.net/wiki/PDFsharpFA ... DF_files_3

PDFsharp is a library and cannot be started. You can add a Console Application or a WPF application to the solution.
Or add the PDFsharp projects to your existing solution.
Or start looking at the samples that you can download separately.

But since PDFsharp is not a PDF viewer you probably no longer are interested to get PDFsharp going.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 334 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