Alfred Hall
2e7943e809
New license based on the unidoc model ( #294 )
...
* Style fixes. Fixes for tests. Should not fail with version updates in the future.
2019-06-09 11:56:06 +00:00
Nikita Kryuchkov
06b1c96f8f
Add tables loop to document's Paragraphs
func ( #280 )
2019-05-11 16:06:59 +00:00
Gunnsteinn Hall
270664ca01
Rename package name to unioffice ( #274 )
2019-05-04 13:54:29 +00:00
Nikita Kryuchkov
e8bf6a3bb9
Move repository
https://github.com/baliance/gooxml to
https://github.com/unidoc/unioffice ( #273 )
2019-05-04 08:18:06 +00:00
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
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
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
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
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
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
Todd
fd26e4bbcf
document: support for embedding images in headers
...
Fixes #150
2018-01-24 20:05:00 -05: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
5b7fbecc4e
document: support for enumerating bookmarks
...
- enumerate bookmarks
- validate that bookmark names are unique
2017-12-03 11:27:00 -06:00
Todd
f5a8df0deb
presentation: initial work for presentations
2017-11-18 11:52:13 -06: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
6884ee78c3
document: support adding hyperlinks to a document
...
Fixes #113
2017-10-10 12:58:20 -05:00
Todd
c887342ed1
document: add validation for table row/cell contents
...
OSX Word is very opinionated about the contents.
2017-10-03 08:19:10 -05:00
Todd
5bfa034ef9
gooxml: add and use a Log function
...
This allows redirecting or discarding any
logs produced by the library.
2017-09-30 07:09:26 -05:00
Todd
6cf6944f09
document: support inserting runs mid-paragraph
2017-09-28 19:21:07 -05:00
Todd
1b53d772ee
document: support inserting paragraphs within a document
2017-09-28 18:20:56 -05:00
Todd
89b1416b8f
gooxml: rework how filenames are calculated
...
This is needed for pivot tables, split out from that branch
so any further changes to filename handling will be easier in
master.
2017-09-28 18:20:56 -05:00
Todd
11edbae6be
document: fix rewriting of images within document names
...
I have a better fix for filenames in the pivot table branch
that I intend to break out later.
2017-09-28 16:56:22 -05:00
Todd
82f22691b2
document: support removing runs/paragraphs
2017-09-26 19:34:13 -05:00
Todd
427f7b1e45
schema: rename officeDocument to ofc
2017-09-23 10:01:17 -04:00
Todd
599631208a
schema: rename drawingml to dml
2017-09-23 10:01:17 -04:00
Todd
e880adfc5b
schema: rename package to pkg
2017-09-23 10:01:17 -04:00
Todd
ca6c54dc60
schema: rename wordprocessingml to wml
2017-09-23 10:01:17 -04:00
Todd
09825ac816
schema: rework schema namespaces to work around Windows issues
...
The go command on Windows doesn't like long path name. To
work around this, this is the first in a series of changes to
shorten the schema disk path structure in a few places.
Fixes #89
2017-09-23 10:01:17 -04:00
Todd
558e5ee274
spreadsheet: add image support and example
2017-09-11 20:17:06 -05:00
Todd
c863154dc0
common: move images to doc base
2017-09-11 20:17:06 -05:00
Todd
3bc4675cf6
spreadsheet: add comment support
...
This adds comment support for sheets. Excel requires a VML drawing with
the comment box shape for each comment to display the comment.
LibreOffice displays comments fine with or without the shape, and
creates the shape for its own comments. For the sake of compatibility,
we create comment shapes as well.
I know of no other use for the legacy VML support other than comment
boxes...
2017-09-10 11:25:29 -05:00
Todd
41e2d6eaec
document: add support for rewriting document filenames
...
The problem this solves is loading and re-saving a document
that uses an odd file structure (e.g. the main body is
not at word/document.xml). I've seen this occur with spreadsheets
but not with a docx in the wild, however it's fairly simple
to handle in case it occurs.
2017-09-08 18:30:40 -04:00
wangguoliang
6541491518
misspelling
2017-09-07 22:05:29 -04:00
Todd
f07c57cae7
gooxml: move content types to base package
2017-09-04 11:08:29 -05:00
Todd
6164089457
zippkg: start breaking out decoding
...
Decoding was getting fairly complicated, it seems cleaner
to have something handle the relationships file and traversal
and the document just be notified via callback when new
files have been found.
2017-09-04 11:08:29 -05:00
Todd
a06fea99f7
spreadsheet: add saving/loading of themes
2017-09-02 17:50:38 -05:00
Todd
8f45ea019b
spreadsheet: add thumbnail support
2017-09-02 17:50:38 -05:00
Todd
caebe001a8
document: add more documentation and examples
2017-09-01 19:26:26 -05:00
Todd
3820294523
document: fix lint errors and add documentation
2017-09-01 18:12:43 -05:00
Todd
ec7c4ce013
document: add support for extracting/saving document thumbnail
2017-09-01 17:13:33 -05:00
Todd
a16a7edaa2
example: add docx2md (.docx to markdown) example
2017-08-31 18:52:40 -05:00
Todd
8e630657bf
examples: add Word template example
...
Add an example that shows how to use a Word document
as a template and pull its styles for use in a new document.
2017-08-30 17:25:49 -05:00
Todd
105ef6916e
document: read/restore all contents of a Word 2016 file
...
Adds support for serializing/deserializing of:
- webSettings
- fontTable
- endnotes
- footnotes
- themes
- optional numbering
2017-08-29 22:40:44 -05:00
Todd
4bd04dd2e5
initial commit
2017-08-29 15:06:08 -05:00