Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
is there any free dll that can I use to disply pdf files in a C# application.
I used Open PDF but it's not free.

thx
Posted
Comments
[no name] 27-Aug-13 11:18am    
try iTextSharp
Sergey Alexandrovich Kryukov 27-Aug-13 11:23am    
First of all, you have to tag application type or UI library you want to use. And consider using something which is not PDF...
—SA

If all you need is to display the file, the simplest way is to use a WebBrowser control like:
C#
string path = @"C:\1\C# Threading Handbook.pdf";
System.Diagnostics.Process.Start("IExplore.exe", path);

or can open it with default viewer (adobe reader):
C#
string filePath = @"C:\1\C# Threading Handbook.pdf";
string adobeReaderPath = @"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe";
System.Diagnostics.Process.Start(adobeReaderPath, filePath);

Also can view:
How to Show PDF file in C#[^]
Displaying a pdf file from Winform[^]
 
Share this answer
 
v3
Import the Adobe PDF COM component into your Visual Studio Components toolbox so you can later place one instance in your form. It will link you to the AxAcroPDF.dll.

It's easy to use and there's plenty of information about it, just google and it will give you more information than I can in this comment.

Hope it works for you.
 
Share this answer
 
Comments
ridoy 27-Aug-13 13:27pm    
i think it is a probable good solution,so upvoted.
Medos86 28-Aug-13 4:42am    
is it possible to download only AxAcroPDF.dll and not to install the Adobe Reader in my computer?
V.Lorz 28-Aug-13 5:21am    
VStudio creates one wrapping interop DLL (AxInterop.AcroPDFLib.dll) for accessing the Adobe PDF Viewer ActiveX object (the COM object that visualises the PDF in your form). The AcroPDF.dll is part of the Adobe Reader installation and requires the viewer/writer to be installed on your pc.

In my pc it's located under C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDF.dll

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900