1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-10-06 03:51:40 +00:00
pdf2htmlEX/src/include/Param.h
2012-10-02 16:06:08 +08:00

66 lines
1.0 KiB
C++

/*
* Parameters
*
* Wang Lu
* 2012.08.03
*/
#ifndef PARAM_H__
#define PARAM_H__
#include <string>
namespace pdf2htmlEX {
struct Param
{
// PDF stuff
std::string owner_password, user_password;
std::string input_filename, output_filename;
// path
std::string dest_dir, tmp_dir, data_dir;
// normal parameters
int first_page, last_page;
double zoom;
double fit_width, fit_height;
double h_dpi, v_dpi;
int process_nontext;
int single_html;
int split_pages;
int embed_base_font;
int embed_external_font;
int decompose_ligature;
// Advanced tweak
double h_eps, v_eps;
double space_threshold;
double font_size_multiplier;
int auto_hint;
int tounicode;
int space_as_offset;
int stretch_narrow_glyph;
int squeeze_wide_glyph;
std::string css_filename;
std::string font_suffix, font_format;
std::string external_hint_tool;
int debug;
int clean_tmp;
// experimental
int css_draw;
};
} // namespace pdf2htmlEX
#endif //PARAM_h__