Hey!
I just came across this tool and really was hoping it would work, but alas something seems to have broken in the last 2 years. Some of the PDFs are coming out entirely white when I check them in chrome, and every page of their conversion looks like this:
. Each page is also only 1kb in size, which doesn't seem right. I have also attached a sample PDF if that helps. I did have to change the following code from
|
# This is a quick fix to check whether we can use pyPdf (depreciated) or PyPDF2 |
|
import pip |
|
installed_packages = pip.get_installed_distributions() |
|
flat_installed_packages = [package.project_name for package in installed_packages] |
|
|
|
if 'PyPDF2' in flat_installed_packages: |
|
from PyPDF2 import PdfFileWriter, PdfFileReader |
|
elif 'pyPdf' in flat_installed_packages: |
|
from PyPDF2 import PdfFileWriter, PdfFileReader |
to
# This is a quick fix to check whether we can use pyPdf (depreciated) or PyPDF2
import pip
from PyPDF2 import PdfFileWriter, PdfFileReader
since the call to pip.get_installed_distributions() was erroring and the internet said that you can't call methods on pip from inside your code for some reason. However, it does seem to be working mostly, which is strange and a bit worrisome.
Combined PDF:
20180118_-_Ch.14-_History_Notes.pdf
Functional Page: page1.pdf
If you could help me, I would be very appreciative, but if this project is totally dead, then I understand. Either way, thanks!
EDIT: Looked into it more, that one document is a really weird page size. Could that be it?
Hey!
. Each page is also only 1kb in size, which doesn't seem right. I have also attached a sample PDF if that helps. I did have to change the following code from
I just came across this tool and really was hoping it would work, but alas something seems to have broken in the last 2 years. Some of the PDFs are coming out entirely white when I check them in chrome, and every page of their conversion looks like this:
squid_decoder/papyrus.py
Lines 15 to 23 in a5992bc
to
since the call to
pip.get_installed_distributions()was erroring and the internet said that you can't call methods on pip from inside your code for some reason. However, it does seem to be working mostly, which is strange and a bit worrisome.Combined PDF:
20180118_-_Ch.14-_History_Notes.pdf
Functional Page: page1.pdf
If you could help me, I would be very appreciative, but if this project is totally dead, then I understand. Either way, thanks!
EDIT: Looked into it more, that one document is a really weird page size. Could that be it?