-5

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

rebeliagamer
  • 1,257
  • 17
  • 33
MMMETA
  • 3
  • 1
  • 3

2 Answers2

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
  • 2
    I 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