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
|
|
|
|
{
|
2013-01-28 23:11:29 +00:00
|
|
|
// pages
|
2012-08-04 18:03:53 +00:00
|
|
|
int first_page, last_page;
|
2013-01-28 23:11:29 +00:00
|
|
|
|
|
|
|
// dimensions
|
2012-08-15 13:26:13 +00:00
|
|
|
double zoom;
|
2012-09-26 16:17:56 +00:00
|
|
|
double fit_width, fit_height;
|
2012-12-07 12:31:09 +00:00
|
|
|
int use_cropbox;
|
2013-01-28 23:11:29 +00:00
|
|
|
double h_dpi, v_dpi;
|
|
|
|
|
2013-01-30 18:18:18 +00:00
|
|
|
// output
|
2012-08-15 07:43:49 +00:00
|
|
|
int single_html;
|
2012-09-12 15:26:14 +00:00
|
|
|
int split_pages;
|
2013-01-28 23:11:29 +00:00
|
|
|
std::string dest_dir;
|
|
|
|
std::string css_filename;
|
|
|
|
std::string outline_filename;
|
2013-01-30 18:18:18 +00:00
|
|
|
int process_nontext;
|
|
|
|
int process_outline;
|
2013-03-08 17:45:13 +00:00
|
|
|
int fallback;
|
2013-01-28 23:11:29 +00:00
|
|
|
|
2013-01-29 10:38:39 +00:00
|
|
|
// fonts
|
2012-08-31 07:27:17 +00:00
|
|
|
int embed_base_font;
|
|
|
|
int embed_external_font;
|
2013-01-29 12:07:51 +00:00
|
|
|
std::string font_suffix;
|
2012-09-06 07:09:47 +00:00
|
|
|
int decompose_ligature;
|
2013-01-28 23:11:29 +00:00
|
|
|
int remove_unused_glyph;
|
|
|
|
int auto_hint;
|
|
|
|
std::string external_hint_tool;
|
|
|
|
int stretch_narrow_glyph;
|
|
|
|
int squeeze_wide_glyph;
|
|
|
|
|
|
|
|
// text
|
2012-08-31 05:00:24 +00:00
|
|
|
double h_eps, v_eps;
|
|
|
|
double space_threshold;
|
|
|
|
double font_size_multiplier;
|
2012-09-07 00:39:21 +00:00
|
|
|
int space_as_offset;
|
2013-01-28 23:11:29 +00:00
|
|
|
int tounicode;
|
|
|
|
|
|
|
|
// encryption
|
|
|
|
std::string owner_password, user_password;
|
|
|
|
int no_drm;
|
|
|
|
|
|
|
|
// misc.
|
2012-08-15 07:43:49 +00:00
|
|
|
int clean_tmp;
|
2013-01-28 23:11:29 +00:00
|
|
|
std::string data_dir;
|
2012-10-02 08:06:08 +00:00
|
|
|
int css_draw;
|
2013-01-28 23:11:29 +00:00
|
|
|
int debug;
|
|
|
|
|
|
|
|
// non-optional
|
|
|
|
std::string input_filename, output_filename;
|
|
|
|
|
|
|
|
// not a paramater
|
|
|
|
std::string tmp_dir;
|
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__
|