1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-10-06 20:01:40 +00:00
pdf2htmlEX/src/util/const.h

34 lines
666 B
C
Raw Normal View History

2012-11-29 09:45:26 +00:00
/*
* Constants
*
* by WangLu
* 2012.11.29
*/
#ifndef CONST_H__
#define CONST_H__
#include <map>
#include <string>
namespace pdf2htmlEX {
2012-11-29 10:28:07 +00:00
#ifndef nullptr
#define nullptr (NULL)
#endif
2012-11-29 09:45:26 +00:00
static const double EPS = 1e-6;
static const double DEFAULT_DPI = 72.0;
extern const double ID_MATRIX[6];
// For GB encoded font names
extern const std::map<std::string, std::string> GB_ENCODED_FONT_NAME_MAP;
// map to embed files into html
// key: (suffix, if_embed_content)
// value: (prefix string, suffix string)
extern const std::map<std::pair<std::string, bool>, std::pair<std::string, std::string> > EMBED_STRING_MAP;
} // namespace pdf2htmlEX
#endif //CONST_H__