761 Commits

Author SHA1 Message Date
Denys Smirnov
84284c88ec security: add missing license headers, more documentation 2018-10-08 01:04:56 +03:00
Denys Smirnov
7bd4ba688d core: split crypt filter methods into a separate package 2018-10-08 00:18:18 +03:00
Denys Smirnov
42df346e69 core: split security handlers into a separate package 2018-10-08 00:18:18 +03:00
Denys Smirnov
006e5f9e6e core: simplify decoding of Encrypt dictionary a bit with a helper 2018-10-08 00:18:18 +03:00
Denys Smirnov
68d20968d3 core: move encryption dictionary encoder and decoder to it's own type 2018-10-08 00:18:18 +03:00
Denys Smirnov
1c19ba9e96 core: decouple security handlers with different revisions from PdfCrypt 2018-10-08 00:18:18 +03:00
Denys Smirnov
7e9f3dd7e2 core: unexport remaining PdfCrypt methods 2018-10-08 00:18:18 +03:00
Denys Smirnov
fd9b3746de core: unexport remaining PdfCrypt fields 2018-10-08 00:18:18 +03:00
Denys Smirnov
bccaa87cdc core: refactor encryption and decryption types 2018-10-08 00:18:18 +03:00
Denys Smirnov
b5288e7ddc core: change permissions type to a bitmask 2018-10-08 00:18:18 +03:00
Denys Smirnov
ef64bef191 core: permissions field is uint32 according to the spec 2018-10-08 00:18:18 +03:00
Gunnsteinn Hall
b83a999d71
Merge pull request #226 from adrg/toc
Add TOC component
2018-10-05 11:25:52 +00:00
Adrian-George Bostan
bd00223038 Add sample code for setting TOC style in the creator test 2018-10-04 19:11:18 +03:00
Adrian-George Bostan
8498e75605 Add SetLineStyle method to set the style for all components of new TOC lines 2018-10-04 18:57:58 +03:00
Adrian-George Bostan
a138079f11 Add SetStyle method to set the style for all components of the TOC line 2018-10-04 18:57:19 +03:00
Adrian-George Bostan
f0f9d3a482 Add example of manual wrapping for TOC line 2018-10-04 18:23:05 +03:00
Adrian-George Bostan
287b6e29ca Add SetTOC method to the creator 2018-10-04 18:00:43 +03:00
Adrian-George Bostan
89965a3784 Add TOC getter on the creator 2018-10-03 20:03:06 +03:00
Adrian-George Bostan
b52907f4b8 Show table of contents in creator test 2018-10-03 19:40:25 +03:00
Adrian-George Bostan
c4fabc876f Adapt creator test to use the AddTOC property 2018-10-03 19:28:54 +03:00
Adrian-George Bostan
5d465c8aad Add creator AddTOC property 2018-10-03 19:25:48 +03:00
Adrian-George Bostan
7728bd6a0b Adapt creator test in order to use the new TOC component 2018-10-03 18:48:48 +03:00
Adrian-George Bostan
d3538accbb Remove TableOfContents and replace it with the new TOC component 2018-10-03 18:32:42 +03:00
Adrian-George Bostan
4ea74cca3e Merge remote-tracking branch 'upstream/v3' into toc 2018-10-03 17:37:19 +03:00
Gunnsteinn Hall
8477b05897
Merge pull request #225 from a5i/v3-fix-combine-objects
Fix combine objects optimizations
2018-10-03 09:45:03 +00:00
Aleksei Pavliukov
364e8c871f Fix combine objects optimizations 2018-10-03 01:58:03 +03:00
Adrian-George Bostan
8aef464dea Write additional documentation comments for the TOC components 2018-10-01 22:05:27 +03:00
Adrian-George Bostan
907671ff2c Improve documentation comments 2018-10-01 21:53:32 +03:00
Adrian-George Bostan
e08c5bd27b Test more functionality of the TOC component 2018-10-01 21:41:20 +03:00
Adrian-George Bostan
025332b9d4 Set new line styles only for new lines 2018-10-01 21:40:51 +03:00
Adrian-George Bostan
9df55c5c3f Improve TOC test 2018-10-01 21:25:20 +03:00
Adrian-George Bostan
6b02f45d07 Add table of contents test 2018-10-01 21:20:03 +03:00
Adrian-George Bostan
9b497cb180 Fix golint notices 2018-10-01 21:19:20 +03:00
Gunnsteinn Hall
8be0c2cf5a Added package test for optimize - showcasing an issue 2018-09-30 23:58:56 +00:00
Gunnsteinn Hall
e059440204 Fix if encryptObj not set 2018-09-30 18:45:35 +00:00
Gunnsteinn Hall
4068ea6130 Fix problem with encryptObject having incorrect reference in trailer due to copying 2018-09-30 18:38:50 +00:00
Adrian-George Bostan
f2148ba69f Improve TOC component interface 2018-09-30 19:53:06 +03:00
Adrian-George Bostan
5be78fa40a Improve comments for the styled paragraph component 2018-09-30 19:52:30 +03:00
Adrian-George Bostan
6819172880 Add documentation comments for the TOC and TOCLine components. 2018-09-30 19:26:11 +03:00
Adrian-George Bostan
195e01888b Add TOC component 2018-09-30 19:06:08 +03:00
Gunnsteinn Hall
38dae76b5d Added verification to creator TestEncrypt1 test case 2018-09-30 11:41:57 +00:00
Gunnsteinn Hall
3abcefae62
Merge pull request #208 from a5i/v3-pdf-optimization
Implemented : PDFs optimization
2018-09-30 09:10:56 +00:00
Aleksei Pavliukov
ea5dba8e0d Implemented : PDFs optimization 2018-09-30 01:01:31 +03:00
Gunnsteinn Hall
6a6a387faa
Merge pull request #220 from dennwc/fix_encrypt_dup
Detect old copies of Encrypt dictionary
2018-09-28 22:12:53 +00:00
Denys Smirnov
418b99b4d8 core: detect old copies of Encrypt dictionary; fix #215 2018-09-29 00:16:57 +03:00
Adrian-George Bostan
b8e212e14a Rename toc.go to table_of_contents.go 2018-09-28 19:55:11 +03:00
Adrian-George Bostan
2b89ddedfc Add margin support for the TOCLine component 2018-09-28 19:54:09 +03:00
Adrian-George Bostan
c62dbd3c51 Make members of table of contents line component public 2018-09-28 19:30:46 +03:00
Adrian-George Bostan
138b240ae2 Add TOCLine component 2018-09-27 20:55:58 +03:00
Gunnsteinn Hall
375dd5cebd
Merge pull request #219 from dennwc/fix_aes_pad
Correctly handle decryption of XRef streams and trailer fields
2018-09-26 11:49:10 +00:00