2012-08-04 18:03:53 +00:00
|
|
|
/*
|
|
|
|
* Parameters
|
|
|
|
*
|
|
|
|
* Wang Lu
|
|
|
|
* 2012.08.03
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef PARAM_H__
|
|
|
|
#define PARAM_H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2012-09-11 13:52:46 +00:00
|
|
|
namespace pdf2htmlEX {
|
|
|
|
|
2012-08-04 18:03:53 +00:00
|
|
|
struct Param
|
|
|
|
{
|
2012-08-31 05:00:24 +00:00
|
|
|
// PDF stuff
|
2012-08-04 18:03:53 +00:00
|
|
|
std::string owner_password, user_password;
|
|
|
|
std::string input_filename, output_filename;
|
2012-08-14 09:50:16 +00:00
|
|
|
|
2012-08-31 05:00:24 +00:00
|
|
|
// path
|
2012-08-14 10:12:58 +00:00
|
|
|
std::string dest_dir, tmp_dir;
|
2012-08-14 09:50:16 +00:00
|
|
|
|
2012-08-31 05:00:24 +00:00
|
|
|
// normal parameters
|
2012-08-04 18:03:53 +00:00
|
|
|
int first_page, last_page;
|
|
|
|
|
2012-08-15 13:26:13 +00:00
|
|
|
double zoom;
|
2012-08-04 18:03:53 +00:00
|
|
|
double h_dpi, v_dpi;
|
2012-08-09 14:47:22 +00:00
|
|
|
|
|
|
|
int process_nontext;
|
2012-08-15 07:43:49 +00:00
|
|
|
int single_html;
|
2012-08-31 07:27:17 +00:00
|
|
|
int embed_base_font;
|
|
|
|
int embed_external_font;
|
2012-09-06 07:09:47 +00:00
|
|
|
int decompose_ligature;
|
2012-08-31 05:00:24 +00:00
|
|
|
|
|
|
|
// Advanced tweak
|
|
|
|
double h_eps, v_eps;
|
|
|
|
double space_threshold;
|
|
|
|
double font_size_multiplier;
|
2012-09-08 17:49:47 +00:00
|
|
|
int tounicode;
|
2012-09-07 00:39:21 +00:00
|
|
|
int space_as_offset;
|
2012-08-12 06:04:45 +00:00
|
|
|
|
2012-08-31 02:10:06 +00:00
|
|
|
std::string font_suffix, font_format;
|
|
|
|
|
2012-08-12 06:04:45 +00:00
|
|
|
int debug;
|
2012-08-15 07:43:49 +00:00
|
|
|
int clean_tmp;
|
2012-08-04 18:03:53 +00:00
|
|
|
};
|
|
|
|
|
2012-09-11 13:52:46 +00:00
|
|
|
} // namespace pdf2htmlEX
|
2012-08-04 18:03:53 +00:00
|
|
|
|
|
|
|
#endif //PARAM_h__
|