mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
add 'font-size-multiplier', remove unused 'metadata'
This commit is contained in:
parent
88cf573dff
commit
fb449223dd
@ -150,7 +150,7 @@ void HTMLRenderer::check_state_change(GfxState * state)
|
||||
double new_draw_ctm[6];
|
||||
memcpy(new_draw_ctm, cur_ctm, sizeof(new_draw_ctm));
|
||||
|
||||
draw_scale = sqrt(new_draw_ctm[2] * new_draw_ctm[2] + new_draw_ctm[3] * new_draw_ctm[3]);
|
||||
draw_scale = (param->font_size_multiplier) * sqrt(new_draw_ctm[2] * new_draw_ctm[2] + new_draw_ctm[3] * new_draw_ctm[3]);
|
||||
|
||||
double new_draw_font_size = cur_font_size;
|
||||
if(_is_positive(draw_scale))
|
||||
|
@ -21,6 +21,7 @@ struct Param
|
||||
int first_page, last_page;
|
||||
|
||||
double zoom;
|
||||
double font_size_multiplier;
|
||||
double h_dpi, v_dpi;
|
||||
double h_eps, v_eps;
|
||||
|
||||
|
@ -120,12 +120,12 @@ po::variables_map parse_options (int argc, char **argv)
|
||||
("first-page,f", po::value<int>(¶m.first_page)->default_value(1), "first page to process")
|
||||
("last-page,l", po::value<int>(¶m.last_page)->default_value(numeric_limits<int>::max()), "last page to process")
|
||||
("version,v", "show copyright and version info")
|
||||
("metadata,m", "show the document meta data in JSON")
|
||||
("owner-password,o", po::value<string>(¶m.owner_password)->default_value(""), "owner password (for encrypted files)")
|
||||
("user-password,u", po::value<string>(¶m.user_password)->default_value(""), "user password (for encrypted files)")
|
||||
("dest-dir", po::value<string>(¶m.dest_dir)->default_value("."), "destination directory")
|
||||
("tmp-dir", po::value<string>(¶m.tmp_dir)->default_value("/tmp/pdf2htmlEX"), "temporary directory")
|
||||
("zoom", po::value<double>(¶m.zoom)->default_value(1.0), "zoom ratio")
|
||||
("font-size-multiplier", po::value<double>(¶m.font_size_multiplier)->default_value(10.0), "setting a value greater than 1 would increase the rendering accuracy")
|
||||
("hdpi", po::value<double>(¶m.h_dpi)->default_value(144.0), "horizontal DPI for non-text")
|
||||
("vdpi", po::value<double>(¶m.v_dpi)->default_value(144.0), "vertical DPI for non-text")
|
||||
("heps", po::value<double>(¶m.h_eps)->default_value(1.0), "max tolerated horizontal offset (in pixels)")
|
||||
|
Loading…
Reference in New Issue
Block a user