mupdf
Loading...
Searching...
No Matches
barcode.h
Go to the documentation of this file.
1// Copyright (C) 2004-2025 Artifex Software, Inc.
2//
3// This file is part of MuPDF.
4//
5// MuPDF is free software: you can redistribute it and/or modify it under the
6// terms of the GNU Affero General Public License as published by the Free
7// Software Foundation, either version 3 of the License, or (at your option)
8// any later version.
9//
10// MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
11// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13// details.
14//
15// You should have received a copy of the GNU Affero General Public License
16// along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
17//
18// Alternative licensing terms are available from the licensor.
19// For commercial licensing, see <https://www.artifex.com/> or contact
20// Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
21// CA 94129, USA, for further information.
22
23#ifndef MUPDF_FITZ_BARCODE_H
24#define MUPDF_FITZ_BARCODE_H
25
26#include "mupdf/fitz/system.h"
27#include "mupdf/fitz/context.h"
28#include "mupdf/fitz/geometry.h"
29#include "mupdf/fitz/image.h"
30#include "mupdf/fitz/document.h"
32
59
65
71
72
85fz_image *fz_new_barcode_image(fz_context *ctx, fz_barcode_type type, const char *value, int size, int ec_level, int quiet, int hrt);
86
99fz_pixmap *fz_new_barcode_pixmap(fz_context *ctx, fz_barcode_type type, const char *value, int size, int ec_level, int quiet, int hrt);
100
101
112char *fz_decode_barcode_from_page(fz_context *ctx, fz_barcode_type *type, fz_page *page, fz_rect subarea, int rotate);
113
125
137
138#endif /* MUPDF_FITZ_BARCODE_H */
fz_barcode_type
Definition barcode.h:34
@ FZ_BARCODE_MAXICODE
Definition barcode.h:47
@ FZ_BARCODE_CODE39
Definition barcode.h:38
@ FZ_BARCODE_PDF417
Definition barcode.h:48
@ FZ_BARCODE_DXFILMEDGE
Definition barcode.h:54
@ FZ_BARCODE_CODE93
Definition barcode.h:39
@ FZ_BARCODE_MICROQRCODE
Definition barcode.h:52
@ FZ_BARCODE_DATABAR
Definition barcode.h:41
@ FZ_BARCODE_NONE
Definition barcode.h:35
@ FZ_BARCODE_QRCODE
Definition barcode.h:49
@ FZ_BARCODE_RMQRCODE
Definition barcode.h:53
@ FZ_BARCODE_DATABARLIMITED
Definition barcode.h:55
@ FZ_BARCODE_UPCA
Definition barcode.h:50
@ FZ_BARCODE_ITF
Definition barcode.h:46
@ FZ_BARCODE_DATABAREXPANDED
Definition barcode.h:42
@ FZ_BARCODE_EAN8
Definition barcode.h:44
@ FZ_BARCODE_UPCE
Definition barcode.h:51
@ FZ_BARCODE__LIMIT
Definition barcode.h:57
@ FZ_BARCODE_AZTEC
Definition barcode.h:36
@ FZ_BARCODE_DATAMATRIX
Definition barcode.h:43
@ FZ_BARCODE_EAN13
Definition barcode.h:45
@ FZ_BARCODE_CODE128
Definition barcode.h:40
@ FZ_BARCODE_CODABAR
Definition barcode.h:37
char * fz_decode_barcode_from_page(fz_context *ctx, fz_barcode_type *type, fz_page *page, fz_rect subarea, int rotate)
char * fz_decode_barcode_from_display_list(fz_context *ctx, fz_barcode_type *type, fz_display_list *list, fz_rect subarea, int rotate)
fz_barcode_type fz_barcode_type_from_string(const char *str)
const char * fz_string_from_barcode_type(fz_barcode_type type)
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)
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)
char * fz_decode_barcode_from_pixmap(fz_context *ctx, fz_barcode_type *type, fz_pixmap *pix, int rotate)
struct fz_display_list fz_display_list
Definition display-list.h:47
Definition context.h:886
Definition image.h:351
Definition document.h:1044
Definition pixmap.h:432
Definition geometry.h:231