简体   繁体   English

完成下载之前打开PDF文件

[英]Open a PDF file before it is finished downloading

I am writing a WPF software using .NET 4.5 to show the PDF Data in a Viewer. 我正在使用.NET 4.5编写WPF软件,以在查看器中显示PDF数据。 I am showing the PDF on the viewer directly from the server. 我直接从服务器在查看器上显示PDF。 That means before actually the PDf shows up in the viewer, the pdf is downloaded on the device and then when it finishes downloading, it shows on the viewer. 这意味着在实际显示PDf之前,先将pdf下载到设备上,然后在完成下载后将其显示在查看器上。

Do anybody has a idea on how to show the downloaded data on the viewer when it's being downloaded. 有人对下载时在查看器上显示下载的数据有想法吗? I mean if the PDF file has 100 pages and it has finish downloading some data or pages then it starts showing some pages at first and it continue downloading the PDF on the background. 我的意思是,如果PDF文件有100页,并且它已完成下载一些数据或页面,那么它将首先显示一些页面,然后继续在后台下载PDF。

PS: I am using GDPicture as a viewer. PS:我正在使用GDPicture作为查看器。

Save the file as Web Optimized 将文件另存为Web Optimized

Optimizing PDFs 优化PDF

Enable Fast Web View 启用快速网页查看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM