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
.
After this upgrade, my PDF no longer prints barcodes. Barcodes worked perfectly with the earlier versions.
My BarCode sample code:
Barcode39 code128 = new Barcode39();
code128.setGenerateChecksum(true);
code128.setCode(Id);
code128.setBarHeight(50.0f);
code128.setX(30.0f);
Actually, there is no difference: in iText 2.1. 0. Create a PDF, go to properties and see "iText 2.1. 0 by lowagie.com" )) what seems to have happened in the evolution of the lib is that "lowagie" in the java package name, was replaced with "itextpdf".
iText is a library for creating and manipulating PDF files in Java and.NET.
By following the rules of the Affero General Public License (AGPL), you may use iText at no cost.
iText 7 Core is a straightforward, performant and extensible library that is ready to handle the challenges of today's digital document workflows. Embed iText 7 Core's code libraries in applications to create the type of PDF files you want.
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:
tl;dr: there is no difference!
I would also like to refer you to these duplicate questions:
Longer answer:
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.
As a crude rule of thumb:
com.lowagie.*
= developed by Bruno Lowagiecom.itextpdf.*
= developed by iText Softwareimport com.lowagie
and replace with import com.itextpdf
.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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With