/* * Constants * * by WangLu * 2012.08.10 */ #include "Consts.h" const double EPS = 1e-6; const std::string HTML_HEAD = "\n\ \ \ \ \
"; const std::string HTML_TAIL = "
"; const std::string TMP_DIR = "/tmp/pdf2htmlEX"; const std::map BASE_14_FONT_CSS_FONT_MAP({\ { "Courier", "Courier,monospace" },\ { "Helvetica", "Helvetica,Arial,\"Nimbus Sans L\",sans-serif" },\ { "Times", "Times,\"Time New Roman\",\"Nimbus Roman No9 L\",serif" },\ { "Symbol", "Symbol,\"Standard Symbols L\"" },\ { "ZapfDingbats", "ZapfDingbats,\"Dingbats\"" },\ }); const double id_matrix[6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0}; const std::map GB_ENCODED_FONT_NAME_MAP({\ {"\xCB\xCE\xCC\xE5", "SimSun"},\ {"\xBA\xDA\xCC\xE5", "SimHei"},\ {"\xBF\xAC\xCC\xE5_GB2312", "SimKai"},\ {"\xB7\xC2\xCB\xCE_GB2312", "SimFang"},\ {"\xC1\xA5\xCA\xE9", "SimLi"},\ });