CIB pdf toolbox technical guide (EN)

10. Extract barcode information from PDF

10.2. Examples for BarcodeInfo, OutputFormat=FormatBarcodeXml

BarcodeInfo

“<?xml version=”1.0” encoding=”UTF-8” standalone=”yes”?>
<barcodeimages>
  <barcodeimage>   <pagenumber>23</pagenumber>     <left>30</left>     <bottom>100</bottom>     <right>200</right>     <top>600</top>     <barcodeinfos>       <barcodeinfo type=”Code39”>Der Inhalt des Barcodeimages 1.</barcodeinfo>       <barcodeinfo type=”Code39Extended”>Der Inhalt des Barcodeimages 1.</barcodeinfo>     </barcodeinfos>   </barcodeimage>   <barcodeimage>    <pagenumber>35</pagenumber>     <left>0</left>     <bottom>10</bottom>     <right>400</right>     <top>140</top>     <barcodeinfos>       <barcodeinfo type=”QR”>Der Inhalt des Barcodeimages 2.</barcodeinfo>       <barcodeinfo type=”DataMatrix”>Der Inhalt des Barcodeimages 2.</barcodeinfo>     </barcodeinfos>   </barcodeimage> </barcodeimages>”

means:

barcode images were detected that were within the ranges specified by BarcodeRange. The first barcode image was on page 23 and covers the following rectangular area (the left edge is 30 mm from the left edge of the PDF page. The bottom margin is 100 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 600 mm from the bottom edge of the PDF page). Using the barcode types Code39 and Code39Extended barcode information was successfully extracted. In both cases this is "The content of the barcode image 1.".

The second barcode image was on page 35. The rectangular area is here (left, bottom, right, top) = (0;10;400;140). The barcode types QR and DataMatrix were successfully used here. The extracted barcode information for this barcode image is "The content of the barcode image 2." for both barcode types.