615 Commits

Author SHA1 Message Date
Gunnsteinn Hall
6516adddc4 Cleaning up logging, more debug -> trace log level 2017-03-02 18:06:32 +00:00
Gunnsteinn Hall
79655b0b0d Fix Pattern CS loading when has underlying cs 2017-03-02 14:16:22 +00:00
Gunnsteinn Hall
e8c0a4be98 Export trailer dict from reader 2017-03-02 12:50:45 +00:00
Gunnsteinn Hall
8b2146ea10 Use page dict from original dict in Page objects. 2017-03-02 12:50:18 +00:00
Gunnsteinn Hall
c599f8decc Fix package comments 2017-03-02 12:49:42 +00:00
Gunnsteinn Hall
8a5ae9164a Fix encoder order in MultiEncoder 2017-03-02 12:49:25 +00:00
Gunnsteinn Hall
4aa6845e27 Refactored contentstream into a separate package. 2017-03-01 16:02:53 +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
d1c37e285d Convenience function to get all content streams as one for a page 2017-02-28 08:59:17 +00:00
Gunnsteinn Hall
f1ada05914 Support parsing and getting the actual version number and changing the output PDF version 2017-02-28 08:58:50 +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
80fa077d15 1) Fix trailer dict parsing bug, 2) Get Read/Write OCProps, 3) Read/Write Page Resource Properties 2017-02-15 14:21:20 +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
Gunnsteinn Hall
f6ffa2aa33 Support for LZW stream decoding. Support for content streams with inline images. 2017-02-12 21:37:07 +00:00
Peter Williams
4a0073b639 removed panics 2017-01-27 09:40:02 +11:00
Peter Williams
c2f1dc847b fixed byObject sort order 2017-01-26 22:51:45 +11:00
Peter Williams
8fbe0fcfad common.Log.Debug("ERROR => common.Log.Error( 2017-01-26 21:55:02 +11:00
Peter Williams
e8b3a5b2c4 common.Log.Debug("ERROR: => common.Log.Error( 2017-01-26 20:24:37 +11:00
Peter Williams
9edc2a8970 More detailed logging 2017-01-26 20:20:13 +11:00
Peter Williams
7dc32baa20 fixed formatting 2017-01-22 09:49:52 +11:00
Peter Williams
107bb119a8 tweaked logging 2017-01-21 14:47:55 +11:00
Gunnsteinn Hall
25cb4ac6ff Make less strict for parsing annotation type
Report the incompatibility but not cause an error
2017-01-14 18:52:45 +00:00
Gunnsteinn Hall
d964f9cff7 Support comments in content streams 2017-01-12 20:08:55 +00:00
Gunnsteinn Hall
765c30efa4 Fix bug with comments within indirect objects
Add some more debugs which can be helpful for troubleshooting
problematic pdf files
2017-01-12 12:23:28 +00:00
Gunnsteinn Hall
4693588a5f Fix for stream delimiting 2017-01-09 22:00:26 +00:00
Gunnsteinn Hall
2f9b8e3828 Change printfs to debug logging 2017-01-09 14:12:23 +00:00
Peter Williams
b66ef0cb58 added some logging 2017-01-05 17:06:03 +11:00
Peter Williams
41644e2a6b more options for unpacking objects 2017-01-05 17:02:32 +11:00
Peter Williams
cf88afe2d3 quietened logging 2017-01-05 17:01:50 +11:00
Gunnsteinn Hall
5369e32cb6 Simplified license - remove license subpackage
The removal of the Producer additional requirements means we do not
need the license subpackage anymore.  It is removed in v2.
2017-01-04 16:43:08 +00:00
Gunnsteinn Hall
a8a2df0b90 Update tests 2017-01-03 15:36:32 +00:00
Gunnsteinn Hall
5dce3be8de Add function to check if image resource name available 2017-01-03 10:51:39 +00:00
Gunnsteinn Hall
70492f77d5 Add back needed dependency 2016-12-13 21:42:27 +00:00
Gunnsteinn Hall
c6c4d83758 Change interface for get and add page (use PdfPage). Improvements to resource handling and manipulation. 2016-12-13 19:40:33 +00:00
Gunnsteinn Hall
36ba97ca37 Fix bug with stream in rare malformant PDF cases 2016-12-13 19:39:23 +00:00
Peter Williams
1e5bc37826 Some printf's to help me understand code 2016-12-12 11:19:50 +11:00
Peter Williams
d518f13b5d Expose version and xref table in reader. 2016-12-06 14:30:58 +11:00
Gunnsteinn Hall
8846983e79 Improved handling of un-referenced Parent objects in writer 2016-12-06 01:18:44 +00:00
Gunnsteinn Hall
9fe3c5a0b9 Improved annotation object handling (parsing and writing) 2016-12-05 16:21:23 +00:00
Gunnsteinn Hall
cc0bd7572f Reduce logging to stdout 2016-12-05 11:47:38 +00:00
Peter Williams
b37635e0f5 Made PDF output determistic by sorting dicts 2016-12-05 15:15:26 +11:00
Gunnsteinn Hall
af5ea0bd00 Improved outline handling (in progress)
Structure element currently scrapped.  Later to add support for that.
Then will fix the SE of the outline item.
Still a bit of testing and validation required.
2016-12-05 00:46:27 +00:00
Gunnsteinn Hall
a9621e8c0f Improved content stream parsing 2016-12-04 00:19:24 +00:00
Gunnsteinn Hall
a0a9fa6289 Fix for invalid crypto lengths (given in bits rather than bytes) for compatibility 2016-12-02 22:32:13 +00:00
Gunnsteinn Hall
eb1edeb73e Fix Inspect definition in reader following merge 2016-12-02 16:14:00 +00:00
Gunnsteinn Hall
1564f8ab06 Updates and fixes from master merged in 2016-12-02 15:17:19 +00:00