CIB pdf toolbox technical guide (EN)
10. Extract barcode information from PDF
10.1. Examples for barcode range
- “Code128”
All images are checked for barcode information, using the barcode type “Code128”. - “QR;CodeITF;Code39;DataMatrix”
All images are checked for barcode information, using the barcode type “QR”, “CodeITF”, “Code39” und “DataMatrix”. - “{1}”
All images in the first page of the document are checked for barcode information, using the barcode types DataMatrix and QR. - “{3;Code128}”
All images in the 3rd page of the document are checked for barcode information, using the barcode type Code128. - “{8;Code39,QR,DataMatrix}”
All images in page 8 of the document are checked for barcode information, using the barcode types Code39, QR and DataMatrix. - “{13;CodeITF,QR};{22;Code39Extended,DataMatrix}”
All images on pages 13 and 22 are checked for barcode information. For the images on page 13, this is done with the barcode types CodeITF and QR. For the images on page 22, using the barcode types Code39 and DataMatrix. - “{2;DataMatrix,Code39;20;30;40;50}”
All images are checked which are on the 2nd page and within the rectangular area (Left;Bottom;Right;Top)=(20;30;40;50). (This rectangular area starts horizontally 20 mm from the left page margin and ends 40 mm from the left page margin. It starts vertically 30 mm from the bottom of the page and ends 50 mm from the bottom of the page). The barcode types used are DataMatrix and Code39. - “{6;Code39Extended;1;2;3;4};{24;CodeITF,Code39,DataMatrix;100;0;200;300}”
It will be checked: All images on page 6 that are within the rectangular area (1;2;3;4) (between 1 mm and 3 mm from the left margin and between 2 mm and 4 mm from the bottom margin). The barcode type used is Code39Extended. The same applies to all images on page 24 that are in the rectangular area (100;0;200;30). The barcode types used for this are CodeITF, Code39 and DataMatrix. - “{15;DataMatrix,CodeITF;2;45;20;100};{11;QR};{16;Code39;5;10;15;20}”
It will be checked: All images on page 15 that are in the rectangular area (2;45;20;100). The barcode types used are DataMatrix and CodeITF. The same applies to all images on page 11. The barcode type used is QR. Also all images of page 16 which are in the rectangular area (5;10;15;20). The barcode type used for this is Code39.
General:
If different ranges in the enumeration match a certain image, the first matching range within the BarcodeRange enumeration is used and the barcode types from this range are selected.