mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
clean code, working on tmp_dir
This commit is contained in:
parent
27d99ebcf5
commit
b21042021b
@ -12,7 +12,7 @@ using std::string;
|
||||
|
||||
const double EPS = 1e-6;
|
||||
|
||||
const string TMP_DIR="/tmp/pdf2htmlEX";
|
||||
const double id_matrix[6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0};
|
||||
|
||||
const map<string, string> BASE_14_FONT_CSS_FONT_MAP({
|
||||
{ "Courier", "Courier,monospace" },
|
||||
@ -22,8 +22,6 @@ const map<string, string> BASE_14_FONT_CSS_FONT_MAP({
|
||||
{ "ZapfDingbats", "ZapfDingbats,\"Dingbats\"" },
|
||||
});
|
||||
|
||||
const double id_matrix[6] = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0};
|
||||
|
||||
const map<string, string> GB_ENCODED_FONT_NAME_MAP({
|
||||
{"\xCB\xCE\xCC\xE5", "SimSun"},
|
||||
{"\xBA\xDA\xCC\xE5", "SimHei"},
|
||||
|
@ -12,16 +12,9 @@
|
||||
#include <map>
|
||||
|
||||
extern const double EPS;
|
||||
|
||||
extern const std::string HTML_HEAD;
|
||||
extern const std::string HTML_TAIL;
|
||||
|
||||
extern const std::string TMP_DIR;
|
||||
|
||||
extern const std::map<std::string, std::string> BASE_14_FONT_CSS_FONT_MAP;
|
||||
|
||||
extern const double id_matrix[6];
|
||||
|
||||
extern const std::map<std::string, std::string> BASE_14_FONT_CSS_FONT_MAP;
|
||||
extern const std::map<std::string, std::string> GB_ENCODED_FONT_NAME_MAP;
|
||||
|
||||
#endif //CONSTS_H__
|
||||
|
@ -23,7 +23,7 @@ HTMLRenderer::HTMLRenderer(const Param * param)
|
||||
,image_count(0)
|
||||
,param(param)
|
||||
,dest_dir(param->dest_dir)
|
||||
,tmp_dir(TMP_DIR)
|
||||
,tmp_dir(param->tmp_dir)
|
||||
{
|
||||
// install default font & size
|
||||
install_font(nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user