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

63 lines
1.0 KiB
C
Raw Normal View History

2012-08-04 18:03:53 +00:00
/*
* Parameters
*
* Wang Lu
* 2012.08.03
*/
#ifndef PARAM_H__
#define PARAM_H__
#include <string>
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-09-12 16:16:34 +00:00
std::string dest_dir, tmp_dir, data_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-09-26 16:17:56 +00:00
double fit_width, fit_height;
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-09-12 15:26:14 +00:00
int split_pages;
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-30 16:37:53 +00:00
2012-09-21 08:51:13 +00:00
int auto_hint;
2012-09-08 17:49:47 +00:00
int tounicode;
2012-09-07 00:39:21 +00:00
int space_as_offset;
2012-09-30 16:37:53 +00:00
int stretch_narrow_glyph;
int squeeze_wide_glyph;
2012-08-12 06:04:45 +00:00
2012-09-12 15:26:14 +00:00
std::string css_filename;
std::string font_suffix, font_format;
2012-09-23 12:25:22 +00:00
std::string external_hint_tool;
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
};
} // namespace pdf2htmlEX
2012-08-04 18:03:53 +00:00
#endif //PARAM_h__