BarcodeSearchOptions class

BarcodeSearchOptions class

Represents search options for Barcode signatures.

Learn more:

The BarcodeSearchOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the BarcodeSearchOptions class with default values.
init Initializes a new instance of the BarcodeSearchOptions class with encode type value.
init Initializes a new instance of the BarcodeSearchOptions class with encode type and text values.

Properties

Property Description
encode_type The encode type used to filter barcode search; if not set, the search includes all supported barcode types.
match_type The barcode text match type used for searching. It is used only when the text property is set.
return_content The flag indicating whether to retrieve the barcode image content of a signature on a document page.
return_content_type The file type of the returned image content for a Barcode signature when the return_content property is enabled.
text The text of the barcode signature to search for and match.
all_pages The flag indicating whether to search on each document page. By default this value is True. (inherited from SearchOptions)
page_number The document page number for searching (optional). (inherited from SearchOptions)
pages_setup The options to specify pages for signature searching. (inherited from SearchOptions)
shape_position The flag indicating whether to return the shape position in the document layout. Available only for Word documents. (inherited from SearchOptions)
skip_external The flag to return only signatures marked as IsSignature. By default the value is False, which indicates that all signatures matching the specified criteria are returned. (inherited from SearchOptions)

Example

from groupdocs.signature import Signature
from groupdocs.signature.domain import BarcodeTypes, TextMatchType
from groupdocs.signature.options import BarcodeSearchOptions

with Signature("signed.pdf") as signature:
    options = BarcodeSearchOptions()
    options.all_pages = False
    options.page_number = 1
    options.encode_type = BarcodeTypes.CODE128
    options.text = "1234"
    options.match_type = TextMatchType.STARTS_WITH

    result = signature.search([options])
    print(f"Found {len(result.signatures)} matching barcode signature(s)")

Guides

Task guides that use BarcodeSearchOptions:

See Also