2
私のテキストが左側にあり、画像(QRCode)が右側(CSSの意味で)に浮かべられているフォーマットされたPdfPCellを作成しようとしています。私の現在のコードは画像を右に移動しますが、テキストは画像と同じ行ではない次の行にあります。セル内の画像を浮動させる方法 - iTextPDF
アイデア?
PdfPCell cell = new PdfPCell();
Paragraph p = new Paragraph();
p.add(new Paragraph("Ciao Baby",RESTNAME));
BarcodeQRCode qrcode = new BarcodeQRCode("http://www.tvfoodmaps.com", 72, 72, null);
Image img = qrcode.getImage();
img.scaleToFit(32,32);
img.setAlignment(Element.ALIGN_RIGHT);
cell.addElement(img);
cell.addElement(p);