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

46 lines
903 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>
#include "Param.h"
2012-11-29 09:45:26 +00:00
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
struct EmbedStringEntry
{
int Param::*embed_flag;
// used when *embed_flag == true
std::string prefix_embed;
std::string suffix_embed;
// used when *embed_flag == false
std::string prefix_external;
std::string suffix_external;
};
extern const std::map<std::string, EmbedStringEntry> EMBED_STRING_MAP;
2012-11-29 09:45:26 +00:00
2013-09-18 12:24:48 +00:00
extern const std::map<std::string, std::string> FORMAT_MIME_TYPE_MAP;
2012-11-29 09:45:26 +00:00
} // namespace pdf2htmlEX
#endif //CONST_H__