57 Commits

Author SHA1 Message Date
Adrian-George Bostan
e063f17f78 Optimize WriteString method for primitive objects 2019-03-11 21:38:25 +02:00
Gunnsteinn Hall
e93ffb25f4
Merge branch 'v3' into v3-a5i-pdf-sign 2019-02-18 21:58:35 +00:00
Maciej Lisiewski
f03fb61ad2 Reduce memory thrashing when optimizing large PDFs 2019-02-15 15:50:57 -05:00
Gunnsteinn Hall
37ea366321 Cleanup and adding comments. Added check to avoid panics on nil pointers. 2019-01-17 22:46:01 +00:00
Gunnsteinn Hall
236f76564a Merge in master 2019-01-10 23:28:03 +00:00
Gunnsteinn Hall
0bfde3f224 Address PR comments 2019-01-10 21:43:38 +00: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
6d2c39043c make sure comments begin with a type/function name 2018-12-09 20:22:33 +02:00
Denys Smirnov
99f3184879 define slices with a var instead of an empty literal 2018-12-09 19:28:50 +02:00
Adrian-George Bostan
e89519d010 Add Clear method to PdfObjectArray 2018-11-28 21:24:20 +02:00
Gunnsteinn Hall
35bd354314 Fix for #188 based on #186 and #187. Cleaned up and simplified according to style guide. 2018-10-23 14:16:02 +00:00
Gunnsteinn Hall
8007138bd3 Addressing PR 238 review comments 2018-10-23 11:43:02 +00:00
Gunnsteinn Hall
3454ec67dc Merge branch 'v3' into v3-enhance-forms 2018-10-13 11:32:20 +00:00
Denys Smirnov
006e5f9e6e core: simplify decoding of Encrypt dictionary a bit with a helper 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
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
Gunnsteinn Hall
6ec59ca86c Returnnot found when *PdfObjectInteger is nil 2018-09-28 09:50:04 +00: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
d424bc2b6d core: add MakeBool helper 2018-09-19 06:00:19 +03:00
Gunnsteinn Hall
9efa91168d Fix for building acroform ToPdfObject 2018-09-16 17:56:03 +00:00
Peter Williams
cc4f64fa98 small tidy up 2018-08-21 12:43:51 +10:00
Gunnsteinn Hall
c3c6eaa1e6 Add modified crypto dependencies to internal: pkcs7, x509, x509/pkix, asn1 packages - more lenient. Minor fixes. 2018-08-15 18:50:32 +00:00
Gunnsteinn Hall
d1f2f280aa Add ToInt64Slice convenience function to PdfObjectArray 2018-08-15 11:33:48 +00:00
Gunnsteinn Hall
2cc0c74b80 Avoid endless loop when parsing operand in contenstream. Fixes #176 2018-08-09 22:51:21 +00:00
Gunnsteinn Hall
01cd086550 Clear page dictionary prior to building. Add dictionary clear method 2018-08-07 20:51:15 +00:00
Gunnsteinn Hall
033b11df86 Support PDFDocEncoding and UTF16 decoding as per #175 2018-08-03 21:19:17 +00:00
Gunnsteinn Hall
7bac3c779c Merge branch 'v3' into enhance-forms 2018-08-03 21:15:21 +00:00
Peter Williams
84a4e0ebbf Removed GetArrayVal 2018-07-25 13:19:09 +10:00
Peter Williams
b1cf3494f7 Removed naked returns. Fixed godoc. Reorganized object extractors 2018-07-25 12:00:49 +10:00
Peter Williams
990a56dc01 fixed typo 2018-07-22 16:00:45 +10:00
Peter Williams
bb3d219355 cleaned up comments 2018-07-22 12:47:38 +10:00
Peter Williams
502836666d Merge remote-tracking branch 'upstream/v3' into render.v3 2018-07-21 21:20:39 +10:00
Gunnsteinn Hall
0435dff983 Merge branch 'v3' into enhance-forms 2018-07-15 20:17:02 +00:00
Gunnsteinn Hall
5b1b9bd504 PdfObjectArray change to struct and receivers added Elements, Get, Set, Len. Fixes to resulting broken code. 2018-07-15 17:52:53 +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
5e9ff8d3ca Helper functions for PdfObject conversions 2018-07-14 02:14:31 +00:00
Gunnsteinn Hall
3bd7800729 Helper functions for dictionary 2018-07-08 09:58:54 +00:00
Peter Williams
759a1dd882 changes left out of last commit 2018-06-27 16:46:33 +10:00
Gunnsteinn Hall
791e1d2015 Capability to trace references in Get functions for dictionary and array getters (called GetDirect - experimental). 2018-06-18 15:23:06 +00:00
Gunnsteinn Hall
4548fd56a5 Add Len and Get methods to PdfObjectArray 2018-06-02 16:13:03 +00:00
Gunnsteinn Hall
b800238e36 Address golint recommendations in core 2017-08-03 15:33:51 +00:00
Gunnsteinn Hall
28aea0d8d7 Address golint recommendations. Add TODO comments for recommended future refactoring work in next major release. 2017-08-02 12:56:32 +00:00
Gunnsteinn Hall
469856432b Fix fuzz-detected problem where stream length referring to stream itself (with a test case to verify) 2017-07-21 21:31:23 +00:00
Gunnsteinn Hall
825c10fc3e Fix in adding dash via content stream creator 2017-07-11 13:09:52 +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