Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Barcode - GetBarcode

    Posted Thu December 19, 2024 09:04 AM

    My logic is to treat Barcode page as coverpage set to delete and next page as Main Page. It works but few cases there is bar code without a coverpage and it is treating it as cover page insted of Main / Trailing page.

    Is there a way to limit the GetBarcode to a location on a page instead of whole page. The cover page location is fixed. What is the property Position ? can that be used ?



    ------------------------------
    Prakash Goswami
    ------------------------------


  • 2.  RE: Barcode - GetBarcode

    Posted Fri December 20, 2024 05:49 AM
    Edited by Shaun McDowall Fri December 20, 2024 05:52 AM

    Hi Prakash,

    Presumably you are running GetBarcode on pages of type Other.

    To limit GetBarcode to a specific location on a page, you need to use a field and zone, then run it against the field instead of the entire page. This requires a fingerprint, which isn't practical for "Other" pages.

    One potential solution is to continue running GetBarcode on the entire page but add logic to use the coordinates or value of the recognised barcode to determine if the page is a Cover Page.

    When GetBarcode runs and locates barcodes, several variables are created in the DCO, including the barcode's coordinates (Position variable) and its value (GetBarCode variable):

    If you know the barcode's position that identifies the cover page, or better yet, its value, you can use this information to make the decision.
    I recommend using the value if possible, as the position can vary due to scanner differences, image resolution, etc. For example, if your cover sheets have a barcode with a known value like "COVERSHEET," this would be detected and stored in the GetBarCode variable. In my screenshot, this variable contains a value starting with 9780.
    I hope this helps!
    Shaun



    ------------------------------
    Shaun McDowall
    ------------------------------