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:
c32180c
)
fix cache folder.
author
gn64_jp
<gn64@rec10.org>
Sun, 3 Nov 2013 09:46:23 +0000
(18:46 +0900)
committer
gn64_jp
<gn64@rec10.org>
Sun, 3 Nov 2013 09:46:23 +0000
(18:46 +0900)
index/pdf2xml.py
patch
|
blob
|
history
diff --git
a/index/pdf2xml.py
b/index/pdf2xml.py
index
53a78b3
..
7ce5b5c
100644
(file)
--- a/
index/pdf2xml.py
+++ b/
index/pdf2xml.py
@@
-120,7
+120,7
@@
def PDF2TEXT(pdfpath,dstpath,idnum):
rd.update(title_group.encode('utf-8'))
rdl=rd.hexdigest()
for i in xrange(1,pagenum+1):
- tmpdstpath="\""+cacheFolder+"page-"+str(i)+dstpath+"\""
+ tmpdstpath="\""+cacheFolder+"
/
page-"+str(i)+dstpath+"\""
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()