73 Commits

Author SHA1 Message Date
Gunnsteinn Hall
e63a74cc9c Merge branch 'master' into v3-merge-master-in 2018-09-06 09:45:04 +00:00
Sakib Sami
44e98e2ced
Merge branch 'v3' into master 2018-08-14 01:56:45 +06:00
Sakib Sami
e879b00d57 - updated : Comments to godoc style 2018-08-13 23:36:22 +06:00
Sakib Sami
4e8d9d8e47 - Updated : SetBorderStyleMethod
- updated : Comments to godoc style
2018-08-13 01:58:28 +06:00
Gunnsteinn Hall
2cc0c74b80 Avoid endless loop when parsing operand in contenstream. Fixes #176 2018-08-09 22:51:21 +00:00
Gunnsteinn Hall
38157c3a51 Fix border corners and BasicLine Draw 2018-08-08 14:48:01 +00:00
Sakib Sami
c024c237d2 - Added : BorderTest 2018-08-08 08:09:06 +06:00
Sakib Sami
bf0a51ea71 - Added : Color for basic line 2018-08-04 02:07:06 +06:00
Sakib Sami
9184246eb1 - Added : Code cleanup 2018-08-04 02:03:15 +06:00
Sakib Sami
f823d3b37e - Added : Code cleanup 2018-08-04 00:51:37 +06:00
Sakib Sami
a3518f5d5e - Added : BasicLine with test 2018-08-04 00:37:28 +06:00
Gunnsteinn Hall
96f358543a Remove unintended BasicLine in draw 2018-08-03 10:26:45 +00:00
Gunnsteinn Hall
a487f6848a godoc and golint fixes 2018-08-03 10:18:08 +00:00
Gunnsteinn Hall
6056cf828d remove dot import and address golint in contentstream 2018-08-03 10:17:06 +00:00
Gunnsteinn Hall
6c34f32c7f Updating headers and package descriptions 2018-08-03 10:15:42 +00:00
Sakib Sami
efd877ea7b - Development ongoing P1 2018-08-02 22:45:41 +06:00
Sakib Sami
f028da2dc4 Updated : Code cleanup 2018-07-23 22:40:58 +06:00
Sakib Sami
60a495f2e9 Updated : Code cleanup 2018-07-21 21:02:55 +06: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
Sakib Sami
4e0fb862d9 Added : Double border 2018-07-06 21:11:34 +06:00
Sakib Sami
95da125815 Fix : Border side creation 2018-06-30 00:15:51 +06:00
Sakib Sami
1f106775b4 Improvement : Design, Code refactoring 2018-06-29 23:55:23 +06:00
Sakib Sami
a0c3f57e4a Fix : Dashed Line && Control on Border 2018-06-25 00:30:32 +06:00
Sakib Sami
a7ee5dcb78 Fix : Dashed Line 2018-06-21 01:34:18 +06:00
Sakib Sami
e414e291ab Fix : Dashed Line 2018-06-12 03:56:57 +06:00
Sakib Sami
8ac0d45e2f Implemented : Dashed Line 2018-06-12 03:55:27 +06:00
Sakib Sami
0feaca4aea Implemented : Dashed Line 2018-06-12 03:41:33 +06:00
Gunnsteinn Hall
5b17c89af4 Fix for D/Decode operand. Fixes #149 2018-03-22 14:27:17 +00:00
Gunnsteinn Hall
817ea404b9 Extractor package with powerful text extraction capabilities and CMap handling. Closes #17 2018-03-22 13:01:04 +00:00
Kevin Burke
1726a4708c
ExtractText: handle text matrix (Tm) boxes
Previously Tm boxes would have their text extracted, but with no
formatting information between boxes. Now, if a box is lower on the
page than has previously been recorded, we insert a newline, and if
a box is further to the right on the same line than a previous box, we
insert a tab character.

This works well enough for parsing Clipper Card transaction histories.
You can see an example at https://clipper-csv.appspot.com.

Fixes #141.
2018-03-17 12:45:12 -07: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
b3e300884f Few fixes: Shadingtype 4 handling, inline image handling (compatibility), encoding name (compatibility) 2017-08-14 11:56:33 +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
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
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
Peter Williams
9d09f7aa2a Make float parsing more like gs 2017-08-07 16:44:10 +10:00
Peter Williams
38fa0f1fb4 Added dummy encodings 2017-08-07 13:34:19 +10:00
Peter Williams
a1e1e31fee Merge remote-tracking branch 'upstream/master' into xmaster 2017-08-05 21:25:07 +10: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
badce2938f Address gofmt simplify items 2017-07-31 14:54:14 +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
Gunnsteinn Hall
be629aecbf Add convenience functions in Content stream creator 2017-07-01 21:57:31 +00:00
Gunnsteinn Hall
f13acfe276 Expose Operations function 2017-06-29 13:51:22 +00:00