103 Commits

Author SHA1 Message Date
Nikita Kryuchkov
e65ced8888 Add purl.oclc.org namespace support (#265)
* Regenerate code to handle purl.oclc.org docs correctly
* Make purl.oclc.org docs be opened just as the openxml ones
* Modify opening routine to change strict docs to non-strict
- `CustomXMLType` and `CustomXMLTypeStrict` were added to properly replace
these in strict docs
- `Decode` of `zippkg` was modified to replace the namespace in
relationships
- `TestOpenStrict` was modified to open the strict file, save it as
non-strict, reopen non-strict and validate its correctness
2019-04-29 15:32:26 +00:00
Jeff Stiles
001376ca65 include CT_SdtRow entries in table.Rows() (#261) 2019-04-10 23:07:05 +00:00
Jeff Stiles
bd218fda99 include CT_SdtCell entries in row.Cells() (#260) 2019-04-10 22:17:28 +00:00
Jeff Stiles
32d0f79893 Included nested tables in document.Tables() output (#257)
* included nested tables in document.Tables() output

* add test case for getting tables

remove comments

* cleanups
2019-04-03 16:56:05 +00:00
Jeff Stiles
167fc12abe Support fetching bookmarks within tables, including recursively (#255)
* support fetching bookmarks withing tables, including recursively

* change to pointer receiver
2019-04-03 10:02:32 +00:00
Tom Weber
b746aceced Image from data (#251)
* ability to create image from in-memory data

* gitignore: vim swap files
2019-03-29 16:26:51 +00:00
Todd
08d318b31d document: look for merge fields in tables
Fixes #223
2018-11-29 08:41:12 -05:00
Tom Weber
a4556291f8 Added Run.AddPageBreak() 2018-11-15 07:03:24 -06:00
Tom Weber
0e43c60303 Added ParagraphStyleProperties methods for alignment and indent 2018-11-15 07:03:24 -06:00
Tom Weber
372ab211c7 Added MultiLevelType methods, set level Start to 1 2018-11-15 07:03:24 -06:00
Tom Weber
17957ac779 Added Cell.AddTable() 2018-11-14 07:11:04 -06:00
Todd
ed84939b3b document: fix IsBold check
We used existence to indicate non-boldness, but the element
can exist with a false value which also means bold is disabled.

Fixes #204
2018-09-28 05:49:39 -05:00
Todd
3115a2ad3c document: support controlling table cell margins
Fixes #202
2018-09-26 20:02:06 -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
e6c056205f meta: fix pdf export ole example 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
7f7bedb858 document: fix non-PNG image support
Fixes #188
2018-07-08 18:15:14 -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 2018-05-25 15:51:48 -05:00
jjjabc
e44d93ec4d document: support inserting table anywhere 2018-05-25 15:51:48 -05:00
Todd
06e12203b2 document: set east asia font family
Fixes #175
2018-05-13 15:37:17 -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
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
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
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
2dfd95bb54 document: add support for controlling paragraph indentation
Fixes #123
2017-11-29 17:32:14 -06:00
Todd
f5a8df0deb presentation: initial work for presentations 2017-11-18 11:52:13 -06:00
Todd
c38bb81110 document: add Clear method to Run 2017-10-10 19:19:44 -04:00
Todd
acb6173851 document: add header/footer unit tests 2017-10-10 18:18:32 -04:00
Todd
baff4fdfcd document: support editing headers/footers
- adds a Paragraphs() method on Header/Footer
- reworks remove paragraph logic for document to be consistent

Fixes #116
2017-10-10 18:04:34 -04:00
Todd
cb28280f74 document: refactor properties
Move functions from Run to the Run's properties
2017-10-10 17:03:43 -04:00
Todd
6884ee78c3 document: support adding hyperlinks to a document
Fixes #113
2017-10-10 12:58:20 -05:00