ITEXT和ITEXTPDF有什么区别? [英] What is the Difference between ITEXT and ITEXTPDF?

查看:629
本文介绍了ITEXT和ITEXTPDF有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 iText 依赖项迁移到更高版本.在使用itextpdf-5.4.2.jaritext-1.3.1.jar之前.现在我已经迁移到itextpdf-5.5.10.jaritext-4.2.1.jar.

I am trying to migrate my iText dependency to a higher version. Before I used itextpdf-5.4.2.jar and itext-1.3.1.jar. Now I have migrated to itextpdf-5.5.10.jar and itext-4.2.1.jar.

此升级后,我的PDF不再打印条形码.条形码可以与早期版本完美配合.

After this upgrade, my PDF no longer prints barcodes. Barcodes worked perfectly with the earlier versions.

  1. 关于这个jar迁移,我有什么想念的吗?
  2. 这两个罐子有什么区别?

我的条形码示例代码:

Barcode39 code128 = new Barcode39();            
code128.setGenerateChecksum(true);            
code128.setCode(Id);  
code128.setBarHeight(50.0f);
code128.setX(30.0f);

推荐答案

我看到3个问题.我将只回答其中的两个,对于第三个问题,您需要在Stack Overflow上打开一个新主题.

I see 3 questions. I will answer only 2 of them, for the third question you need to open a new topic on Stack Overflow.

这些是我看到的您的问题:

These are your questions as I see them:

  1. itext和itextpdf有什么区别?
  2. 依赖升级中我缺少什么?
  3. 为什么我的条形码停止工作?

1. itext和itextpdf之间的区别

tl; dr:没有区别!

我还想向您介绍这些重复的问题:

I would also like to refer you to these duplicate questions:

  • Difference between com.lowagie.text and iText 2.1.7 JAR?
  • What is the difference between lowagie and iText?

更长的答案:

iText是Java的PDF库,最初由Bruno Lowagie开发.您仍然可以看到,在旧版本的iText(5.0.0之前的版本)中,这些软件包的名称为com.lowagie.*.几年前,Bruno Lowagie围绕其iText产品创建了一家公司,即 iText Software .当时域名itext.com不可用,所以他注册了 itextpdf.com .从版本5.0.0开始,程序包名称从com.lowagie.*重命名为com.itextpdf.*.通常的做法是,使用与您的域名相反的名称来命名软件包.

iText is a PDF library for Java which was originally developed by Bruno Lowagie. You can still see that in the old versions of iText (prior to 5.0.0), the packages are called com.lowagie.* Some years ago, Bruno Lowagie founded a company around his iText product, iText Software. At the time the domain name itext.com was not available, so he registered itextpdf.com. Starting from version 5.0.0, the package names were renamed from com.lowagie.* to com.itextpdf.*. It is a common practice to name your packages after the reverse of your domain name.

粗略的经验法则:

  • 版本1.x.x和2.x.x = com.lowagie.* =由Bruno Lowagie开发
  • 版本5.x.x和7.x.x = com.itextpdf.* =由iText软件开发
  • 版本4.x.x =由未知的人发布,与iText软件无关.不是正式版本.不要使用.
  • Versions 1.x.x and 2.x.x = com.lowagie.* = developed by Bruno Lowagie
  • Versions 5.x.x and 7.x.x = com.itextpdf.* = developed by iText Software
  • Versions 4.x.x = released by someone unknown, unrelated to iText Software. Not an official release. Do not use.
  • 仅使用5.5.10版.
  • 删除所有其他版本.
  • 检查代码中的import com.lowagie并替换为import com.itextpdf.
  • 修复所有编译错误.
  • Only use version 5.5.10.
  • Delete all other versions.
  • Check your code for import com.lowagie and replace with import com.itextpdf.
  • Fix any compilation errors.

我不知道.在Stack Overflow上打开一个新主题,并添加足够的代码,以便任何人都可以重现您的问题.请阅读如何创建最小,完整和可验证的示例

I don't know. Open a new topic on Stack Overflow and add enough code so anyone can reproduce your issue. Please read How to create a Minimal, Complete, and Verifiable example

这篇关于ITEXT和ITEXTPDF有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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