Dear developers,
For an application i have to generate multiple barcodes (due to the big amount
of data). My code is following:
List<string> barcodePackets = GetBarcodePackets(zippedBarcodeData);
if (barcodePackets.Count > 0)
{
float startXBarcodePosition =
cm2Pnts(float.Parse(ConfigurationManager.AppSettings[Constants.PDF_BARCODE_START_POSITION_X_KEY]));
float startYBarcodePosition =
cm2Pnts(float.Parse(ConfigurationManager.AppSettings[Constants.PDF_BARCODE_START_POSITION_Y_KEY]));
for (int i = 0; i < barcodePackets.Count; i++)
{
BarcodePDF417 currentBarcode = new BarcodePDF417();
currentBarcode.Options =
BarcodePDF417.PDF417_USE_MACRO;
currentBarcode.MacroFileId = "1";
currentBarcode.MacroSegmentCount = barcodePackets.Count;
currentBarcode.MacroSegmentId = i;currentBarcode.SetText(barcodePackets[i]);
Image img = currentBarcode.GetImage();
img.SetAbsolutePosition(startXBarcodePosition, startYBarcodePosition);
pdfContentByte.AddImage(img);
startYBarcodePosition += cm2Pnts(-
float.Parse(ConfigurationManager.AppSettings[Constants.PDF_BARCODE_BETWEEN_SPACES_KEY]));
//
}
}
The content of barcode will be first zipped To 64-BaseString and then splitted
in packets of 1000 characters (--> barcodePackets list). For my application,
that will generate two barcodes which are added to a pdf.
My question is: Is my implementation correct to generate multiple PDF417
barcodes? Because I have problem to read the generates two barcodes using
Motorola scanner. The scanner can not recognize that the two barcodes go
together.
Thanks for your help
Jule
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php