Skip to content

Commit 42c8391

Browse files
authored
Merge pull request #190 from asshatter/master
Fixes in an Example script and added shell scripts for installation in CentOS and Ubuntu
2 parents a4f9f01 + 9bfa5a3 commit 42c8391

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

examples/TableExtract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#==============================================================================
6262
# now get the table
6363
#==============================================================================
64-
tab = ParseTab(doc, page, [0, ymin, 9999, ymax])
64+
tab = ParseTab(page, [0, ymin, 9999, ymax])
6565

6666
#print(table_title)
6767
#for t in tab:

installation/.DS_Store

6 KB
Binary file not shown.

installation/centos/centos_pymupdf.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
wget https://mupdf.com/downloads/mupdf-1.13.0-source.tar.gz
2+
tar -zxvf mupdf-1.13.0-source.tar.gz
3+
4+
cd mupdf-1.13.0-source
5+
export CFLAGS="-fPIC -std=gnu99"
6+
7+
make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
8+
sudo make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
9+
10+
cd ..
11+
12+
rm -rf PyMuPDF
13+
git clone https://github.com/rk700/PyMuPDF.git
14+
cd PyMuPDF
15+
16+
sudo python setup.py build
17+
sudo python setup.py install

installation/ubuntu/ubuntu_pymupdf.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
wget https://mupdf.com/downloads/mupdf-1.13.0-source.tar.gz
2+
tar -zxvf mupdf-1.13.0-source.tar.gz
3+
4+
cd mupdf-1.13.0-source
5+
6+
export CFLAGS="-fPIC"
7+
8+
make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local
9+
sudo make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install
10+
11+
cd ..
12+
13+
rm -rf PyMuPDF
14+
git clone https://github.com/rk700/PyMuPDF.git
15+
cd PyMuPDF
16+
17+
sudo python setup.py build
18+
sudo python setup.py install

0 commit comments

Comments
 (0)