pdf2htmlEX/src/Param.h

88 lines
1.6 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;
// output
int embed_css;
int embed_font;
int embed_image;
int embed_javascript;
int embed_outline;
2012-09-12 15:26:14 +00:00
int split_pages;
std::string dest_dir;
std::string css_filename;
std::string page_filename;
std::string outline_filename;
2013-01-30 18:18:18 +00:00
int process_nontext;
int process_outline;
2014-06-07 04:43:53 +00:00
int process_annotation;
2014-11-14 19:28:17 +00:00
int process_form;
int correct_text_visibility;
2013-04-30 11:07:55 +00:00
int printing;
2013-03-08 17:45:13 +00:00
int fallback;
2014-01-11 08:25:09 +00:00
int tmp_file_size_limit;
2013-01-29 10:38:39 +00:00
// fonts
int embed_external_font;
2013-09-18 12:24:48 +00:00
std::string font_format;
2012-09-06 07:09:47 +00:00
int decompose_ligature;
int auto_hint;
std::string external_hint_tool;
int stretch_narrow_glyph;
int squeeze_wide_glyph;
2013-07-02 00:04:20 +00:00
int override_fstype;
2013-09-18 21:56:57 +00:00
int process_type3;
// 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;
int optimize_text;
2013-09-18 10:01:56 +00:00
// background image
std::string bg_format;
int svg_node_count_limit;
int svg_embed_bitmap;
// 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;
std::string tmp_dir;
int debug;
2014-06-26 13:28:32 +00:00
int proof;
std::string input_filename, output_filename;
2012-08-04 18:03:53 +00:00
};
} // namespace pdf2htmlEX
2012-08-04 18:03:53 +00:00
#endif //PARAM_h__