需要PDF查看器控件 - 尝试了很多 [英] Need PDF viewer control - tried a lot

查看:161
本文介绍了需要PDF查看器控件 - 尝试了很多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个组件来查看和打印Delphi / C ++ Builder中的PDF文件。 Delphi或ActiveX,而不是.NET。许可证必须是免版税发行,观众不得要求安装Adobe Reader。

I'm looking for a component to view and print PDF files from Delphi/C++Builder. Delphi or ActiveX, not .NET. The license must be for royalty free distribution and the viewer must not require Adobe Reader to be installed.

到目前为止,我已经尝试过:

So far I have tried:

Gnostice PDFtoolkit:
显示JPX图像的问题

Gnostice PDFtoolkit: Display problems with JPX images

Radaee PDF查看器:
快速渲染,但崩溃。
没有来自支持的回复。

Radaee PDF Viewer: Fast rendering, but crashes. NO reply from support.

VeryPDF:
缓慢渲染,但可靠。
无打印

VeryPDF: Slow rendering, but reliable. No printing

WPViewPDF:
发布大多数PDF的布局

WPViewPDF: Messed up layout of most PDFs

GdViewer:
无连续多页显示

GdViewer: No continuous multi-page display

QuickPDF库:
无连续多页显示

QuickPDF library: No continuous multi-page display

eXPert PDF查看器:
通用PDF查看器不允许使用。
没有来自支持的回复。

eXPert PDF Viewer: Use not allowed for generic PDF viewer. NO reply from support.

EasyPDF SDK:
无连续多页显示

EasyPDF SDK: No continuous multi-page display

DynamicPDF:
没有免版税许可证

DynamicPDF: No royalty-free license

Foxit PDF SDK:
没有免版税许可证

Foxit PDF SDK: No royalty-free license

3-Heights PDF查看器:
没有免版税许可证

3-Heights PDF Viewer: No royalty-free license

任何其他选项?

Regards,
Brian

Regards, Brian

推荐答案

我成功实施了 SumatraPDF 作为Delphi应用程序中的嵌入式查看器。

I successfully implemented SumatraPDF as an embedded viewer in a Delphi application.

它将通过一个shell命令启动,但是添加-plugin参数使其成为您的窗体或任何容器的子代。然后,您可以发送按键或使用DDE进行试用。

It's to be launched through a shell command but adding the -plugin parameter makes it child of your form or any container. You can then send keystrokes or use DDE to pilot it.

请参阅 wiki 并寻找-plugin。

see the wiki and look for "-plugin".

在GPL条件下,苏门答腊是非常快速和可再分发的,它使用MuPDF作为渲染引擎,这是一个非常可行的解决方案。

Sumatra is very fast and redistributable under the GPL conditions, it uses MuPDF as rendering engine, which is a very viable solution.

如果您查看以下Total Commander插件的源代码,你会发现如何使用它。只需忽略将功能集成为TC插件的源代码部分。

if you look at the source code of the following Total Commander plugin, you will find how to use it. Just ignore the part of the source that integrates the functionality as a TC plugin

这篇关于需要PDF查看器控件 - 尝试了很多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆