Display a PDF file

Viewed 12515

I'm writing an PowerShell application which aim to display a PDF file. PDF can be display in some control e.g. WebBrowser. The PDF file will be located on the disk, not in the Internet.

I was trying to do it with WebBrowser Control and Itext Library, but it didn't work.

Tiny part of my code:

$WebBrowser.Navigate("C:\...\My_file.pdf")
$WebBrowser.Url = "C:\...\My_file.pdf"

Do you have any tips for me how to proceed in this case?

3 Answers
Related