summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/pdfinput/enums.h
blob: b68f038b0671f1e061f41372cbc23fa451dd4e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: GPL-2.0-or-later
/** @file
 * PDF Parsing utility functions and classes.
 *//*
 * 
 * Copyright (C) 2022 Authors
 *
 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
 */

#ifndef PDF_ENUMS_H
#define PDF_ENUMS_H

#include <map>

enum class FontStrategy : unsigned char
{
    RENDER_MISSING,
    RENDER_ALL,
    SUBSTITUTE_MISSING,
    KEEP_MISSING,
    DELETE_MISSING,
    DELETE_ALL
};
enum class FontFallback : unsigned char
{
    DELETE_TEXT = 0,
    AS_SHAPES,
    AS_TEXT,
    AS_SUB,
};
typedef std::map<int, FontFallback> FontStrategies;

#endif /* PDF_ENUMS_H */