Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ran on windows 10 #3

Open
mokhosh opened this issue Nov 1, 2019 · 2 comments
Open

Ran on windows 10 #3

mokhosh opened this issue Nov 1, 2019 · 2 comments

Comments

@mokhosh
Copy link

mokhosh commented Nov 1, 2019

I cloned the project and installed all dependencies.

I had to make a couple of changes to get it to run successfully on windows:

Line 240

- input_filename = input_file.split(input_folder+"/")[1] 
+ input_filename = input_file.split(input_folder+"\\")[1]

Line 278

- os.system(command.encode("utf-8"))
+ os.system(command)
@tshrinivasan
Copy link
Member

tshrinivasan commented Nov 1, 2019 via email

@mokhosh
Copy link
Author

mokhosh commented Nov 2, 2019

I had python3 and pip already installed. So that's step 1.

2- Download latest binaries for windows, unzip poppler and mutool to a certain folder, and install Ghostscript:
popler-windows - https://blog.alivate.com.au/poppler-windows/
gs - https://www.ghostscript.com/download/gsdnld.html
mutool - https://mupdf.com/downloads/index.html

3- Clone Pdf2Text and change your config.ini:

mutool = D:\app\tools\mupdf-1.16.0-windows\mutool.exe
pdfseparate = D:\app\tools\poppler-0.68.0\bin\pdfseparate.exe
pdfunite = D:\app\tools\poppler-0.68.0\bin\pdfunite.exe
gs = D:\app\tools\gs\gs9.50\bin\gswin64c.exe

Use the location where you unzipped and installed the tools instead of d:\app\tools of course.

Now you can follow the rest of installation, just skip this line:

sudo apt-get install poppler-utils mupdf-tools git python3-pip ghostscript

and you don't need sudo in windows, and you might wanna use pip instead of pip3 depending on your installation of python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants