From b3dabae52a2ecd5949b6d1ef9c8e2c7657594e96 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Mon, 8 Oct 2012 20:16:43 +0800 Subject: [PATCH] squeeze-widt-glyph is now default --- pdf2htmlEX.1.in | 2 +- src/pdf2htmlEX.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2htmlEX.1.in b/pdf2htmlEX.1.in index b0da584..9775233 100644 --- a/pdf2htmlEX.1.in +++ b/pdf2htmlEX.1.in @@ -120,7 +120,7 @@ Turn it on if space characters are not displayed correctly, or you want to remov .B --stretch-narrow-glyph <0|1> (Default: 0) If set to 1, glyphs narrower than described in PDF will be strecth; otherwise space will be padded to the right of the glyphs .TP -.B --squeeze_wide_glyph <0|1> (Default: 0) +.B --squeeze_wide_glyph <0|1> (Default: 1) If set to 1, glyphs wider than described in PDF will be squeezed; otherwise it will be truncated. .TP .B --remove-unused-glyph <0|1> (Default: 1) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index f0588a9..f56b778 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -82,7 +82,7 @@ void parse_options (int argc, char **argv) .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") .add("stretch-narrow-glyph", ¶m.stretch_narrow_glyph, 0, "stretch narrow glyphs instead of padding space") - .add("squeeze-wide-glyph", ¶m.squeeze_wide_glyph, 0, "squeeze wide glyphs instead of truncating") + .add("squeeze-wide-glyph", ¶m.squeeze_wide_glyph, 1, "squeeze wide glyphs instead of truncating") .add("remove-unused-glyph", ¶m.remove_unused_glyph, 1, "remove unused glyphs in embedded fonts") .add("font-suffix", ¶m.font_suffix, ".ttf", "suffix for extracted font files")