开发者

How can I view a PDF file via WPF?

I want to view a PDF file by using a free toolkits or something that be an open source , 开发者_如何转开发and it must be supported Thai language (Unicode Character). Can anyone help me out !? I'm in a deep trouble now.


Try to use :

<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>


As far as I know there is no open source library for that. I've searched a while because I needed this functionality too.

The only "workaround" I've found is to use Ghostscript to convert your PDF into images which you can display, or you automate a free PDF viewer to print on the XPS Document writer and show the XPS. But in commercial products you have licence restrictions for boot workarounds.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜