119 Commits

Author SHA1 Message Date
Gunnsteinn Hall
9efa91168d Fix for building acroform ToPdfObject 2018-09-16 17:56:03 +00:00
Gunnsteinn Hall
31ffe3158d Clean up validation code and loading of signature dictionary as model 2018-08-16 17:39:51 +00: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
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
Gunnsteinn Hall
68a1dee9f2 Fix minimal parsing testcase 2018-08-03 11:01:54 +00:00
Gunnsteinn Hall
c9ec3ff8d9 godoc fix 2018-08-03 10:17:17 +00:00
Gunnsteinn Hall
cc44dd2552 Merge branch 'master' into v3 2018-08-01 22:04:27 +00:00
Gunnsteinn Hall
7fe68915cc Disable trace logging when running tests 2018-08-01 13:19:05 +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
Peter Williams
c489d4630c Added some logging 2018-07-21 08:43:03 +10:00
Peter Williams
96dba88f57 Added a test for CharcodeBytesToUnicode for TrueType fonts with ToUnicode cmaps 2018-07-17 17:43:11 +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
Peter Williams
6582182078 reduced differences with compositefont branch 2018-07-15 16:28:56 +10:00
Gunnsteinn Hall
fc15ef442a Cleaning up crossreferences - Unexporting, renaming, improving documentation
parser.Trace renamed to parser.Resolve
2018-07-14 14:07:33 +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
Peter Williams
bc1e9ae7b5 Refactored font code to improve text extraction 2018-07-13 17:40:27 +10:00
Gunnsteinn Hall
3bd7800729 Helper functions for dictionary 2018-07-08 09:58:54 +00:00
Peter Williams
33079bbb72 Parse FontFile entry in FontDescriptor 2018-07-03 14:26:42 +10:00
Peter Williams
c6f7cf9eef Got Type0 font -> obj -> font test passing 2018-06-29 18:09:44 +10:00
Peter Williams
638c3557ce Exposed PDF version reporting to callers 2018-06-28 11:37:57 +10:00
Peter Williams
347c2ee0e4 Reducing the number of types of errors returned 2018-06-28 11:13:19 +10:00
Peter Williams
759a1dd882 changes left out of last commit 2018-06-27 16:46:33 +10:00
Peter Williams
d184031903 Updated the text extractor to use the new font code 2018-06-27 16:31:28 +10:00
Peter Williams
5bd3d88645 fixed some comments 2018-06-27 14:34:42 +10:00
Peter Williams
199a74dbd8 Major changes to font code
- Added Type1 font parsing.
- Added Standard 14 font parsing.
- Fixed some bugs in cmap code.
- Started re-structuring of font code. Moved common font fields to `fontSkeleton`
2018-06-27 12:25:59 +10:00
Gunnsteinn Hall
11ec4d42e3 Basic testing for form field models. Useful test functions added. 2018-06-18 15:26:29 +00: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
3b89a0ba98 Fixes #157 2018-05-20 23:33:24 +00:00
qz
b7efd634fe Parser crude optimizations.
- parsing functions how collect results in bytes.Buffer
- added benchmarks
- parseHexString avoids calling skipSpace
2018-03-20 04:37:12 +03:00
qz
3f7e07ac9e fixes #144, using bytes.Buffer for more efficient string building 2018-03-05 13:04:27 +03:00
Gunnsteinn Hall
b3e300884f Few fixes: Shadingtype 4 handling, inline image handling (compatibility), encoding name (compatibility) 2017-08-14 11:56:33 +00:00
Gunnsteinn Hall
d234fec92e Allow array in DecodeParms in FlateDecoder of length 1 (containing dict). 2017-08-09 18:09:30 +00:00
Gunnsteinn Hall
cc6883d0ae Fix problem with MultiEncoder DecodeParms. Fixes #97. 2017-08-09 17:43:25 +00:00
Gunnsteinn Hall
9e04cbd144 Limit maximum specified number of indirect objects when parsing xref stream. Fixes #111. 2017-08-08 17:35:06 +00:00
Gunnsteinn Hall
574e5b1933 Merging with recent pull request. 2017-08-07 20:30:29 +00:00
Peter Williams
a96a007238 Merge remote-tracking branch 'upstream/master' into xmaster2 2017-08-07 13:57:07 +10:00
Peter Williams
2bd4a0a995 Added dummy encodings 2017-08-07 13:36:39 +10:00
Peter Williams
38fa0f1fb4 Added dummy encodings 2017-08-07 13:34:19 +10:00
Gunnsteinn Hall
07289e3890 Check sizes for memory allocation based on pdf user inputs. Fixes #107. 2017-08-06 11:41:33 +00:00
Gunnsteinn Hall
9ec828c8f7 Check to avoid division by zero. Fixes #106. 2017-08-06 11:28:39 +00:00