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

How to use PDFSharp within my existing application?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3367
Page 1 of 1

Author:  noble-surfer [ Wed May 25, 2016 2:30 pm ]
Post subject:  How to use PDFSharp within my existing application?

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?

Author:  Thomas Hoevel [ Wed May 25, 2016 2:41 pm ]
Post subject:  Re: How to use PDFSharp within my existing application?

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.

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