1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

space-as-offset is off by default

This commit is contained in:
Lu Wang 2013-04-04 22:10:25 +08:00
parent 0b2bbbfa2e
commit c9b05d323f
2 changed files with 3 additions and 3 deletions

View File

@ -188,10 +188,10 @@ Specify a ratio greater than 1 would resolve this issue, however it might freeze
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
.B --space-as-offset <0|1> (Default: 1)
.B --space-as-offset <0|1> (Default: 0)
If set to 1, space characters will be treated as offsets, which allows a better optimization.
This option may cause problems for PDF files with bad encodings.
For PDF files with bad encodings, turning on this option may cause losing characters.
.TP
.B --tounicode <-1|0|1> (Default: 0)

View File

@ -93,7 +93,7 @@ void parse_options (int argc, char **argv)
.add("veps", &param.v_eps, 1.0, "vertical threshold for merging text, in pixels")
.add("space-threshold", &param.space_threshold, (1.0/8), "word break threshold (threshold * em)")
.add("font-size-multiplier", &param.font_size_multiplier, 4.0, "a value greater than 1 increases the rendering accuracy")
.add("space-as-offset", &param.space_as_offset, 1, "treat space characters as offsets")
.add("space-as-offset", &param.space_as_offset, 0, "treat space characters as offsets")
.add("tounicode", &param.tounicode, 0, "how to handle ToUnicode CMaps (0=auto, 1=force, -1=ignore)")
.add("optimize-text", &param.optimize_text, 1, "try to reduce the number of HTML elements used for text")