Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

32.2 KB
Raw Blame
/*
 * pdf_tables.c — static tables of the PDF text-layer extractor (generated).
 *
 * Glyph names (the Adobe Glyph List subset every standard Latin encoding
 * uses, common TeX and symbol names, and the accented Latin letters),
 * the base encodings of ISO 32000-1 Annex D as code -> UTF-8, and
 * approximate standard-14 widths. Generated once from the field-tested
 * prototype's tables; maintained data from here on (edit by hand, keep the
 * sources). Sources and notices (THIRD_PARTY.md): the Adobe Glyph List,
 * Copyright 2002-2019 Adobe, BSD-3-Clause; the printable-ASCII advance
 * widths of Helvetica and Times-Roman from Adobe's core-14 font metrics,
 * Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated;
 * ISO 32000-1 Annex D for the encodings.
 */
#include "pdf_internal.h"

#include <stddef.h>

const pdf_glyph_t PDF_GLYPHS[] = {
    {"A", "A"},
    {"AE", "\303\206"},
    {"Aacute", "\303\201"},
    {"Abreve", "\304\202"},
    {"Acircumflex", "\303\202"},
    {"Adieresis", "\303\204"},
    {"Agrave", "\303\200"},
    {"Alpha", "\316\221"},
    {"Amacron", "\304\200"},
    {"Aogonek", "\304\204"},
    {"Aring", "\303\205"},
    {"Atilde", "\303\203"},
    {"B", "B"},
    {"Beta", "\316\222"},
    {"C", "C"},
    {"Cacute", "\304\206"},
    {"Ccaron", "\304\214"},
    {"Ccedilla", "\303\207"},
    {"Ccircumflex", "\304\210"},
    {"Cdotaccent", "\304\212"},
    {"Chi", "\316\247"},
    {"D", "D"},
    {"Dcaron", "\304\216"},
    {"Dcroat", "\304\220"},
    {"Delta", "\316\224"},
    {"Dslash", "\304\220"},
    {"E", "E"},
    {"Eacute", "\303\211"},
    {"Ebreve", "\304\224"},
    {"Ecaron", "\304\232"},
    {"Ecircumflex", "\303\212"},
    {"Edieresis", "\303\213"},
    {"Edotaccent", "\304\226"},
    {"Egrave", "\303\210"},
    {"Emacron", "\304\222"},
    {"Eng", "\305\212"},
    {"Eogonek", "\304\230"},
    {"Epsilon", "\316\225"},
    {"Eta", "\316\227"},
    {"Eth", "\303\220"},
    {"Euro", "\342\202\254"},
    {"F", "F"},
    {"G", "G"},
    {"Gamma", "\316\223"},
    {"Gbreve", "\304\236"},
    {"Gcedilla", "\304\242"},
    {"Gcircumflex", "\304\234"},
    {"Gdotaccent", "\304\240"},
    {"H", "H"},
    {"Hbar", "\304\246"},
    {"Hcircumflex", "\304\244"},
    {"Hslash", "\304\246"},
    {"I", "I"},
    {"IJ", "\304\262"},
    {"Iacute", "\303\215"},
    {"Ibreve", "\304\254"},
    {"Icircumflex", "\303\216"},
    {"Idieresis", "\303\217"},
    {"Idotaccent", "\304\260"},
    {"Ifraktur", "\342\204\221"},
    {"Igrave", "\303\214"},
    {"Imacron", "\304\252"},
    {"Iogonek", "\304\256"},
    {"Iota", "\316\231"},
    {"Itilde", "\304\250"},
    {"J", "J"},
    {"Jcircumflex", "\304\264"},
    {"K", "K"},
    {"Kappa", "\316\232"},
    {"Kcedilla", "\304\266"},
    {"L", "L"},
    {"Lacute", "\304\271"},
    {"Lambda", "\316\233"},
    {"Lcaron", "\304\275"},
    {"Lcedilla", "\304\273"},
    {"Ldot", "\304\277"},
    {"Lslash", "\305\201"},
    {"M", "M"},
    {"Mu", "\316\234"},
    {"N", "N"},
    {"Nacute", "\305\203"},
    {"Ncaron", "\305\207"},
    {"Ncedilla", "\305\205"},
    {"Ntilde", "\303\221"},
    {"Nu", "\316\235"},
    {"O", "O"},
    {"OE", "\305\222"},
    {"Oacute", "\303\223"},
    {"Obreve", "\305\216"},
    {"Ocircumflex", "\303\224"},
    {"Odieresis", "\303\226"},
    {"Ograve", "\303\222"},
    {"Ohungarumlaut", "\305\220"},
    {"Omacron", "\305\214"},
    {"Omega", "\316\251"},
    {"Omicron", "\316\237"},
    {"Oslash", "\303\230"},
    {"Otilde", "\303\225"},
    {"P", "P"},
    {"Phi", "\316\246"},
    {"Pi", "\316\240"},
    {"Psi", "\316\250"},
    {"Q", "Q"},
    {"R", "R"},
    {"Racute", "\305\224"},
    {"Rcaron", "\305\230"},
    {"Rcedilla", "\305\226"},
    {"Rfraktur", "\342\204\234"},
    {"Rho", "\316\241"},
    {"S", "S"},
    {"Sacute", "\305\232"},
    {"Scaron", "\305\240"},
    {"Scedilla", "\305\236"},
    {"Scircumflex", "\305\234"},
    {"Scommaaccent", "\310\230"},
    {"Sigma", "\316\243"},
    {"T", "T"},
    {"Tau", "\316\244"},
    {"Tbar", "\305\246"},
    {"Tcaron", "\305\244"},
    {"Tcedilla", "\305\242"},
    {"Tcommaaccent", "\310\232"},
    {"Theta", "\316\230"},
    {"Thorn", "\303\236"},
    {"Tslash", "\305\246"},
    {"U", "U"},
    {"Uacute", "\303\232"},
    {"Ubreve", "\305\254"},
    {"Ucircumflex", "\303\233"},
    {"Udieresis", "\303\234"},
    {"Ugrave", "\303\231"},
    {"Uhungarumlaut", "\305\260"},
    {"Umacron", "\305\252"},
    {"Uogonek", "\305\262"},
    {"Upsilon", "\316\245"},
    {"Upsilon1", "\317\222"},
    {"Uring", "\305\256"},
    {"Utilde", "\305\250"},
    {"V", "V"},
    {"W", "W"},
    {"Wcircumflex", "\305\264"},
    {"X", "X"},
    {"Xi", "\316\236"},
    {"Y", "Y"},
    {"Yacute", "\303\235"},
    {"Ycircumflex", "\305\266"},
    {"Ydieresis", "\305\270"},
    {"Z", "Z"},
    {"Zacute", "\305\271"},
    {"Zcaron", "\305\275"},
    {"Zdotaccent", "\305\273"},
    {"Zeta", "\316\226"},
    {"a", "a"},
    {"aacute", "\303\241"},
    {"abreve", "\304\203"},
    {"acircumflex", "\303\242"},
    {"acute", "\302\264"},
    {"adieresis", "\303\244"},
    {"ae", "\303\246"},
    {"afii00208", "\342\200\225"},
    {"afii10017", "\320\220"},
    {"afii61289", "\342\204\223"},
    {"agrave", "\303\240"},
    {"aleph", "\342\204\265"},
    {"alpha", "\316\261"},
    {"amacron", "\304\201"},
    {"ampersand", "&"},
    {"angbracketleft", "\342\237\250"},
    {"angbracketright", "\342\237\251"},
    {"angle", "\342\210\240"},
    {"aogonek", "\304\205"},
    {"approxequal", "\342\211\210"},
    {"aring", "\303\245"},
    {"arrowboth", "\342\206\224"},
    {"arrowdblboth", "\342\207\224"},
    {"arrowdblleft", "\342\207\220"},
    {"arrowdblright", "\342\207\222"},
    {"arrowdown", "\342\206\223"},
    {"arrowleft", "\342\206\220"},
    {"arrowright", "\342\206\222"},
    {"arrowup", "\342\206\221"},
    {"asciicircum", "^"},
    {"asciitilde", "~"},
    {"asterisk", "*"},
    {"asteriskmath", "\342\210\227"},
    {"at", "@"},
    {"atilde", "\303\243"},
    {"b", "b"},
    {"backslash", "\134"},
    {"bar", "|"},
    {"beta", "\316\262"},
    {"braceleft", "{"},
    {"braceright", "}"},
    {"bracketleft", "["},
    {"bracketright", "]"},
    {"breve", "\313\230"},
    {"brokenbar", "\302\246"},
    {"bullet", "\342\200\242"},
    {"bulletmath", "\342\210\231"},
    {"c", "c"},
    {"cacute", "\304\207"},
    {"caron", "\313\207"},
    {"ccaron", "\304\215"},
    {"ccedilla", "\303\247"},
    {"ccircumflex", "\304\211"},
    {"cdotaccent", "\304\213"},
    {"cedilla", "\302\270"},
    {"cent", "\302\242"},
    {"checkmark", "\342\234\223"},
    {"chi", "\317\207"},
    {"circlemultiply", "\342\212\227"},
    {"circleplus", "\342\212\225"},
    {"circumflex", "\313\206"},
    {"club", "\342\231\243"},
    {"colon", ":"},
    {"comma", ","},
    {"commaaccent", "\314\246"},
    {"congruent", "\342\211\205"},
    {"copyright", "\302\251"},
    {"currency", "\302\244"},
    {"d", "d"},
    {"dagger", "\342\200\240"},
    {"daggerdbl", "\342\200\241"},
    {"dcaron", "\304\217"},
    {"dcroat", "\304\221"},
    {"degree", "\302\260"},
    {"delta", "\316\264"},
    {"diamond", "\342\231\246"},
    {"dieresis", "\302\250"},
    {"divide", "\303\267"},
    {"dollar", "$"},
    {"dotaccent", "\313\231"},
    {"dotlessi", "\304\261"},
    {"dotlessi.sc", "\304\261"},
    {"dotlessj", "\310\267"},
    {"dotmath", "\342\213\205"},
    {"dslash", "\304\221"},
    {"e", "e"},
    {"eacute", "\303\251"},
    {"ebreve", "\304\225"},
    {"ecaron", "\304\233"},
    {"ecircumflex", "\303\252"},
    {"edieresis", "\303\253"},
    {"edotaccent", "\304\227"},
    {"egrave", "\303\250"},
    {"eight", "8"},
    {"element", "\342\210\210"},
    {"ellipsis", "\342\200\246"},
    {"emacron", "\304\223"},
    {"emdash", "\342\200\224"},
    {"emptyset", "\342\210\205"},
    {"endash", "\342\200\223"},
    {"eng", "\305\213"},
    {"eogonek", "\304\231"},
    {"epsilon", "\316\265"},
    {"equal", "="},
    {"equivalence", "\342\211\241"},
    {"eta", "\316\267"},
    {"eth", "\303\260"},
    {"exclam", "!"},
    {"exclamdbl", "\342\200\274"},
    {"exclamdown", "\302\241"},
    {"existential", "\342\210\203"},
    {"f", "f"},
    {"ff", "ff"},
    {"ffi", "ffi"},
    {"ffl", "ffl"},
    {"fi", "fi"},
    {"figuredash", "\342\200\222"},
    {"five", "5"},
    {"fl", "fl"},
    {"florin", "\306\222"},
    {"four", "4"},
    {"fraction", "\342\201\204"},
    {"g", "g"},
    {"gamma", "\316\263"},
    {"gbreve", "\304\237"},
    {"gcedilla", "\304\243"},
    {"gcircumflex", "\304\235"},
    {"gdotaccent", "\304\241"},
    {"germandbls", "\303\237"},
    {"gradient", "\342\210\207"},
    {"grave", "`"},
    {"greater", ">"},
    {"greaterequal", "\342\211\245"},
    {"guillemotleft", "\302\253"},
    {"guillemotright", "\302\273"},
    {"guilsinglleft", "\342\200\271"},
    {"guilsinglright", "\342\200\272"},
    {"h", "h"},
    {"hbar", "\304\247"},
    {"hcircumflex", "\304\245"},
    {"heart", "\342\231\245"},
    {"horizontalbar", "\342\200\225"},
    {"hslash", "\304\247"},
    {"hungarumlaut", "\313\235"},
    {"hyphen", "-"},
    {"hyphen.cap", "-"},
    {"i", "i"},
    {"iacute", "\303\255"},
    {"ibreve", "\304\255"},
    {"icircumflex", "\303\256"},
    {"idieresis", "\303\257"},
    {"igrave", "\303\254"},
    {"ij", "\304\263"},
    {"imacron", "\304\253"},
    {"infinity", "\342\210\236"},
    {"integral", "\342\210\253"},
    {"intersection", "\342\210\251"},
    {"iogonek", "\304\257"},
    {"iota", "\316\271"},
    {"itilde", "\304\251"},
    {"j", "j"},
    {"jcircumflex", "\304\265"},
    {"k", "k"},
    {"kappa", "\316\272"},
    {"kcedilla", "\304\267"},
    {"kgreenlandic", "\304\270"},
    {"l", "l"},
    {"lacute", "\304\272"},
    {"lambda", "\316\273"},
    {"lcaron", "\304\276"},
    {"lcedilla", "\304\274"},
    {"ldot", "\305\200"},
    {"less", "<"},
    {"lessequal", "\342\211\244"},
    {"logicaland", "\342\210\247"},
    {"logicalnot", "\302\254"},
    {"logicalor", "\342\210\250"},
    {"longs", "\305\277"},
    {"lozenge", "\342\227\212"},
    {"lslash", "\305\202"},
    {"m", "m"},
    {"macron", "\302\257"},
    {"minus", "\342\210\222"},
    {"minute", "\342\200\262"},
    {"mu", "\302\265"},
    {"mu1", "\302\265"},
    {"multiply", "\303\227"},
    {"n", "n"},
    {"nacute", "\305\204"},
    {"napostrophe", "\305\211"},
    {"nbspace", "\302\240"},
    {"ncaron", "\305\210"},
    {"ncedilla", "\305\206"},
    {"nine", "9"},
    {"nobreakspace", "\302\240"},
    {"notelement", "\342\210\211"},
    {"notequal", "\342\211\240"},
    {"ntilde", "\303\261"},
    {"nu", "\316\275"},
    {"numbersign", "#"},
    {"o", "o"},
    {"oacute", "\303\263"},
    {"obreve", "\305\217"},
    {"ocircumflex", "\303\264"},
    {"odieresis", "\303\266"},
    {"oe", "\305\223"},
    {"ogonek", "\313\233"},
    {"ograve", "\303\262"},
    {"ohungarumlaut", "\305\221"},
    {"omacron", "\305\215"},
    {"omega", "\317\211"},
    {"omega1", "\317\226"},
    {"omicron", "\316\277"},
    {"one", "1"},
    {"onedotenleader", "\342\200\244"},
    {"onehalf", "\302\275"},
    {"onequarter", "\302\274"},
    {"onesuperior", "\302\271"},
    {"openbullet", "\342\227\246"},
    {"ordfeminine", "\302\252"},
    {"ordmasculine", "\302\272"},
    {"oslash", "\303\270"},
    {"otilde", "\303\265"},
    {"p", "p"},
    {"paragraph", "\302\266"},
    {"parenleft", "("},
    {"parenright", ")"},
    {"partialdiff", "\342\210\202"},
    {"percent", "%"},
    {"period", "."},
    {"periodcentered", "\302\267"},
    {"perpendicular", "\342\212\245"},
    {"perthousand", "\342\200\260"},
    {"phi", "\317\206"},
    {"phi1", "\317\225"},
    {"pi", "\317\200"},
    {"plus", "+"},
    {"plusminus", "\302\261"},
    {"prime", "\342\200\262"},
    {"product", "\342\210\217"},
    {"propersubset", "\342\212\202"},
    {"propersuperset", "\342\212\203"},
    {"proportional", "\342\210\235"},
    {"psi", "\317\210"},
    {"q", "q"},
    {"question", "\077"},
    {"questiondown", "\302\277"},
    {"quotedbl", "\042"},
    {"quotedblbase", "\342\200\236"},
    {"quotedblbase.cap", "\342\200\236"},
    {"quotedblleft", "\342\200\234"},
    {"quotedblright", "\342\200\235"},
    {"quoteleft", "\342\200\230"},
    {"quoteright", "\342\200\231"},
    {"quotesinglbase", "\342\200\232"},
    {"quotesingle", "'"},
    {"r", "r"},
    {"racute", "\305\225"},
    {"radical", "\342\210\232"},
    {"rcaron", "\305\231"},
    {"rcedilla", "\305\227"},
    {"reflexsubset", "\342\212\206"},
    {"reflexsuperset", "\342\212\207"},
    {"registered", "\302\256"},
    {"rho", "\317\201"},
    {"ring", "\313\232"},
    {"s", "s"},
    {"sacute", "\305\233"},
    {"scaron", "\305\241"},
    {"scedilla", "\305\237"},
    {"scircumflex", "\305\235"},
    {"scommaaccent", "\310\231"},
    {"second", "\342\200\263"},
    {"section", "\302\247"},
    {"semicolon", ";"},
    {"seven", "7"},
    {"sfthyphen", "\302\255"},
    {"sigma", "\317\203"},
    {"sigma1", "\317\202"},
    {"similar", "\342\210\274"},
    {"six", "6"},
    {"slash", "/"},
    {"space", " "},
    {"space.alt", " "},
    {"spade", "\342\231\240"},
    {"st", "st"},
    {"sterling", "\302\243"},
    {"summation", "\342\210\221"},
    {"suppress", ""},
    {"t", "t"},
    {"tau", "\317\204"},
    {"tbar", "\305\247"},
    {"tcaron", "\305\245"},
    {"tcedilla", "\305\243"},
    {"tcommaaccent", "\310\233"},
    {"therefore", "\342\210\264"},
    {"theta", "\316\270"},
    {"theta1", "\317\221"},
    {"thorn", "\303\276"},
    {"three", "3"},
    {"threequarters", "\302\276"},
    {"threesuperior", "\302\263"},
    {"tilde", "\313\234"},
    {"trademark", "\342\204\242"},
    {"tslash", "\305\247"},
    {"two", "2"},
    {"twodotenleader", "\342\200\245"},
    {"twosuperior", "\302\262"},
    {"u", "u"},
    {"uacute", "\303\272"},
    {"ubreve", "\305\255"},
    {"ucircumflex", "\303\273"},
    {"udieresis", "\303\274"},
    {"ugrave", "\303\271"},
    {"uhungarumlaut", "\305\261"},
    {"umacron", "\305\253"},
    {"underscore", "_"},
    {"underscoredbl", "\342\200\227"},
    {"uni00A0", "\302\240"},
    {"union", "\342\210\252"},
    {"universal", "\342\210\200"},
    {"uogonek", "\305\263"},
    {"upsilon", "\317\205"},
    {"uring", "\305\257"},
    {"utilde", "\305\251"},
    {"v", "v"},
    {"visiblespace", "\342\220\243"},
    {"w", "w"},
    {"wcircumflex", "\305\265"},
    {"weierstrass", "\342\204\230"},
    {"x", "x"},
    {"xi", "\316\276"},
    {"y", "y"},
    {"yacute", "\303\275"},
    {"ycircumflex", "\305\267"},
    {"ydieresis", "\303\277"},
    {"yen", "\302\245"},
    {"z", "z"},
    {"zacute", "\305\272"},
    {"zcaron", "\305\276"},
    {"zdotaccent", "\305\274"},
    {"zero", "0"},
    {"zeta", "\316\266"},
};
const int PDF_GLYPH_COUNT = (int)(sizeof(PDF_GLYPHS) / sizeof(PDF_GLYPHS[0]));

const char *const PDF_ENC_STANDARD[256] = {
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    " ",
    "!",
    "\042",
    "#",
    "$",
    "%",
    "&",
    "\342\200\231",
    "(",
    ")",
    "*",
    "+",
    ",",
    "-",
    ".",
    "/",
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    ":",
    ";",
    "<",
    "=",
    ">",
    "\077",
    "@",
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z",
    "[",
    "\134",
    "]",
    "^",
    "_",
    "\342\200\230",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
    "{",
    "|",
    "}",
    "~",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\302\241",
    "\302\242",
    "\302\243",
    "\342\201\204",
    "\302\245",
    "\306\222",
    "\302\247",
    "\302\244",
    "'",
    "\342\200\234",
    "\302\253",
    "\342\200\271",
    "\342\200\272",
    "fi",
    "fl",
    NULL,
    "\342\200\223",
    "\342\200\240",
    "\342\200\241",
    "\302\267",
    NULL,
    "\302\266",
    "\342\200\242",
    "\342\200\232",
    "\342\200\236",
    "\342\200\235",
    "\302\273",
    "\342\200\246",
    "\342\200\260",
    NULL,
    "\302\277",
    NULL,
    "`",
    "\302\264",
    "\313\206",
    "\313\234",
    "\302\257",
    "\313\230",
    "\313\231",
    "\302\250",
    NULL,
    "\313\232",
    "\302\270",
    NULL,
    "\313\235",
    "\313\233",
    "\313\207",
    "\342\200\224",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\303\206",
    NULL,
    "\302\252",
    NULL,
    NULL,
    NULL,
    NULL,
    "\305\201",
    "\303\230",
    "\305\222",
    "\302\272",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\303\246",
    NULL,
    NULL,
    NULL,
    "\304\261",
    NULL,
    NULL,
    "\305\202",
    "\303\270",
    "\305\223",
    "\303\237",
    NULL,
    NULL,
    NULL,
    NULL,
};

const char *const PDF_ENC_WINANSI[256] = {
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    " ",
    "!",
    "\042",
    "#",
    "$",
    "%",
    "&",
    "'",
    "(",
    ")",
    "*",
    "+",
    ",",
    "-",
    ".",
    "/",
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    ":",
    ";",
    "<",
    "=",
    ">",
    "\077",
    "@",
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z",
    "[",
    "\134",
    "]",
    "^",
    "_",
    "`",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
    "{",
    "|",
    "}",
    "~",
    NULL,
    "\342\202\254",
    NULL,
    "\342\200\232",
    "\306\222",
    "\342\200\236",
    "\342\200\246",
    "\342\200\240",
    "\342\200\241",
    "\313\206",
    "\342\200\260",
    "\305\240",
    "\342\200\271",
    "\305\222",
    NULL,
    "\305\275",
    NULL,
    NULL,
    "\342\200\230",
    "\342\200\231",
    "\342\200\234",
    "\342\200\235",
    "\342\200\242",
    "\342\200\223",
    "\342\200\224",
    "\313\234",
    "\342\204\242",
    "\305\241",
    "\342\200\272",
    "\305\223",
    NULL,
    "\305\276",
    "\305\270",
    " ",
    "\302\241",
    "\302\242",
    "\302\243",
    "\302\244",
    "\302\245",
    "\302\246",
    "\302\247",
    "\302\250",
    "\302\251",
    "\302\252",
    "\302\253",
    "\302\254",
    "-",
    "\302\256",
    "\302\257",
    "\302\260",
    "\302\261",
    "\302\262",
    "\302\263",
    "\302\264",
    "\302\265",
    "\302\266",
    "\302\267",
    "\302\270",
    "\302\271",
    "\302\272",
    "\302\273",
    "\302\274",
    "\302\275",
    "\302\276",
    "\302\277",
    "\303\200",
    "\303\201",
    "\303\202",
    "\303\203",
    "\303\204",
    "\303\205",
    "\303\206",
    "\303\207",
    "\303\210",
    "\303\211",
    "\303\212",
    "\303\213",
    "\303\214",
    "\303\215",
    "\303\216",
    "\303\217",
    "\303\220",
    "\303\221",
    "\303\222",
    "\303\223",
    "\303\224",
    "\303\225",
    "\303\226",
    "\303\227",
    "\303\230",
    "\303\231",
    "\303\232",
    "\303\233",
    "\303\234",
    "\303\235",
    "\303\236",
    "\303\237",
    "\303\240",
    "\303\241",
    "\303\242",
    "\303\243",
    "\303\244",
    "\303\245",
    "\303\246",
    "\303\247",
    "\303\250",
    "\303\251",
    "\303\252",
    "\303\253",
    "\303\254",
    "\303\255",
    "\303\256",
    "\303\257",
    "\303\260",
    "\303\261",
    "\303\262",
    "\303\263",
    "\303\264",
    "\303\265",
    "\303\266",
    "\303\267",
    "\303\270",
    "\303\271",
    "\303\272",
    "\303\273",
    "\303\274",
    "\303\275",
    "\303\276",
    "\303\277",
};

const char *const PDF_ENC_MACROMAN[256] = {
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    " ",
    "!",
    "\042",
    "#",
    "$",
    "%",
    "&",
    "'",
    "(",
    ")",
    "*",
    "+",
    ",",
    "-",
    ".",
    "/",
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    ":",
    ";",
    "<",
    "=",
    ">",
    "\077",
    "@",
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z",
    "[",
    "\134",
    "]",
    "^",
    "_",
    "`",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
    "{",
    "|",
    "}",
    "~",
    NULL,
    "\303\204",
    "\303\205",
    "\303\207",
    "\303\211",
    "\303\221",
    "\303\226",
    "\303\234",
    "\303\241",
    "\303\240",
    "\303\242",
    "\303\244",
    "\303\243",
    "\303\245",
    "\303\247",
    "\303\251",
    "\303\250",
    "\303\252",
    "\303\253",
    "\303\255",
    "\303\254",
    "\303\256",
    "\303\257",
    "\303\261",
    "\303\263",
    "\303\262",
    "\303\264",
    "\303\266",
    "\303\265",
    "\303\272",
    "\303\271",
    "\303\273",
    "\303\274",
    "\342\200\240",
    "\302\260",
    "\302\242",
    "\302\243",
    "\302\247",
    "\342\200\242",
    "\302\266",
    "\303\237",
    "\302\256",
    "\302\251",
    "\342\204\242",
    "\302\264",
    "\302\250",
    "\342\211\240",
    "\303\206",
    "\303\230",
    "\342\210\236",
    "\302\261",
    "\342\211\244",
    "\342\211\245",
    "\302\245",
    "\302\265",
    "\342\210\202",
    "\342\210\221",
    "\342\210\217",
    "\317\200",
    "\342\210\253",
    "\302\252",
    "\302\272",
    "\316\251",
    "\303\246",
    "\303\270",
    "\302\277",
    "\302\241",
    "\302\254",
    "\342\210\232",
    "\306\222",
    "\342\211\210",
    "\342\210\206",
    "\302\253",
    "\302\273",
    "\342\200\246",
    "\302\240",
    "\303\200",
    "\303\203",
    "\303\225",
    "\305\222",
    "\305\223",
    "\342\200\223",
    "\342\200\224",
    "\342\200\234",
    "\342\200\235",
    "\342\200\230",
    "\342\200\231",
    "\303\267",
    "\342\227\212",
    "\303\277",
    "\305\270",
    "\342\201\204",
    "\342\202\254",
    "\342\200\271",
    "\342\200\272",
    "\357\254\201",
    "\357\254\202",
    "\342\200\241",
    "\302\267",
    "\342\200\232",
    "\342\200\236",
    "\342\200\260",
    "\303\202",
    "\303\212",
    "\303\201",
    "\303\213",
    "\303\210",
    "\303\215",
    "\303\216",
    "\303\217",
    "\303\214",
    "\303\223",
    "\303\224",
    "\357\243\277",
    "\303\222",
    "\303\232",
    "\303\233",
    "\303\231",
    "\304\261",
    "\313\206",
    "\313\234",
    "\302\257",
    "\313\230",
    "\313\231",
    "\313\232",
    "\302\270",
    "\313\235",
    "\313\233",
    "\313\207",
};

const char *const PDF_ENC_PDFDOC[256] = {
    NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,
    NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,
    NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,
    NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,       NULL,
    " ",        "!",        "\042",     "#",        "$",        "%",        "&",        "'",
    "(",        ")",        "*",        "+",        ",",        "-",        ".",        "/",
    "0",        "1",        "2",        "3",        "4",        "5",        "6",        "7",
    "8",        "9",        ":",        ";",        "<",        "=",        ">",        "\077",
    "@",        "A",        "B",        "C",        "D",        "E",        "F",        "G",
    "H",        "I",        "J",        "K",        "L",        "M",        "N",        "O",
    "P",        "Q",        "R",        "S",        "T",        "U",        "V",        "W",
    "X",        "Y",        "Z",        "[",        "\134",     "]",        "^",        "_",
    "`",        "a",        "b",        "c",        "d",        "e",        "f",        "g",
    "h",        "i",        "j",        "k",        "l",        "m",        "n",        "o",
    "p",        "q",        "r",        "s",        "t",        "u",        "v",        "w",
    "x",        "y",        "z",        "{",        "|",        "}",        "~",        NULL,
    "\302\200", "\302\201", "\302\202", "\302\203", "\302\204", "\302\205", "\302\206", "\302\207",
    "\302\210", "\302\211", "\302\212", "\302\213", "\302\214", "\302\215", "\302\216", "\302\217",
    "\302\220", "\302\221", "\302\222", "\302\223", "\302\224", "\302\225", "\302\226", "\302\227",
    "\302\230", "\302\231", "\302\232", "\302\233", "\302\234", "\302\235", "\302\236", "\302\237",
    "\302\240", "\302\241", "\302\242", "\302\243", "\302\244", "\302\245", "\302\246", "\302\247",
    "\302\250", "\302\251", "\302\252", "\302\253", "\302\254", "\302\255", "\302\256", "\302\257",
    "\302\260", "\302\261", "\302\262", "\302\263", "\302\264", "\302\265", "\302\266", "\302\267",
    "\302\270", "\302\271", "\302\272", "\302\273", "\302\274", "\302\275", "\302\276", "\302\277",
    "\303\200", "\303\201", "\303\202", "\303\203", "\303\204", "\303\205", "\303\206", "\303\207",
    "\303\210", "\303\211", "\303\212", "\303\213", "\303\214", "\303\215", "\303\216", "\303\217",
    "\303\220", "\303\221", "\303\222", "\303\223", "\303\224", "\303\225", "\303\226", "\303\227",
    "\303\230", "\303\231", "\303\232", "\303\233", "\303\234", "\303\235", "\303\236", "\303\237",
    "\303\240", "\303\241", "\303\242", "\303\243", "\303\244", "\303\245", "\303\246", "\303\247",
    "\303\250", "\303\251", "\303\252", "\303\253", "\303\254", "\303\255", "\303\256", "\303\257",
    "\303\260", "\303\261", "\303\262", "\303\263", "\303\264", "\303\265", "\303\266", "\303\267",
    "\303\270", "\303\271", "\303\272", "\303\273", "\303\274", "\303\275", "\303\276", "\303\277",
};

const char *const PDF_ENC_SYMBOL[256] = {
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    " ",
    "!",
    "\342\210\200",
    "#",
    "\342\210\203",
    "%",
    "&",
    NULL,
    "(",
    ")",
    "\342\210\227",
    "+",
    ",",
    "\342\210\222",
    ".",
    "/",
    "0",
    "1",
    "2",
    "3",
    "4",
    "5",
    "6",
    "7",
    "8",
    "9",
    ":",
    ";",
    "<",
    "=",
    ">",
    "\077",
    "\342\211\205",
    "\316\221",
    "\316\222",
    "\316\247",
    "\316\224",
    "\316\225",
    "\316\246",
    "\316\223",
    "\316\227",
    "\316\231",
    "\317\221",
    "\316\232",
    "\316\233",
    "\316\234",
    "\316\235",
    "\316\237",
    "\316\240",
    "\316\230",
    "\316\241",
    "\316\243",
    "\316\244",
    "\316\245",
    "\317\202",
    "\316\251",
    "\316\236",
    "\316\250",
    "\316\226",
    "[",
    "\342\210\264",
    "]",
    "\342\212\245",
    "_",
    NULL,
    "\316\261",
    "\316\262",
    "\317\207",
    "\316\264",
    "\316\265",
    "\317\206",
    "\316\263",
    "\316\267",
    "\316\271",
    "\317\225",
    "\316\272",
    "\316\273",
    "\302\265",
    "\316\275",
    "\316\277",
    "\317\200",
    "\316\270",
    "\317\201",
    "\317\203",
    "\317\204",
    "\317\205",
    "\317\226",
    "\317\211",
    "\316\276",
    "\317\210",
    "\316\266",
    "{",
    "|",
    "}",
    "\342\210\274",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\211\244",
    NULL,
    "\342\210\236",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\206\224",
    "\342\206\220",
    "\342\206\221",
    "\342\206\222",
    "\342\206\223",
    "\302\260",
    "\302\261",
    NULL,
    "\342\211\245",
    "\303\227",
    "\342\210\235",
    "\342\210\202",
    "\342\200\242",
    "\303\267",
    "\342\211\240",
    "\342\211\241",
    "\342\211\210",
    "\342\200\246",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\210\210",
    NULL,
    NULL,
    "\342\210\207",
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\210\232",
    "\342\213\205",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\210\221",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    "\342\210\253",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
};

const unsigned short PDF_WIDTH_HELVETICA[95] = {
    278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333,  278, 278, 556, 556, 556,
    556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667,
    611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667,  611, 722, 667, 944, 667,
    667, 611, 278, 278, 278, 469, 556, 333, 556, 556, 500, 556, 556, 278,  556, 556, 222, 222, 500,
    222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500,  500, 334, 260, 334, 584};
const unsigned short PDF_WIDTH_TIMES[95] = {
    250, 333, 408, 500, 500, 833, 778, 180, 333, 333, 500, 564, 250, 333, 250, 278, 500, 500, 500,
    500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564, 564, 444, 921, 722, 667, 667, 722, 611,
    556, 722, 722, 333, 389, 722, 611, 889, 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722,
    722, 611, 333, 278, 333, 469, 500, 333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500,
    278, 778, 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480, 541};

const char *const PDF_STD14[] = {"Arial",
                                 "Arial,Bold",
                                 "Arial,BoldItalic",
                                 "Arial,Italic",
                                 "Courier",
                                 "Courier-Bold",
                                 "Courier-BoldOblique",
                                 "Courier-Oblique",
                                 "CourierNew",
                                 "CourierNew,Bold",
                                 "Helvetica",
                                 "Helvetica-Bold",
                                 "Helvetica-BoldOblique",
                                 "Helvetica-Oblique",
                                 "Symbol",
                                 "Times-Bold",
                                 "Times-BoldItalic",
                                 "Times-Italic",
                                 "Times-Roman",
                                 "TimesNewRoman",
                                 "TimesNewRoman,Bold",
                                 "ZapfDingbats",
                                 NULL};