OSDN Git Service

// fix miss
authorgn64_jp <gn64@rec10.org>
Sun, 3 Nov 2013 09:52:13 +0000 (18:52 +0900)
committergn64_jp <gn64@rec10.org>
Sun, 3 Nov 2013 09:52:13 +0000 (18:52 +0900)
index/pdf2xml.py

index ee2ab40..f1e4415 100644 (file)
@@ -121,7 +121,7 @@ def PDF2TEXT(pdfpath,dstpath,idnum):
     rdl=rd.hexdigest()
     for i in xrange(1,pagenum+1):
         tmpdstpath=cacheFolder+"/page-"+str(i)+dstpath
-        cmd=u"pdftotext -eol unix -enc UTF-8 -f "+str(i)+u" -l "+str(i)+" \""+pdfpath+u"\" \"+tmpdstpath+"\""
+        cmd=u"pdftotext -eol unix -enc UTF-8 -f "+str(i)+u" -l "+str(i)+" \""+pdfpath+u"\" \""+tmpdstpath+"\""
         p=subprocess.Popen(cmd.encode("utf-8"),shell=True)
         p.wait()
         time.sleep(1)