Start process from stream

后端 未结 4 1669
北荒
北荒 2021-01-12 04:54

I have a memory stream that contains a PDF file.

Is it possible to view the PDF without saving it to the hard disk ? Process.Start() only takes a path and not a str

4条回答
  •  长情又很酷
    2021-01-12 05:41

    Sure, this is certainly possible. Just not via Process Start and Adobe Reader (I assume you are invoking Adobe or something similar)

    If you are using .NET or Java you simply need to find a PDF viewer component, there are lots to choose from, google will give you plenty of links, Gnostice has a good one, but its expensive. Once you find a suitable control, view the PDF directly from your app.

提交回复
热议问题