68 Commits

Author SHA1 Message Date
Todd
59b2711e1b schema: apply more default values
These are implied values as they are the defaults in the XSD
for optional attributes/elements. However I've noticed that
I keep running into issues where Mac Excel/Word fail to open
a file unless an optional default is provided.

I'll just add them all to hopefully increase compatibility and
save painful file format debugging sessions later.
2017-09-04 17:14:06 -05:00
Todd
ba68d59d67 schema: serialize booleans as 1/0 instead of true/false
This matches what the MS products and LibreOffice do.
2017-09-04 11:08:29 -05:00
Todd
28e4b68715 common: add warning for using urls instead of mime type 2017-09-04 11:08:29 -05:00
Todd
9090e4f93c meta: move filename information out of packages
This seems like the better choice, a lot of the logic is shared
between the document types, and it allows generating filenames in
a single place.

The only downside is that you must pass in the document type as
some content types have different typical names depending on the
document type (e.g. an 'office document' is the main document.xml,
workbook.xml and presentation.xml
2017-09-04 11:08:29 -05: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
ef0d194ae2 spreadsheet: fix issue loading spreadsheets with non-standard naming 2017-09-02 17:50:38 -05:00
Todd
8f45ea019b spreadsheet: add thumbnail support 2017-09-02 17:50:38 -05:00
Todd
a54e7275e4 common: add core properties tests 2017-09-02 14:23:54 -05:00
Todd
cb06f7b80a common: add AppProperties unit tests 2017-09-02 14:23:54 -05:00
Todd
180c0f958d common: flesh out core properties wrapper and add an example 2017-09-01 21:38:55 -05:00
Todd
ec7c4ce013 document: add support for extracting/saving document thumbnail 2017-09-01 17:13:33 -05:00
Todd
59d34fa7a0 schema: handle xsd:any differently
Instead of accumulating tokens, parse it using Go 1.8's
attr/element collection tags.
2017-08-31 18:27:34 -05:00
Todd
9237920cf3 meta: add more documentation 2017-08-29 23:12:33 -05:00
Todd
0da5ce4a82 schema: rework xsd:any type 2017-08-29 22:40:44 -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
366c3b51ec schema: rework xsd:any handling 2017-08-29 16:55:03 -05:00
Todd
4bd04dd2e5 initial commit 2017-08-29 15:06:08 -05:00