38 Commits

Author SHA1 Message Date
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
Gunnsteinn Hall
d38a5ad1e0 Changed syntax to creator NewImage and added NewImageFromData 2017-07-18 15:00:09 +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
c64218db3d add missing opacity property when loading goimage. 2017-07-13 17:13:55 +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
Gunnsteinn Hall
bccf94be03 Add test case for drawing shapes on a block and drawing to multiple pages. 2017-07-11 14:16:01 +00:00
Gunnsteinn Hall
ceaa40dbb6 Add testing for shapes. Convenience hex to r,g,b function added. 2017-07-11 13:16:56 +00:00
Gunnsteinn Hall
fde075353c Implement basic shapes for creator: line, rectangle, ellipse. 2017-07-11 13:16:35 +00:00
Gunnsteinn Hall
a422aecfec Simplify drawable interface, remove unnecessary methods. 2017-07-11 13:16:01 +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
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
8a013a05e4 Test cases for creator and test files. 2017-07-07 15:37:50 +00:00
Gunnsteinn Hall
e0bb61326c add missing header 2017-07-07 15:09:20 +00:00
Gunnsteinn Hall
168c04d168 Basic creator table implementation. Closes #12. 2017-07-07 15:08:43 +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