Wpf documentviewer to view different file formats?

I have a wpf application where a user can upload files with different formats (only pdf for now). I want to use a document viewer so that the user can see what has been downloaded. Is it possible? If this is not possible, can you suggest an alternative? If possible, is this a good solution for this?

Thanks Angela

+1


a source to share


1 answer


I am currently looking for the same thing: a way to display a pdf document in WPF. The DocumentViewer seems to be for displaying XPS documents. It can display other types of documents, but it looks like we should provide our own Document class for this purpose.



So, I'll try to show my documents using the old workaround: displaying them in the built-in web browser. In my opinion, this is not a good decision. Especially since we cannot access many document properties using this method (number of document pages, page size, ...). But I haven't found any other solution available.

0


a source







All Articles