enum fz_barcode_type
{
FZ_BARCODE_NONE = 0,
FZ_BARCODE_AZTEC,
FZ_BARCODE_CODABAR,
FZ_BARCODE_CODE39,
FZ_BARCODE_CODE93,
FZ_BARCODE_CODE128,
FZ_BARCODE_DATABAR,
FZ_BARCODE_DATABAREXPANDED,
FZ_BARCODE_DATAMATRIX,
FZ_BARCODE_EAN8,
FZ_BARCODE_EAN13,
FZ_BARCODE_ITF,
FZ_BARCODE_MAXICODE,
FZ_BARCODE_PDF417,
FZ_BARCODE_QRCODE,
FZ_BARCODE_UPCA,
FZ_BARCODE_UPCE,
FZ_BARCODE_MICROQRCODE,
FZ_BARCODE_RMQRCODE,
FZ_BARCODE_DXFILMEDGE,
FZ_BARCODE_DATABARLIMITED,
FZ_BARCODE__LIMIT
}
const char *
fz_string_from_barcode_type (
fz_barcode_type type
)
Return barcode string matching one of the above barcode types. All lowercase, e.g. “none”, “aztec” etc.
fz_barcode_type
fz_barcode_type_from_string (
const char *str
)
Helper function to search the above list (case insensitively) for an exact match. Returns FZ_BARCODE_NONE if no match found.
fz_image *
fz_new_barcode_image (
fz_context *ctx,
fz_barcode_type type,
const char *value,
int size,
int ec_level,
int quiet,
int hrt
)
Create an fz_image from a barcode definition.
returns a created fz_image.
fz_pixmap *
fz_new_barcode_pixmap (
fz_context *ctx,
fz_barcode_type type,
const char *value,
int size,
int ec_level,
int quiet,
int hrt
)
Create an fz_pixmap from a barcode definition.
returns a created fz_pixmap.
char *
fz_decode_barcode_from_page (
fz_context *ctx,
fz_barcode_type *type,
fz_page *page,
fz_rect subarea,
int rotate
)
Decode a barcode from a page.
returns the decoded value.
char *
fz_decode_barcode_from_pixmap (
fz_context *ctx,
fz_barcode_type *type,
fz_pixmap *pix,
int rotate
)
Decode a barcode from a pixmap.
returns the decoded value as an fz_malloced block. Should be fz_free’d by the caller.
char *
fz_decode_barcode_from_display_list (
fz_context *ctx,
fz_barcode_type *type,
fz_display_list *list,
fz_rect subarea,
int rotate
)
Decode a barcode from a display list.
returns the decoded value.