comparison rankfilter_GCMS/pdftotabular.py @ 61:d685210eef3e

fix in pdftotabular tool
author pieter.lukasse@wur.nl
date Fri, 19 Dec 2014 15:30:13 +0100
parents 9d5f4f5f764b
children
comparison
equal deleted inserted replaced
60:35f506f30ae4 61:d685210eef3e
25 Converts PDF file to text 25 Converts PDF file to text
26 @param filename: PDF file to parse 26 @param filename: PDF file to parse
27 @param output_file: output text file for the hits 27 @param output_file: output text file for the hits
28 ''' 28 '''
29 29
30 # "-layout" option in pdftotext call below: Maintain (as best as possible) the original physical layout of the text. The
31 # default is to 'undo' physical layout (columns, hyphenation, etc.) and output
32 # the text in reading order.
30 try: 33 try:
31 call(["pdftotext", filename, output_file]) 34 call(["pdftotext", "-layout", filename, output_file])
32 except: 35 except:
33 raise Exception("Error while trying to convert PDF to text") 36 raise Exception("Error while trying to convert PDF to text")
34 37
35 38
36 39