716 Commits

Author SHA1 Message Date
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
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
Denys Smirnov
d73bd8d1d2 core: correctly handle encryption of xref streams and trailer fields 2018-09-26 04:54:00 +03:00
Gunnsteinn Hall
6cafab4121 Merge branch 'master' into v3 2018-09-25 23:37:11 +00:00
Gunnsteinn Hall
eb14686746
Merge pull request #218 from dennwc/v3
Pull changes from master to V3
2018-09-25 23:24:54 +00:00
Gunnsteinn Hall
6ff5fa3c02
Merge pull request #217 from dennwc/refactor
Refactor Crypt Filter Methods (CFM)
2018-09-25 23:22:26 +00:00
Denys Smirnov
760f58b954 core: add doc comments for CFMs 2018-09-26 02:16:17 +03:00
Denys Smirnov
4b01f8f6ae update code after merge with master 2018-09-26 01:46:13 +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
d551451585 core: move common code for object key generation to a separate function 2018-09-26 00:52:05 +03:00
Denys Smirnov
be03592b2a core: move CFM to separate structs that implement a common interface 2018-09-26 00:52:05 +03:00
Gunnsteinn Hall
2897197775
Merge pull request #209 from peterwilliams97/render.v3.hungarian
Don't return errors for TrueType font file tables with no PostScript …
2018-09-25 21:39:08 +00:00
Gunnsteinn Hall
f74acfdea0
Merge pull request #213 from adrg/paragraph-styles
Multi-style paragraphs
2018-09-25 20:43:36 +00:00
Adrian-George Bostan
24a8628bc2 Fix StyledParagraph calculated height inside table 2018-09-25 21:54:01 +03:00
Adrian-George Bostan
3885bb9e20 Fix StyledParagraph wrapping issue when used inside table cell 2018-09-25 21:15:20 +03:00
Adrian-George Bostan
9ffcdf7698 Merge branch 'paragraph-styles' of github.com:adrg/unidoc into paragraph-styles 2018-09-25 20:51:20 +03:00
Adrian-George Bostan
464489c657 Fix some comment typos 2018-09-25 20:48:50 +03:00
Gunnsteinn Hall
9d59d111aa
Merge branch 'master' into paragraph-styles 2018-09-25 17:31:25 +00:00
Gunnsteinn Hall
b8db74ac94 Add .gitattributes (ignore crlf) 2018-09-25 16:30:29 +00:00
Gunnsteinn Hall
9c99362aaf
Merge pull request #214 from dennwc/decrypt_xref
Do not decrypt XRef streams and "Encrypt" dictionary
2018-09-25 14:42:19 +00:00
Denys Smirnov
7b2f6a6aab core: do not decrypt XRef streams and the Encrypt dictionary; fix #205 2018-09-25 01:48:29 +03:00
Adrian-George Bostan
243be8720a Change division component test to include styled paragraphs 2018-09-24 20:11:02 +03:00
Adrian-George Bostan
922eebca98 Add test for the StyledParagraph component 2018-09-24 19:52:19 +03:00
Adrian-George Bostan
fdda96e870 Add comment to the styled paragraph Reset method 2018-09-24 19:51:42 +03:00
Adrian-George Bostan
660139b59a Make Division support the StyledParagraph component 2018-09-24 19:43:48 +03:00
Adrian-George Bostan
8e498d43c8 Change Division component comment 2018-09-24 18:53:14 +03:00
Adrian-George Bostan
2f30e325eb Add Reset method for the StyledParagraph component 2018-09-24 18:25:05 +03:00
Adrian-George Bostan
4ec03343b2 Add support for StyledParagraph in the division component 2018-09-24 18:07:24 +03:00
Adrian-George Bostan
4330ca3973 Fix text alignments for the Styled paragraph component 2018-09-24 18:05:07 +03:00
Adrian-George Bostan
c4f0bdb402 Remove right trailing space on paragraph text wrap 2018-09-24 17:34:45 +03:00
Adrian-George Bostan
f78e7d6633 Add Append method for the StyledParagraph component 2018-09-24 16:41:43 +03:00
Peter Williams
f953c11452 Don't return errors for TrueType font file tables with no PostScript entry in their "name" table.
This is needed for PDFs created with Tesseract.
2018-09-24 18:02:02 +10:00
Adrian-George Bostan
1b5b6fa31f Add StyleParagraph component 2018-09-23 17:58:33 +03:00
Adrian-George Bostan
0c17e10ba3 Add TextStyle structure 2018-09-23 17:58:18 +03:00
Gunnsteinn Hall
86988f5a2b
Merge pull request #201 from peterwilliams97/render.v3.hungarian
Render.v3.hungarian
2018-09-22 10:19:50 +00:00
Peter Williams
c76fa6985e Moved font cache from global variable to Extractor. 2018-09-22 09:28:18 +10:00
Peter Williams
69be54d501 Cleaned up some comments. 2018-09-21 16:43:10 +10:00
Peter Williams
75dfdb6f1c Use Standard14Font consistently for standard 14 font names. 2018-09-21 16:25:57 +10:00
Peter Williams
9ef892a83f Added tests for CMap creation 2018-09-21 15:39:31 +10:00
Denys Smirnov
8450ebcef6 core: use type switch instead of if statements in encode and decode 2018-09-20 02:00:01 +03:00
Gunnsteinn Hall
6f85ca4fa8
Merge pull request #204 from dennwc/aes3_encrypt
Implement AES encryption (128 and 256 bits)
2018-09-19 22:05:28 +00: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
839f9ea3bc core: fix padding for AESv3 2018-09-19 06:01:29 +03:00
Denys Smirnov
d424bc2b6d core: add MakeBool helper 2018-09-19 06:00:19 +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