简体   繁体   English

vb.net PDF集成

[英]vb.net PDF integration

We have a database that has decompiled data versions of PDF files stored as blobs. 我们有一个数据库,其中已反编译存储为Blob的PDF文件的数据版本。

The old method to retrieve the information was to grab the blob, compile the file on the local disk, and then use process.start to launch the new .pdf file that was created. 检索信息的旧方法是获取Blob,在本地磁盘上编译文件,然后使用process.start启动创建的新.pdf文件。

I guess I am looking for a class that can accept the decompile PDF data, turn it into a compiled PDF and show the end results without having to save the file to the local disk. 我想我正在寻找一个可以接受反编译PDF数据,将其转换为已编译PDF并显示最终结果而不必将文件保存到本地磁盘的类。

Anyone have any suggestions? 有人有什么建议吗?

thanks. 谢谢。

You could just create the stream and send that into a Document Viewer control for PDF. 您可以只创建流并将其发送到PDF的Document Viewer控件中。 There are tons of PDF Viewer controls, as long as they support a DataStream you should be fine. 有大量的PDF Viewer控件,只要它们支持DataStream,就可以了。 I'd let the process compile the PDF File into memory as a File Stream and send it to the PDF viewer. 我让该过程将PDF文件作为文件流编译到内存中,并将其发送到PDF查看器。 I have done the same thing but to a Microsoft format like xps, and doc but as long as the viewer supports a file stream you should have no problem. 我已经做过同样的事情,但是对于xps和doc这样的Microsoft格式,但是只要查看器支持文件流,就应该没有问题。

This pdf viewer has a cost, but it might help: http://www.gnostice.com/nl_article.asp?id=109 the example they show goes by filename but its possible it might support the data stream method. 该pdf查看器需要付费,但可能会有所帮助: http : //www.gnostice.com/nl_article.asp?id= 109他们显示的示例按文件名显示,但可能支持数据流方法。 Most views do. 大多数视图都可以。

使用您的旧方法浏览所有已编译的.pdf文件,并将它们存储在某个位置。

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

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