414 Commits

Author SHA1 Message Date
Alfred Hall
779d4e4676 Fix 2017-07-25 15:10:47 +00:00
Alfred Hall
e4f39d597e Fix 2017-07-25 15:07:52 +00:00
Alfred Hall
e72acfc371 Attempted fixes. 2017-07-25 14:59:22 +00:00
Gunnsteinn Hall
6effda191d Update version to v2.0.0 2017-07-25 14:38:36 +00:00
Gunnsteinn Hall
acd5bff019 Merge branch 'v2' 2017-07-25 14:31:35 +00:00
Gunnsteinn Hall
dffbb8c64e Merge branch 'master' into v2 2017-07-25 14:29:57 +00:00
Gunnsteinn Hall
4a7bb0d79b Added access point for accessing PdfWriter with creator. Example test case for adding password protection. Closes #76. 2017-07-24 20:39:30 +00:00
Peter Williams
43ecf3b325 Merge remote-tracking branch 'upstream/v2' 2017-07-24 15:23:12 +10:00
Gunnsteinn Hall
7f83a4ea2f Add bounds check in crypt, parser. Avoid division by zero. 2017-07-23 20:20:05 +00:00
Gunnsteinn Hall
3639b5c279 Add check for ID array length 2017-07-23 12:30:21 +00:00
Gunnsteinn Hall
9ff2413609 Add check to ensure stream length cannot be larger than file size. Test cases updated. 2017-07-23 12:21:42 +00:00
Gunnsteinn Hall
68bca163a9 Type checking for index list elements 2017-07-23 11:47:21 +00:00
Gunnsteinn Hall
124bd10e7c Check bounds on XRef stream index list (found by fuzzing) 2017-07-23 11:37:35 +00: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
99872f29ba Type check for xref Prev entries added. 2017-07-23 01:54:31 +00:00
Gunnsteinn Hall
c6660b62c9 Fix test case 2017-07-22 16:46:22 +00:00
Gunnsteinn Hall
b2bb6d9836 Fixed problem found by fuzzing when Encrypt pointing to invalid reference 2017-07-22 16:44:42 +00:00
Gunnsteinn Hall
6e30b10029 Prevent recursive loop errors while tracing stream Lengths. Test case included. Fixes #80. 2017-07-22 12:11:58 +00:00
Gunnsteinn Hall
1cf2ac4a98 Fix error return value 2017-07-22 11:17:48 +00:00
Gunnsteinn Hall
469856432b Fix fuzz-detected problem where stream length referring to stream itself (with a test case to verify) 2017-07-21 21:31:23 +00:00
Gunnsteinn Hall
1769c68234 Add type check for Size in trailer. Fixes #77 2017-07-21 14:18:35 +00: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
d38a5ad1e0 Changed syntax to creator NewImage and added NewImageFromData 2017-07-18 15:00:09 +00:00
Gunnsteinn Hall
206dccb560 Release v2.0.0-rc.1 2017-07-17 20:48:02 +00:00
Gunnsteinn Hall
25c91a8943 Horizontal and vertical table cell alignment implemented. Closes #74. 2017-07-17 20:41:10 +00:00
Gunnsteinn Hall
34ef014405 Fix winansi encoding for hyphen character 2017-07-17 15:10:42 +00:00
Gunnsteinn Hall
4ca381174a Remove debug printf 2017-07-17 14:41:51 +00:00
Gunnsteinn Hall
9d0e42a5f2 Comment revisions 2017-07-17 14:36:16 +00:00
Gunnsteinn Hall
0029d4cc8e Draw header and footer on blocks implemented to simply syntax. Closes #68 2017-07-17 12:20:06 +00:00
Gunnsteinn Hall
e91f65a641 Updated syntax for header, footer, frontpage generation functions 2017-07-17 12:07:14 +00:00
Gunnsteinn Hall
83f9a0b989 Implemented generic color interface. Initial support for table borders and indent. Also, now setting some default parameters for paragraphs added to table. 2017-07-17 11:36:02 +00:00
Gunnsteinn Hall
11e4fae50b Updated color treatment as per #63. 2017-07-14 21:58:16 +00:00
Gunnsteinn Hall
6a059cdcec Take table margins into account 2017-07-14 17:46:01 +00:00
Gunnsteinn Hall
52863e274c Fix table context, return x and width after drawing 2017-07-14 17:20:30 +00:00
Gunnsteinn Hall
a5e2a5f371 Allow adding table to subchapter 2017-07-14 16:41:21 +00:00
Gunnsteinn Hall
68fa179d7c Fix page number tracking issue 2017-07-14 16:37:50 +00:00
Gunnsteinn Hall
b056abb552 Tables with dynamic rows. Closes #66. 2017-07-14 16:24:07 +00:00
Gunnsteinn Hall
8710257e17 Add function to get table cell width based on context 2017-07-14 15:09:47 +00:00
Gunnsteinn Hall
82b221517e Take chapter and subchapter margins into account. Fixes #71. 2017-07-14 13:55:17 +00:00
Gunnsteinn Hall
2be9bc3f3a Allow changing page margins. Closes #70. 2017-07-14 13:32:22 +00:00
Gunnsteinn Hall
ec4847d328 Expose subchapter paragraph heading for styling. Add capability to hide numbering, and remove from TOC. Closes #69 2017-07-14 12:56:42 +00:00
Gunnsteinn Hall
dfb80a2dd1 updated readme text 2017-07-13 17:14:06 +00:00
Gunnsteinn Hall
c64218db3d add missing opacity property when loading goimage. 2017-07-13 17:13:55 +00:00
Gunnsteinn Hall
305e604b6c Update README.md 2017-07-13 16:44:21 +00:00
Gunnsteinn Hall
63904570a9 Fix paragraph margin X moving back issue 2017-07-13 15:35:54 +00:00
Gunnsteinn Hall
6971f409e4 Page rotation in creator 2017-07-13 15:35:41 +00:00
Gunnsteinn Hall
164a1dab03 Better support for changing page size. Closes #64. Add Write() method for io.WriteSeeker 2017-07-13 14:20:42 +00:00
Gunnsteinn Hall
2e70c34829 Allow specifying image opacity via graphics state. Support ExtGState when merging content streams (in blocks). 2017-07-13 14:20:02 +00:00
Gunnsteinn Hall
9e755691ff Set context when adding a page directly in creator 2017-07-12 15:47:22 +00:00