Originally Posted by diazlaz
i believe i found the source that prevents the saving of the image in process.py.
if sum(hist[:32]) < 10 or sum(hist[224:]) < 10:
i think if i remove these, it will work.
Installed ActiveState Phython 184.108.40.206, the next question, is how do i recompile ? can i run the patched version directly using the Phython
OK, thanks for the pointer!
I removed those two lines and recompiled it. Just place the contents of dist.zip (two files) into the 'bin' folder in the PDFRead install directory overwriting the existing ones.
If it works, then just retain those new files. If it doesn't just re-install.
As for re-compiling the program to create a revised pdfread.exe, just place the below batch file (remove the .txt suffix) in the 'bin' directory along with a copy of the python scripts from the 'src' directory. Then double click the .bat file and after reviewing the errors messages, press any key to continue and the new pdfread.exe and library.zip will be copied there! I think you will need some dependent libs, but at the moment I can't recall. Ask for some assistance here, if you can't figure it out.
p.s. you can run the python scripts natively without compiling them (but there's no GUI); just follow the syntax displayed in the dos windows when you run the windows GUI and append those parameters to 'pdfread.py ', I think. It's been so long since I've had to do this...