21 Commits

Author SHA1 Message Date
Gunnsteinn Hall
b2bb6d9836 Fixed problem found by fuzzing when Encrypt pointing to invalid reference 2017-07-22 16:44:42 +00:00
Gunnsteinn Hall
6e30b10029 Prevent recursive loop errors while tracing stream Lengths. Test case included. Fixes #80. 2017-07-22 12:11:58 +00:00
Gunnsteinn Hall
1cf2ac4a98 Fix error return value 2017-07-22 11:17:48 +00:00
Gunnsteinn Hall
469856432b Fix fuzz-detected problem where stream length referring to stream itself (with a test case to verify) 2017-07-21 21:31:23 +00:00
Gunnsteinn Hall
1769c68234 Add type check for Size in trailer. Fixes #77 2017-07-21 14:18:35 +00:00
Gunnsteinn Hall
71807ecfa4 Exposed a reader function to check access rights. Fixed incorrect bit name for AccessPermissions (LimitPrintQuality->FullPrintQuality). Fix in owner password authentication. Closes #51. 2017-07-12 09:48:16 +00:00
Gunnsteinn Hall
10c3be8c95 Change PdfObjectDictionary from map to struct and introduce ordered keys. Syntax change. Fixes all around to accommodate changes. Also fixes in test cases. Closes #56. 2017-07-08 21:04:13 +00:00
Gunnsteinn Hall
5c5ad1bc14 Enhancements to tolerate more malformed PDFs. Fixes #47 2017-04-27 22:25:00 +00:00
Gunnsteinn Hall
532f564b3a EOF marker seek more forgiving #46 2017-04-26 08:53:18 +00:00
Gunnsteinn Hall
90caacec66 Improved crypto handling for encrypt dicts with references 2017-03-29 15:54:50 +00:00
Gunnsteinn Hall
0e56876030 Repair for broken pdfs with too long stream lengths 2017-03-08 19:59:29 +00:00
Gunnsteinn Hall
c599f8decc Fix package comments 2017-03-02 12:49:42 +00:00
Gunnsteinn Hall
9247f5d954 Add Trace log level and change Debug to Trace where appropriate. Add log levels to Console logger. 2017-02-28 12:16:46 +00:00
Gunnsteinn Hall
f1ada05914 Support parsing and getting the actual version number and changing the output PDF version 2017-02-28 08:58:50 +00:00
Gunnsteinn Hall
80fa077d15 1) Fix trailer dict parsing bug, 2) Get Read/Write OCProps, 3) Read/Write Page Resource Properties 2017-02-15 14:21:20 +00:00
Gunnsteinn Hall
765c30efa4 Fix bug with comments within indirect objects
Add some more debugs which can be helpful for troubleshooting
problematic pdf files
2017-01-12 12:23:28 +00:00
Gunnsteinn Hall
4693588a5f Fix for stream delimiting 2017-01-09 22:00:26 +00:00
Gunnsteinn Hall
36ba97ca37 Fix bug with stream in rare malformant PDF cases 2016-12-13 19:39:23 +00:00
Gunnsteinn Hall
1564f8ab06 Updates and fixes from master merged in 2016-12-02 15:17:19 +00:00
Gunnsteinn Hall
f358b3e26f Refactoring in progress
Currently compiles with tests, but not fully functional yet.
2016-09-09 15:02:52 +00:00
Gunnsteinn Hall
19fd98d667 Refactoring into core and model. (in process)
As the package was growing large, there is a need to clean up.  Testing
to refactor into a core (basic pdf parsing and primitive objects) and a
higher level model package.
2016-09-08 17:53:45 +00:00