diff --git a/docs/index.html b/docs/index.html index 62512d3..1bf6fdb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -19,7 +19,7 @@ Python PDF parser and analyzer
-Last Modified: Thu Nov 5 22:23:07 JST 2009 +Last Modified: Sat Nov 7 18:11:40 JST 2009
@@ -259,6 +259,9 @@ are M = 1.0, L = 0.3, and W = 0.2, respectively. ↑

+

-n +
Suppress layout analysis. +

-s scale
Specifies the output scale. Can be used in HTML format only.

diff --git a/tools/pdf2txt.py b/tools/pdf2txt.py index 4b10119..8ee1cbd 100755 --- a/tools/pdf2txt.py +++ b/tools/pdf2txt.py @@ -12,11 +12,11 @@ def main(argv): import getopt def usage(): print ('usage: %s [-d] [-p pagenos] [-P password] [-c codec] ' - '[-D direction] [-M char_margin] [-L line_margin] [-W word_margin] ' + '[-n] [-D direction] [-M char_margin] [-L line_margin] [-W word_margin] ' '[-t text|html|xml|tag] [-o output] file ...' % argv[0]) return 100 try: - (opts, args) = getopt.getopt(argv[1:], 'dp:P:c:D:M:L:W:t:o:C:D:m:') + (opts, args) = getopt.getopt(argv[1:], 'dp:P:c:nD:M:L:W:t:o:C:D:m:') except getopt.GetoptError: return usage() if not args: return usage() @@ -46,6 +46,7 @@ def main(argv): elif k == '-c': codec = v elif k == '-o': outfile = v elif k == '-s': scale = float(v) + elif k == '-n': laparams = None elif k == '-D': laparams.direction = v elif k == '-M': laparams.char_margin = float(v) elif k == '-L': laparams.line_margin = float(v)