330 Commits

Author SHA1 Message Date
Todd
70dbd44232 common: handle unordered relationships correctly
Continued part of #198 after @JasonFromSpace pointed out
an error with the original fix.
v0.9.1
2018-09-17 17:58:35 -05:00
Todd
0b5e389ad4 meta: add go.mod v0.9.0 v0.9 2018-09-14 15:12:25 -05:00
Todd
d8887513e0 document: fix jpg image support
The earlier fix was not correct, it fixed filenames in the
package, but not the relationship reference.

Fixes #188
2018-09-14 14:48:38 -05:00
Todd
781c94bde4 common: generate unique relationship IDs
We were relying on ordered relationship IDs to be generated
by other applications when we open their files, but it's not
required which broke an assumption we made.  Fix this by ensuring
that generated relationship IDs don't occur in the file already.

Fixes #198
2018-09-14 14:48:38 -05:00
Todd
c016b46786 meta: specify 1.11 specifically for travis 2018-09-11 20:28:33 -05:00
Todd
75f877dbab document: Google docs writes out incorrect floating point values
Relax our parsing somewhat so we can read these documents,
truncating at the decimal point back to an integer.

Fixes #196
2018-09-11 20:28:33 -05:00
Todd
e6c056205f meta: fix pdf export ole example 0.8 2018-07-27 16:30:49 -05:00
Todd
b373ef76b4 meta: update version info 2018-07-27 16:30:49 -05:00
Todd
acf3430d9b document: support for adding rows before/after
This makes editing document templates easier as you can insert
rows mid-table.
2018-07-27 16:30:49 -05:00
Todd
3e25a7246b document: support for replacing mail merge fields
Fixes #170
2018-07-27 15:34:01 -05:00
Evgeniy Kulikov
1f94b99711 document: add footer image support
Add support for adding images to footers.
2018-07-16 16:35:15 -05:00
Todd
675d117125 ci: add tip back
gofmt can change, so we shouldn't make it mandatory in CI
2018-07-08 18:15:14 -05:00
Todd
7f7bedb858 document: fix non-PNG image support
Fixes #188
2018-07-08 18:15:14 -05:00
Todd
a78d579d58 examples: add PDF export and TOC generation examples
This only works on Windows as it uses OLE to drive MS Word, but
it allows offloading complex functionality to the actual MS Word
instead of implementing a Word renderer.

Fixes #185
2018-06-04 16:42:51 -05:00
Todd
9471100d92 document: add more fine grained control of line spacing 2018-05-28 07:35:39 -05:00
jjjabc
4293d9cb58 document: support inserting table before/after paragraph v0.7.1 2018-05-25 15:51:48 -05:00
jjjabc
e44d93ec4d document: support inserting table anywhere 2018-05-25 15:51:48 -05:00
Todd
6a24803846 license: be more lenient regarding licensing formatting 2018-05-18 18:35:28 -05:00
Todd
06e12203b2 document: set east asia font family
Fixes #175
2018-05-13 15:37:17 -05:00
Todd
26fad5d249 update version v0.7.0 2018-03-30 20:52:37 -05:00
Todd
b601beb3ec document: support non-dirty fields
Fixes #171
2018-03-30 20:52:37 -05:00
Todd
bc4407804f document: support for vertically merging cells
Fixes #164
2018-03-13 09:21:39 -04:00
Todd
8d6c99bcdd presentation: fix use-template example
Fixes #159
2018-03-13 08:55:07 -04:00
Todd
efd47ee66a document: support for iterating over tables
Thanks to lishuu for the issue and fix.

Fixes #162
2018-03-13 08:46:03 -04:00
Hariharan Srinath
9c067b3fdd document: adds a helper method to set section margins
Fixes #165
2018-03-03 10:59:17 -05:00
Todd
e3714d27a7 fix paragraph numbering id
Fixes #161
2018-02-28 17:36:59 -05:00
Todd
d21b0d3cfb spreadsheet: add Column method to cell v0.6.0 2018-02-06 06:09:03 -06:00
Todd
65256235c2 spreadsheet: fix for sheet ordering bug
Need to test this more, may be working by chance...

Updates #154
2018-02-05 20:27:50 -06:00
Todd
df08d555d4 schema: fix charts
Add missing reference to http://schemas.openxmlformats.org/drawingml/2006/main

Fixes #155
2018-01-31 13:49:24 -06:00
Todd
fd26e4bbcf document: support for embedding images in headers
Fixes #150
2018-01-24 20:05:00 -05:00
Todd
f4f42c085d document: support super/sub script on text runs
Fixes #151
2018-01-24 19:50:01 -05:00
Todd
33a8645f66 common: fix app version
Our app version wasn't correct per MS's spec.  Modify it
to match the XX.YYYY format.
2018-01-18 17:30:07 -05:00
Todd
01883a5e87 common: support more app/core properties
Support language, links up to date, and document security
flag and update unit test golden files.
2018-01-18 10:53:35 -06:00
Todd
2c86cf181d common: use path.Clean instead of filepath.Clean
This ensures correctly formatted relative filenames on
Windows.  filepath.Clean uses the system seprator character,
while path.Clean always uses a forward slash.

Thanks to @AlexeyUzhva for noticing.

Fixes #146
2018-01-16 15:42:24 -06:00
Todd
a1884f4e37 document: allow controlling numbering level formatting
Fixes #144
2018-01-04 19:03:50 -06:00
Todd
8479accfea document: don't automatically force the numbering ID
Previously we hardcoded the numbering ID to 1 instead of leaving
it unset
2018-01-04 19:03:50 -06:00
Todd
2e895a8dad document: when adding an image, ensure content-types exist for it
Fixes #142
2017-12-27 16:48:14 -06:00
Todd
dcf6883ca5 document: support for controlling auto-sized tables
Fixes #140
2017-12-27 16:26:28 -06:00
Todd
259724dfab document: support for controlling paragraph numbering
Fixes #136
2017-12-16 07:36:26 -06:00
Todd
12b7484103 document: support creating inline images
Fixes #134
2017-12-10 07:40:03 -06:00
Todd
323695ec80 document: support creation of table styles
Fixes #132
2017-12-06 17:59:42 -06:00
Todd
f3255af62c document: add support for using pre-defined table styles
- support setting styles on a table
- update document/use-template example to show table style usage

Updates #130
2017-12-06 17:32:50 -06:00
Todd
a323a51e91 document: update typos in comments 2017-12-06 17:32:50 -06:00
Todd
5b7fbecc4e document: support for enumerating bookmarks
- enumerate bookmarks
- validate that bookmark names are unique
2017-12-03 11:27:00 -06:00
Todd
1f1ff04071 document: add support for creating bookmarks
- support adding bookmarks
- support hyperlinks that reference a bookmark
- update hyperlink example

Fixes #126
2017-12-01 12:36:29 -06:00
Todd
dff033708f presentation: add complex example 2017-11-29 19:19:01 -06:00
Todd
320ce7148f presentation: support vertical text anchoring 2017-11-29 19:19:01 -06:00
Todd
adffc05b78 drawing: support flipped shapes 2017-11-29 19:19:01 -06:00
Todd
df837018b0 drawing: support setting bullet font/character 2017-11-29 19:19:01 -06:00
Todd
2dfd95bb54 document: add support for controlling paragraph indentation
Fixes #123
2017-11-29 17:32:14 -06:00