534 Commits

Author SHA1 Message Date
Peter Williams
309e23f65d Merge branch 'master' of https://github.com/peterwilliams97/unidoc 2018-01-11 18:33:08 +11:00
Peter Williams
4a20c56de0 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Fix #131: Return error on pageNumber = 0
  Added SetForms to Creator
  Insert a space when TJ string is offset by more than a threshold
  Support for resampling images with BitsPerComponent != 8.
  dont encode glyphs when you only wrap
  Add support for specifying alternate image encoding/compression method (creator).
  Add commercial license to repository and full AGPL license text. Updated licensing text in README.
  Updated version
  Few fixes: Shadingtype 4 handling, inline image handling (compatibility), encoding name (compatibility)
  Improved CS handling with Separation, Lab color ranges.
  Fix in handling of indexed colorspace parsing inline images when using base=DeviceRGB rather than shortcut.  Closes #114.
  Support indexed cs in inline image. Fixes #113. Fixes in lab colorspace color processing.
  Allow array in DecodeParms in FlateDecoder of length 1 (containing dict).
  Fix problem with MultiEncoder DecodeParms.  Fixes #97.
  Limit maximum specified number of indirect objects when parsing xref stream.  Fixes #111.
  Error -> Debug log
2018-01-11 17:52:09 +11:00
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
Peter Williams
651ff90214 Set encoding when transforming patterns. Preserve SMasks when transforming image Xobjects 2018-01-11 16:25:04 +11:00
Peter Williams
6c3e49cd2d Merge remote-tracking branch 'upstream/master' 2018-01-10 11:47:00 +11:00
Gunnsteinn Hall
91660d88c4
Merge pull request #132 from Northern-Lights/master
Fix #131: Return error on pageNumber = 0
2017-12-27 20:39:36 +00:00
Armen Boursalian
6613014adf Fix #131: Return error on pageNumber = 0 2017-12-11 16:13:21 -08:00
Gunnsteinn Hall
978d94da33
Merge pull request #126 from drhoden/Fill_in_Form_Fields_Issue_18
Added SetForms to Creator, giving the ability to fill in form fields
2017-11-08 21:19:06 +00:00
Daniel Rhoden
f2fa55a63b Added SetForms to Creator 2017-11-08 14:54:59 -06:00
Gunnsteinn Hall
73394ee038
Merge pull request #124 from njwilson23/master
Insert a space when TJ string is offset by more than a threshold
2017-11-02 06:00:47 +00:00
Nat Wilson
30ff60a44e Insert a space when TJ string is offset by more than a threshold
That threshold is hard-coded as -100 (is this font specific?)
2017-10-29 10:55:21 -07:00
Gunnsteinn Hall
bdf676e045 Support for resampling images with BitsPerComponent != 8. 2017-10-21 15:30:40 +00:00
Gunnsteinn Hall
dce6d19cb1 Merge pull request #121 from mrsinham/master
Text wrapping : dont encode p.textLines
2017-09-22 10:52:17 +00:00
Julien Lefèvre
4f438e3fed dont encode glyphs when you only wrap 2017-09-22 10:57:16 +02:00
Gunnsteinn Hall
207d0ef510 Add support for specifying alternate image encoding/compression method (creator). 2017-09-05 21:37:23 +00:00
Gunnsteinn Hall
646329ff21 Initial support for composite fonts (Type0 and CIDFontType2).
Simplified creator paragraph handling of text encoding.
Character codes expanded to 16bit instead of 8bit.
2017-09-01 13:20:51 +00:00
Gunnsteinn Hall
81967a216b Add commercial license to repository and full AGPL license text. Updated licensing text in README. 2017-08-24 13:57:17 +00:00
Gunnsteinn Hall
e498030678 Updated version 2017-08-14 11:59:12 +00: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
144fa3f75b Improved CS handling with Separation, Lab color ranges. 2017-08-11 12:03:24 +00:00
Gunnsteinn Hall
e970ac4c84 Fix in handling of indexed colorspace parsing inline images when using base=DeviceRGB rather than shortcut. Closes #114. 2017-08-11 09:20:16 +00:00
Gunnsteinn Hall
50041f0a78 Support indexed cs in inline image. Fixes #113. Fixes in lab colorspace color processing.
Exported NewPdfColorspaceFromPdfObject so could use it from package
content stream.  Moving from dot imports.
2017-08-10 07:23:42 +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
4217f83fdd Merge pull request #109 from peterwilliams97/xmaster3
Make parseFloat behave like gs in contentstream handling
2017-08-08 07:34:44 +00:00
Peter Williams
2db7c72bb7 Merge remote-tracking branch 'upstream/master' into xmaster3 2017-08-08 15:44:25 +10:00
Peter Williams
47c329e93e Error -> Debug log 2017-08-08 15:43:11 +10:00
Peter Williams
59ba180df7 Merge remote-tracking branch 'upstream/master' into xmaster3 2017-08-08 11:45:20 +10:00
Gunnsteinn Hall
574e5b1933 Merging with recent pull request. 2017-08-07 20:30:29 +00:00
Gunnsteinn Hall
e2bfa9094a Fixing lab colorspace component input ranges. Fix Indexed cs Image to rgb conversion. 2017-08-07 20:21:35 +00:00
Gunnsteinn Hall
d015aa5cf6 Merge pull request #108 from peterwilliams97/xmaster2
Reimplementing dummy colorspaces. Lab colorspace range.
2017-08-07 20:21:22 +00:00
Peter Williams
9d09f7aa2a Make float parsing more like gs 2017-08-07 16:44:10 +10:00
Peter Williams
f840c1c77e Fixed Lab bounds 2017-08-07 16:42:07 +10: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
d3d0312170 Fix PS processing of dup operand. Fixes #98.
Added test cases to verify.
2017-08-06 18:53:24 +00: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
Gunnsteinn Hall
008469dfd2 Merge pull request #105 from peterwilliams97/xmaster
Fixed some bugs found while getting pdf_descibe.go to work
2017-08-05 12:56:16 +00:00
Peter Williams
a1e1e31fee Merge remote-tracking branch 'upstream/master' into xmaster 2017-08-05 21:25:07 +10:00
Gunnsteinn Hall
3261689684 Add GetObjectNums 2017-08-05 00:56:05 +00:00
Gunnsteinn Hall
22c2e5eb41 Address go vet issues 2017-08-04 22:50:28 +00:00
Gunnsteinn Hall
2adbc645ad Fix comment typo 2017-08-04 08:26:36 +00: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
b800238e36 Address golint recommendations in core 2017-08-03 15:33:51 +00:00
Gunnsteinn Hall
ad47c116aa Address core golint recommendations in crypt, io 2017-08-03 15:13:40 +00:00
Gunnsteinn Hall
a9f70a16ac Add check for base colorspace type when loading Indexed colorspace. Fixes #95. 2017-08-03 14:55:06 +00:00
Gunnsteinn Hall
714b4bcb60 Address more golint recommendations #89 2017-08-02 18:01:31 +00:00