CIB pdf toolbox technical guide (EN)

10. Extract barcode information from PDF

10.3. Examples for BarcodeInfo, OutputFormat=FormatBarcodeCsv

  1. BarcodeInfo =2;10;30;200;400;QR;”This is barcode image 1.”;;\r\n3;50;60;150;160;Code39;”This is barcode image 2.”;Code39Extended;”This is barcode image 2.”\r\n

    1.)    means:
    two
    barcode images were detected that were within the ranges specified by BarcodeRange. The first barcode image was on page 2 and covers the following rectangular area (The left edge is 10 mm from the left edge of the Pdf page. The bottom margin is 30 mm from the bottom edge of the pdf page. The right margin is 200 mm from the left margin of the pdf page. The top margin is 400 mm from the bottom edge of the pdf page) The barcode type QR has been used successfully. The result was 'This is barcode image 1.'.


    The second barcode image was on page 3, the rectangular area is here (left, bottom, right, top) = (50;60;150;160). Using the barcode types Code39 and Code39Extended the barcode information was successfully extracted. In both cases this is 'This is barcode image 2.'.

    In the first barcode image, ';;' was inserted at the end because the 2nd barcode image contained 2 barcode information and this CSV line therefore had 2 additional columns.


  2. BarcodeInfo=15;10;30;200;400;CodeITF;”””This”” is “”  “” the barcode image;””Hello”””;;\r\n

    A barcode image was detected that was within the range specified by BarcodeRange. It was on page 15. The rectangular area for this image is (left, bottom, right, top) = (10;30;200;400). The barcode type CodeITF was successfully applied. The result was '"This" is " " the barcode image; "Hello"'. (The double quotation marks in the barcode content must be replaced by single quotation marks.)