简体   繁体   English

在Delphi 2010中创建PDF的好库是什么?

[英]What is a good library for creating PDFs in Delphi 2010?

What is a good library for creating PDFs in Delphi 2010? 在Delphi 2010中创建PDF的好库是什么?

Pre Unicode I used PowerPDF, which though obsolete, was flexible enough to do what I wanted to do (very customized non-db/table based reports) Pre Unicode我使用的PowerPDF虽然已经过时,但它足够灵活,可以做我想做的事情(非常自定义的非db / table报告)

I currently have PowerPDF compiling in Delphi 2010, but not yet working, and I'd rather not port and debug if there are any good Open Source PDF libraries already available for Delphi 2010... 我目前在Delphi 2010中进行了PowerPDF编译,但还没有工作,如果Delphi 2010已有可用的开源PDF库,我宁愿不进行端口和调试......

I have no info on another library, but thought I would add some information regarding PowerPDF and Unicode support for it: 我没有关于另一个库的信息,但我想我会添加一些有关PowerPDF和Unicode支持的信息:

PowerPDF is essentially abandoned. PowerPDF基本上被放弃了。 Successor is the libharu library, which has import units for Delphi (pre 2009 version) as well, with the caveat that it needs a DLL to work. 后继者是libharu库,它也有Delphi的导入单元(2009年之前的版本),需要注意的是它需要DLL才能工作。

The real problem with it is that it doesn't support Unicode. 它的真正问题是它不支持Unicode。 This is nothing that can be fixed in a simple way by adding type casts and changing string types - the whole library works with single byte char arrays, so the only Unicode encoding that would be "simple" to add is UTF-8, and there is AFAIK no support for it yet. 这没有什么可以通过添加类型转换和更改字符串类型以简单的方式修复 - 整个库使用单字节字符数组,因此唯一可以“简单”添加的Unicode编码是UTF-8,并且是AFAIK还没有支持它。 So unless you are prepared to invest significant work into updating PowerPDF I wouldn't even start on it. 因此,除非您准备投入大量资金来更新PowerPDF,否则我甚至都不会开始。

There's another problem with Unicode in PDFs - the 14 core fonts simply don't contain all the necessary glyphs. PDF中的Unicode存在另一个问题 - 14种核心字体根本不包含所有必需的字形。 Proper support can only be achieved with embedded fonts or TrueType fonts that need to be available on the target systems or need to be embedded as well. 只有使用嵌入式字体或TrueType字体才能获得适当的支持,这些字体需要在目标系统上可用或者也需要嵌入。 Note that there are limitations on TTF embedding, each font will specify whether it allows to be embedded or not. 请注意,TTF嵌入存在限制,每种字体都将指定是否允许嵌入。 Whatever library you choose, you should be aware of this as well. 无论你选择哪种图书馆,你都应该意识到这一点。

PowerPDF is a VCL to create PDF docment visually. PowerPDF是一个可视化创建PDF文档的VCL。 Like QuickReport, you can design PDF document easily on Delphi IDE. 与QuickReport一样,您可以在Delphi IDE上轻松设计PDF文档。 PowerPDF requires Delphi 2007 or later. PowerPDF需要Delphi 2007或更高版本。

这似乎也是一个很好的图书馆: Synopse-PDF-Engine

You could try TRolePDF by Roledata . 您可以尝试Roledata的TRolePDF It is free, but limited. 它是免费的,但有限。

I don't know of any Open Source or other free PDF libraries for Delphi. 我不知道Delphi的任何开源或其他免费PDF库。 It seems to be a domain for commercial software, since it is a bit of a niche. 它似乎是商业软件的一个领域,因为它有点利基。 If there is a good one, I'd like to know as well, since in the future I'm planning to implement PDF export and I'd also like a good open source tool for that. 如果有一个好的,我也想知道,因为将来我计划实现PDF导出,我也想要一个很好的开源工具。 It does seem hardly worthwhile to spend a few hundred dollars for something that is one tiny part of my program. 花几百美元买一些只是我程序中很小一部分的东西似乎不值得。

However, given all that, if you want a full-fledged PDF library that is maintained and supported and has a Delphi 2009 version (and it's important enough to you to spend a few hundred dollars), then you can try the tools at llionsoft . 但是,考虑到所有这一切,如果你想要一个完整的PDF库,这个PDF库得到了维护和支持,并且有一个Delphi 2009版本(并且它足以让你花费几百美元),那么你可以在llionsoft上试用这些工具

这似乎也是一个很好的图书馆: 快速PDF

I have been using wPDF from WpCubed for years now. 我多年来一直在使用WpCubed的wPDF。 It is already available for Delphi-2010. 它已经可用于Delphi-2010。

http://www.wpcubed.com/products/wpdf/index.htm http://www.wpcubed.com/products/wpdf/index.htm

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

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