Denys Smirnov
ef64bef191
core: permissions field is uint32 according to the spec
2018-10-08 00:18:18 +03:00
Denys Smirnov
acd4308d56
Merge branch 'refactor' into v3
...
# Conflicts:
# pdf/core/crypt.go
# pdf/model/writer.go
2018-09-26 01:08:19 +03:00
Denys Smirnov
b3c45a550a
core: refactor crypt filter selection code
2018-09-26 00:52:05 +03:00
Denys Smirnov
b7dcbc22de
core: fix standard crypt filter name; resolves issues with Adobe Reader
2018-09-19 23:48:50 +03:00
Denys Smirnov
eac1e899dc
core: allow to write documents with AES encryption
2018-09-19 06:02:15 +03:00
Denys Smirnov
d4b2490ea3
core: implement encryption algorithms 8-10; add tests for alg 8-13
2018-09-19 03:33:59 +03:00
Denys Smirnov
c08a13c234
core: optimize allocations for hash used in R=6
2018-09-16 17:10:04 +03:00
Denys Smirnov
8f4f1804b0
core: implement decoding of AESv3; resolves #30
2018-09-16 04:13:24 +03:00
Denys Smirnov
6510d0a853
core: algorithms 2a and 13 (decode file key and validate permissions)
2018-09-16 02:48:08 +03:00
Denys Smirnov
b76c8a56c4
core: implement algorithm 11 and 12 (password check for R=5 and R=6)
2018-09-16 00:34:13 +03:00
Gunnsteinn Hall
fc15ef442a
Cleaning up crossreferences - Unexporting, renaming, improving documentation
...
parser.Trace renamed to parser.Resolve
2018-07-14 14:07:33 +00:00
Gunnsteinn Hall
14ee80e1fe
Preserve and allow output of hexadecimal strings
...
Refactored PdfObjectString into a struct with bool flag for hex. Fixed any code broken by the change.
Unexported non-essential functions for crypto (not used by model). Can unexport more later or refactor to internal package.
2018-07-14 02:25:29 +00:00
Gunnsteinn Hall
9ff2413609
Add check to ensure stream length cannot be larger than file size. Test cases updated.
2017-07-23 12:21:42 +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
a8a2df0b90
Update tests
2017-01-03 15:36:32 +00:00
Gunnsteinn Hall
cc0bd7572f
Reduce logging to stdout
2016-12-05 11:47:38 +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