From 818bbc7f675e19970b1f8fdd8000ca4170f7313b Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Fri, 21 Sep 2012 17:05:01 +0800 Subject: [PATCH] set font-size-multiplier to 1 --- ChangeLog | 4 ++++ pdf2htmlEX.1.in | 4 ++-- src/pdf2htmlEX.cc | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 915a547..fc457e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ Latest v0.4 +* auto hint fonts, good for Chrome +* many fixes for IE +* [Experimental] adjust widths of fonts according to PDF + v0.3 2012.09.16 diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index 1a03f05..f2ccd1e 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -87,10 +87,10 @@ pdf2htmlEX would try to optimize the generated HTML file moving Text within this .B --space-threshold (Default: 1.0/6) pdf2htmlEX would insert a whitespace character ' ' if the distance between two consecutive letters in the same line is wider than ratio * font_size. .TP -.B --font-size-multiplier (Default: 10) +.B --font-size-multiplier (Default: 1.0) Many web browsers limit the minimum font size, and many would round the given font size, which results in incorrect rendering. -Specify a ratio greater than 1 would resolve this issue. +Specify a ratio greater than 1 would resolve this issue, however it might freeze some browsers. For some versions of Firefox, however, there will be a problem when the font size is too large, in which case a smaller value should be specified here. .TP diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 30aacc1..f850129 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -73,7 +73,7 @@ void parse_options (int argc, char **argv) .add("heps", ¶m.h_eps, 1.0, "max tolerated horizontal offset (in pixels)") .add("veps", ¶m.v_eps, 1.0, "max tolerated vertical offset (in pixels)") .add("space-threshold", ¶m.space_threshold, (1.0/8), "distance no thiner than (threshold * em) will be considered as a space character") - .add("font-size-multiplier", ¶m.font_size_multiplier, 10.0, "setting a value greater than 1 would increase the rendering accuracy") + .add("font-size-multiplier", ¶m.font_size_multiplier, 1.0, "setting a value greater than 1 would increase the rendering accuracy") .add("auto-hint", ¶m.auto_hint, 1, "Whether to generate hints for fonts") .add("tounicode", ¶m.tounicode, 0, "Specify how to deal with ToUnicode map, 0 for auto, 1 for forced, -1 for disabled") .add("space-as-offset", ¶m.space_as_offset, 0, "treat space characters as offsets")