109 Commits

Author SHA1 Message Date
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
Gunnsteinn Hall
3586509908 Add functions to wrap content state (q..Q). Fix TJ.
Changes function syntax to use *ContentStreamOperations so can change
state.
2017-06-28 15:13:37 +00:00
Gunnsteinn Hall
ef6e7bc8ff Fix minor rect rendering issue 2017-06-02 12:03:51 +00:00
Gunnsteinn Hall
057c437d1e Fix circle rendering (endings) 2017-05-29 17:39:54 +00:00
Gunnsteinn Hall
b8ac08aaa5 Added line, rect, circle drawing routines into draw package (refactored from annotator). 2017-05-28 14:43:18 +00:00
Gunnsteinn Hall
4e678439d6 Fix in text operand TL 2017-05-26 12:28:48 +00:00
Gunnsteinn Hall
5a7469958d Text generating operators in content creator. Some refactoring of annotator. 2017-05-24 21:43:32 +00:00
Gunnsteinn Hall
36aaf59139 Add Do function to content creator 2017-05-20 14:01:44 +00: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
Gunnsteinn Hall
89b36f338b Annotations support for rectangle and ellipses with appearance stream in annotator. 2017-04-12 21:37:20 +00:00
Gunnsteinn Hall
80c33cc810 Fixes in inline image parsing and outputting. 2017-04-12 11:21:32 +00:00
Gunnsteinn Hall
88d1f6283f Initial prototype for annotator and draw packages for creating annotations and drawing paths for content stream creation. 2017-04-09 16:49:15 +00:00
Gunnsteinn Hall
e3c90b85b7 Cleaning up comments etc. 2017-04-05 18:05:38 +00:00
Gunnsteinn Hall
ce836c6f71 Support for Pattern, Shading objects. Various fixes and enhancements. 2017-04-04 05:51:58 +00:00
Gunnsteinn Hall
a1d15f3838 Add core support for creating PDF content via content streams 2017-04-02 18:48:40 +00:00