196 Commits

Author SHA1 Message Date
Denys Smirnov
53687f854e Merge remote-tracking branch 'origin/v3' into extract.text
# Conflicts:
#	pdf/contentstream/processor.go
#	pdf/extractor/text.go
#	pdf/extractor/utils.go
#	pdf/internal/textencoding/winansi.go
#	pdf/model/font.go
#	pdf/model/font_composite.go
#	pdf/model/font_simple.go
#	pdf/model/font_test.go
#	pdf/model/fontfile.go
#	pdf/model/fonts/ttfparser.go
#	pdf/model/structures.go
2018-12-27 12:17:28 +02:00
Denys Smirnov
62420700db fix case typos in errors 2018-12-15 18:49:15 +05:00
Denys Smirnov
3687c83b37 errors should start with a lower case 2018-12-15 18:49:15 +05:00
Gunnsteinn Hall
1fe74f5116 Merge branch 'linter' of https://github.com/dennwc/unidoc into v3-dennwc-linter 2018-12-12 09:47:28 +00:00
Aleksei Pavliukov
e0f3189f5b Add PdfAppender 2018-12-11 18:51:07 +03:00
Denys Smirnov
3f7ad73812 refactor some receiver and method names; fix typos in comments 2018-12-11 04:37:00 +02:00
Denys Smirnov
0a8b46daff don't use generic receiver names; make sure receiver name is consistent 2018-12-09 21:47:15 +02:00
Denys Smirnov
9f0df8945d don't use XXX for TODOs 2018-12-09 21:39:11 +02:00
Denys Smirnov
6d2c39043c make sure comments begin with a type/function name 2018-12-09 20:22:33 +02:00
Denys Smirnov
e286eecac9 remove unused functions and globals; add todos for unused params 2018-12-09 19:37:07 +02:00
Denys Smirnov
99f3184879 define slices with a var instead of an empty literal 2018-12-09 19:28:50 +02:00
Gunnsteinn Hall
dc263c9820 Merge branch 'v3' into v3-peterwilliams97-extract.text.take2 2018-12-07 12:17:07 +00:00
Adrian-George Bostan
e89519d010 Add Clear method to PdfObjectArray 2018-11-28 21:24:20 +02:00
Peter Williams
92e3e455c2 Merge branch 'v3' of https://github.com/unidoc/unidoc into extract 2018-11-22 22:03:26 +11:00
Peter Williams
8b964f2008 Set font even when Tf operator is not between BT and ET. 2018-11-21 13:14:11 +11:00
Peter Williams
851aa267b1 Added test for position based text extraction 2018-11-12 11:04:09 +11:00
Peter Williams
85cb1db004 Fixed position sorting for text extraction for landscape text. 2018-11-10 21:19:02 +11:00
Denys Smirnov
7f8c6b65ae security: optimize alg2 function for R=4 2018-11-07 22:08:54 +02:00
Denys Smirnov
7521c7cee4 security: simplify paddedPass function for R=4 2018-11-07 22:08:54 +02:00
Denys Smirnov
95ec848145 security: validate input parameters and return proper errors 2018-11-07 22:08:54 +02:00
Peter Williams
3da4ffc5aa Merge 2018-11-01 21:33:51 +11:00
Gunnsteinn Hall
8007138bd3 Addressing PR 238 review comments 2018-10-23 11:43:02 +00:00
Peter Williams
45f6c09e39 Merge branch 'render.v3.hungarian' into extract 2018-10-19 10:05:02 +11:00
Peter Williams
ca4f928da5 Removed some debug code. 2018-10-18 21:56:06 +11:00
Peter Williams
3cdca483a3 Merge branch 'v3' of https://github.com/unidoc/unidoc into render.v3.hungarian 2018-10-15 19:15:37 +11:00
Gunnsteinn Hall
3454ec67dc Merge branch 'v3' into v3-enhance-forms 2018-10-13 11:32:20 +00:00
Samuel Melrose
7a641b09d2 Add Comments for Expose PDF Version #230 2018-10-09 10:40:02 +00:00
Denys Smirnov
5d09fa8cde crypt: handle length format violation for length=40 2018-10-08 18:35:33 +03:00
Samuel Melrose
d3cc236351 Expose PDF Version #230 2018-10-08 10:27:39 +00:00
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
3536d323fb Support MK appearance characteristics for certain styles. Wrap content stream to fix bugs. 2018-10-05 01:59:19 +00: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
2db0d18b8f Hack to suppress EOF errors when parsing PDF fragments in font_test.go 2018-10-01 16:47:09 +10:00
Aleksei Pavliukov
ea5dba8e0d Implemented : PDFs optimization 2018-09-30 01:01:31 +03:00
Gunnsteinn Hall
aea91f1ba9 Merge branch 'v3' into v3-enhance-forms 2018-09-29 16:59:16 +00:00
Gunnsteinn Hall
55bbc5c2ca Add function to make UTF16-BE encoded PdfObjectString - core.MakeEncodedString 2018-09-29 02:23:38 +00:00
Denys Smirnov
418b99b4d8 core: detect old copies of Encrypt dictionary; fix #215 2018-09-29 00:16:57 +03:00
Gunnsteinn Hall
e99b037340 PDFDocEncoding tests 2018-09-28 09:50:18 +00:00
Gunnsteinn Hall
6ec59ca86c Returnnot found when *PdfObjectInteger is nil 2018-09-28 09:50:04 +00:00
Denys Smirnov
d73bd8d1d2 core: correctly handle encryption of xref streams and trailer fields 2018-09-26 04:54:00 +03:00