5

Is it possible to render PDF using DocumentViewer (it's WPF control) ?

If it is possible then how ? Code example or link to some code example would be appreciated. Thanks for answers.

Rasto
  • 17,204
  • 47
  • 154
  • 245

1 Answers1

5

I don't think it is possible with the DocumentViewer - unless you convert to XPS first.

There are a few other threads on displaying PDF in WPF:

Mario Z
  • 4,328
  • 2
  • 24
  • 38
GreyCloud
  • 3,030
  • 5
  • 32
  • 47
  • That VB.NET control from CodeProject seems to no longer word, or at least it has problems with recent PDF (it doesn't display text with True Type (CID) font, identity-H). Anyway, I ended up using [this PDF viewer](https://www.gemboxsoftware.com/pdf/examples/pdf-xpsdocument-wpf/1001). – hertzogth Apr 06 '20 at 03:13