I want to show a pdf page in the picturebox. Is it possible to do that? if not is there any other way out where i can show the pdf page inside the windows form in visual studio? Thanks
Asked
Active
Viewed 9,055 times
-5
-
pdf is only visible in its compatible viewer. in picturebox you can set its icon and on click you can open it – Oct 10 '13 at 08:28
-
@AmitRanjan That's not what he's trying to do. – Jonathon Reinhart Oct 10 '13 at 08:28
2 Answers
6
No. A PictureBox
can only display a System.Drawing.Image
, which a PDF is not.
Instead, you should be searching for a Winforms PDF viewer.

Community
- 1
- 1

Jonathon Reinhart
- 132,704
- 33
- 254
- 328
-
2I honestly have no idea!!! (exclamation points repeated for reciprocity) My first step would be to search for it - just like yours should be. – Jonathon Reinhart Oct 10 '13 at 08:36
0
You can do that by using Ghostscript.NET (Ghostscript library wrapper for .NET).
Take a look at this blog: How to use Ghostscript.NET library to render PDF's directly to the screen
You can download Ghostscript.NET from here: https://ghostscriptnet.codeplex.com/

HABJAN
- 9,212
- 3
- 35
- 59