OSDN Git Service
(root)
/
libre10
/
libre10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f848f08
)
// fix miss
author
gn64_jp
<gn64@rec10.org>
Sun, 3 Nov 2013 09:52:13 +0000
(18:52 +0900)
committer
gn64_jp
<gn64@rec10.org>
Sun, 3 Nov 2013 09:52:13 +0000
(18:52 +0900)
index/pdf2xml.py
patch
|
blob
|
history
diff --git
a/index/pdf2xml.py
b/index/pdf2xml.py
index
ee2ab40
..
f1e4415
100644
(file)
--- a/
index/pdf2xml.py
+++ b/
index/pdf2xml.py
@@
-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)