1
0

remove pdf_pagecount()

Este cometimento está contido em:
Albert S. 2018-08-09 23:00:44 +02:00
ascendente 07b3479029
cometimento e006a95673

Ver ficheiro

@ -41,11 +41,8 @@ def strip_irrelevant(content):
result = re.sub(' +', ' ', result)
return result;
def pdf_pagecount(path):
cmd = "pdfinfo " + path + " | grep Pages | awk '{print $2}'"
stdout,stderr = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
result = int(stdout)
return result
def process_pdf(path):
result = list()
args=["pdftotext", path, "-"]