Files
pdfmajor/pdfmajor/parser/constants.py
T
ari 3ba0b95001 - moved parser files from old interpeter into parser folder
- renamed interpreter_v2 to just interpreter
- removed legacy code
2018-12-20 10:41:10 -05:00

35 lines
578 B
Python

from .PSStackParser import LIT
## Constants
##
LITERAL_PDF = LIT("PDF")
LITERAL_TEXT = LIT("Text")
LITERAL_FONT = LIT("Font")
LITERAL_FORM = LIT("Form")
LITERAL_IMAGE = LIT("Image")
COMMON_FONT_ATTRIBUTES = [
"Type",
"FontName",
"FontFamily",
"FontStretch",
"FontWeight",
"Flags",
"FontBBox",
"ItalicAngle",
"Ascent",
"Descent",
"Leading",
"CapHeight",
"XHeight",
"StemV",
"StemH",
"AvgWidth",
"MaxWidth",
"MissingWidth",
# "FontFile",
# "FontFile2",
# "FontFile3",
"Charset",
]