Conversation
Codecov Report
@@ Coverage Diff @@
## main #910 +/- ##
==========================================
+ Coverage 77.81% 77.96% +0.15%
==========================================
Files 16 16
Lines 4327 4321 -6
Branches 812 815 +3
==========================================
+ Hits 3367 3369 +2
+ Misses 788 780 -8
Partials 172 172
Continue to review full report at Codecov.
|
|
Thank you for the PR ❤️ I can see where you're coming from / why you added it. I thought about this a couple of times myself as well. I'm torn between two philosophies here:
Looking at similar libraries:
What is your opinion @MasterOdin ? |
|
@MartinThoma pikepdf offers a I'm guessing that most people will always want to decrypt a PDF that's being read in before doing any other operations, I feel like baking it into the constructor makes sense. |
This is a convenience change. You can still call `reader = PdfReader("encrypted.pdf"); reader.decrypt(password)`.
Full credit to pubpub-zz; I just made stylistic changes.
Closes #910
Co-authored-by: pubpub-zz <4083478+pubpub-zz@users.noreply.github.com>
adding new optional parameter at PdfReader