Works for me and the generated stream is correct. Your
error comes from somewhere else.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maribel Marco
Sent: Thursday, January 13, 2005 10:31 AM
To: [email protected]
Subject: [iText-questions] Problem adding Barcode to PDFContentByteHi!I am having the following problem: I generate a Barcode128 and I add the corresponding Image to a contentByte. Apparently it works well but when I open de generated pdf document I get the following message "illegal operation 'q' into a text object"This is my code:Barcode128 cod128=new Barcode128();
cod128.setCode("mycode");
Image image128=cod128.createImageWithBarcode(cb,null,null);
Rectangle size=cod128.getBarcodeSize();
cb.addImage(image128,size.width(),0,0,size.height(),51,260);Can you please give me any ideas?ThanksMaribel
