Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

iTextPdf 5.x class BarcodeQRCode missing in OpenPdf report?

Aperta
#1,160 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by checking OpenPDF 2.0.2 for an equivalent to iText 5's BarcodeQRCode and review the four comments for any guidance or resolution. The issue is answered when the supported way to generate a QR code in OpenPDF is identified, or the missing functionality is confirmed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Hi! I am CTO Abid Maqbool from Maqbool Solutions (SMC-Pvt) Ltd. an IT Company & Computer Software Houser, Pakistan!

I was using iText Pdf 5.x in my projects, as it is very old one and for the case of 7.x I can't use due to license issue.

So I am trying to switch to foked version Open Pdf 2.x, which is still active and latest one!

I have 100+ reports in old itextpdf 5, after switching to OpenPdf I foud that not major chaned, just imports changes!

  1. com.itextpdf.text.* -> com.lowagie.text.*
  2. com.itextpdf.text.pdf.* -> com.lowagie.text.pdf.*
  3. com.itextpdf.text.BaseColor -> java.awt.Color

The problem is I am not finind any related class in OpdfPdf for BarcodeQRCode, how to fix the issue?

com.itextpdf.text.pdf.BarcodeQRCode barcodeQRCode = new com.itextpdf.text.pdf.BarcodeQRCode(fbrInvoiceNo, 100, 100, null);
Image imgQRCode = barcodeQRCode.getImage();

PdfPCell pCellQrCode = new PdfPCell(imgQRCode);
pCellQrCode.setHorizontalAlignment(Element.ALIGN_CENTER);
pCellQrCode.setVerticalAlignment(Element.ALIGN_MIDDLE);
pCellQrCode.setRowspan(2);
pdfTableFBR.addCell(pCellQrCode);

Question: Is latest version of OpenPDF 2.0.2 is better then iTextPdf version 5.5.13.3 in all cases!

Note; iText 7.x is not an option, as some of it's features are Paid, e.g. for Arabic / Urdu language support!

Lingua principale
Java
Stelle
4.4k
Fork
714
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LibrePDF/OpenPDF

Tutte le issue di LibrePDF/OpenPDF

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.