30 Commits

Author SHA1 Message Date
Peter Williams
e4adfd91a3 Merge branch 'master' of https://github.com/peterwilliams97/unidoc
* 'master' of https://github.com/peterwilliams97/unidoc: (50 commits)
  Fixing lab colorspace component input ranges.  Fix Indexed cs Image to rgb conversion.
  Make float parsing more like gs
  Fixed Lab bounds
  Added dummy encodings
  Added dummy encodings
  Fix PS processing of dup operand. Fixes #98.
  Check sizes for memory allocation based on pdf user inputs. Fixes #107.
  Check to avoid division by zero.  Fixes #106.
  Add GetObjectNums
  Address go vet issues
  Fix comment typo
  Fixed some bugs found while getting pdf_descibe.go to work
  Address golint recommendations in core
  Address core golint recommendations in crypt, io
  Add check for base colorspace type when loading Indexed colorspace.  Fixes #95.
  Address more golint recommendations  #89
  Checks on stated byte lengths in xref stream objects.  Closes #94.
  Address golint recommendations. Add TODO comments for recommended future refactoring work in next major release.
  Only attempt to load annotation from a valid indirect object for annotation Popup entries.  Fixes #91.
  Address godoc code block line wrapping
  ...
2018-01-11 17:43:17 +11: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
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
Peter Williams
a1e1e31fee Merge remote-tracking branch 'upstream/master' into xmaster 2017-08-05 21:25:07 +10:00
Peter Williams
141519790a Fixed some bugs found while getting pdf_descibe.go to work 2017-08-04 17:47:55 +10:00
Gunnsteinn Hall
5bc9d83bb1 Check to ensure row length cannot be greater than data length. Fixes #88. 2017-07-31 12:52:53 +00:00
Peter Williams
43ecf3b325 Merge remote-tracking branch 'upstream/v2' 2017-07-24 15:23:12 +10:00
Gunnsteinn Hall
7f83a4ea2f Add bounds check in crypt, parser. Avoid division by zero. 2017-07-23 20:20:05 +00:00
Peter Williams
a90bc37c48 small bug fixes 2017-07-23 12:58:09 +10: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
Peter Williams
01495b0d70 removed more cruft 2017-05-09 15:40:23 +10:00
Peter Williams
883bfefce6 Merge branch 'v2' of https://github.com/unidoc/unidoc into up_v2_dev
* 'v2' of https://github.com/unidoc/unidoc:
  Expanded support for forms, refactoring.
  Encoding fixes for images
  Fix Coords length bug for shading type 3
2017-05-03 13:38:05 +10:00
Gunnsteinn Hall
784a60e42b Encoding fixes for images
Support avg, paeth predictors for decoding. Special error flag for
unsupported error parameters. Support specifying encoder when creating
new image objects (inline,xobject).
2017-04-19 11:46:53 +00:00
Peter Williams
ecc9964df6 start predictor > 11 2017-04-18 16:20:25 +10:00
Gunnsteinn Hall
8ae4f6a63a Initial implementation of a simple graphics state handler / content stream processor. Multiple changes and fixes in colorspace handling. And more. 2017-03-14 13:04:51 +00:00
Gunnsteinn Hall
5e2931f493 Fix predictor handling for LZW too 2017-03-08 16:56:29 +00:00
Gunnsteinn Hall
fa47660fc6 Predictor encoding handling fix 2017-03-08 16:48:40 +00:00
Gunnsteinn Hall
74c0da0ad7 Part of last commit 2017-03-05 22:42:30 +00:00
Gunnsteinn Hall
61bcb5ad5f Fixes in some colorspace handling for images. Improved XObject form handling. 2017-03-04 17:27:23 +00:00
Gunnsteinn Hall
8a5ae9164a Fix encoder order in MultiEncoder 2017-03-02 12:49:25 +00:00
Gunnsteinn Hall
9247f5d954 Add Trace log level and change Debug to Trace where appropriate. Add log levels to Console logger. 2017-02-28 12:16:46 +00:00
Gunnsteinn Hall
3a6a4bea52 Support flate encoding with predictor 11 2017-02-28 08:58:14 +00:00
Gunnsteinn Hall
445d670f0c Fixes in image and colorspace handling.
DCTDecode filter implemented in core/encoding.go.  Various fixes here
and there.
2017-02-24 17:38:41 +00:00
Gunnsteinn Hall
b4c259460c Implemented ASCII85Decode filter 2017-02-23 15:25:23 +00:00
Gunnsteinn Hall
b8a3ec7180 Initial colorspace and functions support.
Implementation of ps parser for function type 4.  Function type 3 not
implemented yet and type 0 needs a better interpolation. Functions and
colorspaces need more testing.
2017-02-22 21:10:57 +00:00
Gunnsteinn Hall
5566df5057 Add multi encoding support (serial) and basic test case. Added line numbers to logs. 2017-02-13 20:35:42 +00:00
Gunnsteinn Hall
0e533ed292 Refactored encoding and stream support with interfaces. Added encoding support and encoding content streams for PDF generation. 2017-02-13 15:30:36 +00:00