1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
pdf2htmlEX/src/Param.h

75 lines
1.3 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
{
// pages
2012-08-04 18:03:53 +00:00
int first_page, last_page;
// 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;
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;
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-29 10:38:39 +00:00
// fonts
int embed_base_font;
int embed_external_font;
std::string font_suffix;
2012-09-06 07:09:47 +00:00
int decompose_ligature;
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;
int tounicode;
// encryption
std::string owner_password, user_password;
int no_drm;
// misc.
2012-08-15 07:43:49 +00:00
int clean_tmp;
std::string data_dir;
2012-10-02 08:06:08 +00:00
int css_draw;
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
};
} // namespace pdf2htmlEX
2012-08-04 18:03:53 +00:00
#endif //PARAM_h__