655 Commits

Author SHA1 Message Date
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
Peter Williams
a27c6bbf90 Hack to suppress EOF errors when parsing PDF fragments in font_test.go 2018-10-01 16:51:13 +10:00
Peter Williams
5c2448d09f Added "T_h" ligature to glyph map. 2018-10-01 16:50:55 +10: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
Aleksei Pavliukov
ea5dba8e0d Implemented : PDFs optimization 2018-09-30 01:01:31 +03: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
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
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
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
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
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