Render PDF using DocumentViewer control?

≡放荡痞女 提交于 2019-11-29 21:32:07

问题


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.


回答1:


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:

  • Display a PDF in WPF Application
  • Please suggest a PDF viewer for WPF
  • http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/
  • http://www.codeproject.com/KB/applications/PDFViewerControl.aspx


来源:https://stackoverflow.com/questions/3430177/render-pdf-using-documentviewer-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!