1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 17:48:38 +00:00
pdf2htmlEX/src/Param.h
2013-09-19 05:56:57 +08:00

84 lines
1.5 KiB
C++

/*
* Parameters
*
* Wang Lu
* 2012.08.03
*/
#ifndef PARAM_H__
#define PARAM_H__
#include <string>
namespace pdf2htmlEX {
struct Param
{
// pages
int first_page, last_page;
// dimensions
double zoom;
double fit_width, fit_height;
int use_cropbox;
double h_dpi, v_dpi;
// output
int embed_css;
int embed_font;
int embed_image;
int embed_javascript;
int embed_outline;
int split_pages;
std::string dest_dir;
std::string css_filename;
std::string page_filename;
std::string outline_filename;
int process_nontext;
int process_outline;
int printing;
int fallback;
// fonts
int embed_external_font;
std::string font_format;
int decompose_ligature;
int auto_hint;
std::string external_hint_tool;
int stretch_narrow_glyph;
int squeeze_wide_glyph;
int override_fstype;
int process_type3;
// text
double h_eps, v_eps;
double space_threshold;
double font_size_multiplier;
int space_as_offset;
int tounicode;
int optimize_text;
// background image
std::string bg_format;
// encryption
std::string owner_password, user_password;
int no_drm;
// misc.
int clean_tmp;
std::string data_dir;
int css_draw;
int debug;
std::string input_filename, output_filename;
// not a paramater
std::string tmp_dir;
};
} // namespace pdf2htmlEX
#endif //PARAM_h__