Comments (3)
Which OS did you check it on? Can you run the app through terminal and share the error?
from invoicex-gui.
I did run it from a terminal (Is there any other way?). This is the error I got:
/mnt/DATA/src/invoicex-gui
[22:09:07 master*]
> python main.py
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
PdfReadWarning: Xref table not zero-indexed. ID numbers for objects will be corrected. [pdf.py:1736]
Traceback (most recent call last):
File "/mnt/DATA/src/invoicex-gui/invoicex/invoicex.py", line 302, in show_file_dialog
self.load_pdf_file()
File "/mnt/DATA/src/invoicex-gui/invoicex/invoicex.py", line 306, in load_pdf_file
if self.check_xml_for_pdf() is None:
File "/mnt/DATA/src/invoicex-gui/invoicex/invoicex.py", line 408, in check_xml_for_pdf
pdf_root = pdf.trailer['/Root']
File "/home/saga/.local/lib/python3.7/site-packages/PyPDF2/generic.py", line 516, in __getitem__
return dict.__getitem__(self, key).getObject()
File "/home/saga/.local/lib/python3.7/site-packages/PyPDF2/generic.py", line 178, in getObject
return self.pdf.getObject(self).getObject()
File "/home/saga/.local/lib/python3.7/site-packages/PyPDF2/pdf.py", line 1617, in getObject
raise utils.PdfReadError("file has not been decrypted")
PyPDF2.utils.PdfReadError: file has not been decrypted
[1] 9009 abort (core dumped) python main.py
All you need to do is prompt the user for password and decrypt the pdf like this:
if input.isEncrypted:
input.decrypt(pass)
You could try decrypting with an empty password(pass
set to ""
) at first and prompt the user only if the decrypt
call returns 0
Please let me know if you need any more info.
from invoicex-gui.
There was never support for encrypted pdfs and no plan to add it.
from invoicex-gui.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invoicex-gui.