136 Commits

Author SHA1 Message Date
Peter Williams
efaadcae4f Use standard conventions for cmap names 2018-06-27 14:22:47 +10:00
Peter Williams
fa19666a38 Added missing const 2018-06-27 12:52:14 +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
ce9c6ba114 Merge branch 'master' into compositefonts 2018-06-07 14:55:37 +00:00
Gunnsteinn Hall
a1a95012ea Shading support function arrays 2018-05-22 12:56:40 +00:00
Peter Williams
608b2bf51e check that SMask is PdfObjectStream 2018-05-05 18:07:09 +10:00
Peter Williams
079d85779d fixed typo 2018-05-05 17:45:18 +10:00
Peter Williams
695f022baa No longer break GetContentStream() API backwards compatibility 2018-05-04 15:41:23 +10:00
Peter Williams
4b2d244fe0 When converting XImage objects to grayscale, also set the Matts of their SMask images to grayscale if they have SMasks 2018-05-02 17:14:31 +10:00
Peter Williams
df58e3e5bd Merge branch 'master' of https://github.com/unidoc/unidoc 2018-04-27 10:06:57 +10:00
Peter Williams
6692c21b74 Don't reuse parts of old objects 2018-04-27 10:06:36 +10:00
qz
14587fd738 type conversion consistent with project style 2018-04-18 09:09:29 +03:00
qz
bf5496aa8d page Resources can be loaded from indirect object 2018-04-11 21:47:48 +03:00
Gunnsteinn Hall
695bd434a3
Merge pull request #138 from emmanuel-florent/master
Add func NewPdfAnnotationWidget() *PdfAnnotationWidget
2018-03-21 10:34:10 +00:00
Gunnsteinn Hall
51f575080a Licensing updates 2018-02-23 14:07:26 +00:00
Emmanuel Florent
f3adc44a4f Add func NewPdfAnnotationWidget() *PdfAnnotationWidget
AnnotationWidget are usefull for adding Signature widgets
2018-01-28 09:54:01 +01:00
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
Armen Boursalian
6613014adf Fix #131: Return error on pageNumber = 0 2017-12-11 16:13:21 -08:00
Gunnsteinn Hall
bdf676e045 Support for resampling images with BitsPerComponent != 8. 2017-10-21 15:30:40 +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
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
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
e2bfa9094a Fixing lab colorspace component input ranges. Fix Indexed cs Image to rgb conversion. 2017-08-07 20:21:35 +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
Peter Williams
141519790a Fixed some bugs found while getting pdf_descibe.go to work 2017-08-04 17:47:55 +10: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
30ffbe3cbe Only attempt to load annotation from a valid indirect object for annotation Popup entries. Fixes #91. 2017-08-01 15:21:33 +00:00
Gunnsteinn Hall
badce2938f Address gofmt simplify items 2017-07-31 14:54:14 +00:00
Gunnsteinn Hall
ee23f22df6 Use build flag unidev to build development utils 2017-07-25 16:36:32 +00:00
Gunnsteinn Hall
25e3cd3710 Move utility go programs into separate folders to bypass main redeclared issue 2017-07-25 16:26:36 +00:00
Peter Williams
43ecf3b325 Merge remote-tracking branch 'upstream/v2' 2017-07-24 15:23:12 +10:00
Peter Williams
71a346dfde Merge branch 'up_v2_dev' 2017-07-23 14:35:33 +10:00
Peter Williams
a90bc37c48 small bug fixes 2017-07-23 12:58:09 +10:00
Gunnsteinn Hall
5f506b7427 Fix fuzzy problems with crossrefs and add a recursive loop guard in reader (page building). Added test cases for these issues. 2017-07-21 14:12:37 +00:00
Gunnsteinn Hall
34ef014405 Fix winansi encoding for hyphen character 2017-07-17 15:10:42 +00:00
Gunnsteinn Hall
71807ecfa4 Exposed a reader function to check access rights. Fixed incorrect bit name for AccessPermissions (LimitPrintQuality->FullPrintQuality). Fix in owner password authentication. Closes #51. 2017-07-12 09:48:16 +00:00
Gunnsteinn Hall
85cd1d21f8 Move license to common. 2017-07-11 13:08:48 +00:00
Gunnsteinn Hall
5ce423ffcd Cleaned up text encoding interface and rune<->glyph conversions. Added test example for Symbol and ZapfDingbats font/encodings. Closes #59. 2017-07-10 15:17:46 +00:00
Gunnsteinn Hall
ca74ee87a1 Add Symbol font encoder and test example case for symbol font use 2017-07-09 22:37:05 +00:00
Gunnsteinn Hall
c6e7b8c62f Add standard 14 fonts support 2017-07-08 23:09:52 +00:00
Gunnsteinn Hall
1a5c918307 License package added to v2. 2017-07-08 22:00:11 +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
Gunnsteinn Hall
ced03e48ee Table of contents generating function added. Exported some methods so drawables can be created externally. 2017-07-06 16:26:22 +00:00
Gunnsteinn Hall
1a5c3eb4ac Initial import of PDF creator with text, image adding capabilities 2017-07-05 23:10:57 +00:00