2011-05-10 68 views

回答

2

據我所知,沒有開源庫。我搜索了一段時間,因爲我也需要這個功能。

我發現的唯一「解決方法」是使用Ghostscript將PDF轉換爲可以顯示的圖像,或者將免費的PDF查看器自動化以在XPS Document writer上打印並顯示XPS。但在商業產品中,您有引導變通辦法的許可限制。

+0

非常感謝你。 – 2011-05-10 09:02:13

4

嘗試使用:

<Window x:Class="PDFViewer1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <WebBrowser Source="C:\User\Foo\Desktop\SomeFile.pdf" /> </Grid> </Window>

+0

這將在'MainWindow'中承載默認的pdf閱讀器 – Bellash 2018-02-06 11:50:45