Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov authored and gunnsth committed May 4, 2019
1 parent e65ced8 commit e8bf6a3
Show file tree
Hide file tree
Showing 3,250 changed files with 3,940 additions and 3,939 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ go:

install:
- mkdir -p $HOME/gopath/src/baliance.com/
- ln -s $HOME/gopath/src/github.com/baliance/gooxml $HOME/gopath/src/baliance.com/gooxml
- ln -s $HOME/gopath/src/github.com/unidoc/unioffice $HOME/gopath/src/github.com/unidoc/unioffice

script:
- cd $HOME/gopath/src/baliance.com/gooxml
- cd $HOME/gopath/src/github.com/unidoc/unioffice
- ./build-examples.sh
- go vet ./...
- go test ./...
Expand Down
66 changes: 33 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ library for creation and editing of docx/xlsx/pptx files.

Requires **go1.8+**, builds are tested with 1.8, 1.9 and tip.

[![Build Status](https://travis-ci.org/baliance/gooxml.svg?branch=master)](https://travis-ci.org/baliance/gooxml)
[![GitHub (pre-)release](https://img.shields.io/github/release/baliance/gooxml/all.svg)](https://github.com/baliance/gooxml/releases)
[![Build Status](https://travis-ci.org/unidoc/unioffice.svg?branch=master)](https://travis-ci.org/unidoc/unioffice)
[![GitHub (pre-)release](https://img.shields.io/github/release/unidoc/unioffice/all.svg)](https://github.com/unidoc/unioffice/releases)
[![License: AGPL v3](https://img.shields.io/badge/License-Dual%20AGPL%20v3/Commercial-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![GoDoc](https://godoc.org/baliance.com/gooxml?status.svg)](https://godoc.org/baliance.com/gooxml)
[![GoDoc](https://godoc.org/github.com/unidoc/unioffice?status.svg)](https://godoc.org/github.com/unidoc/unioffice)
[![go 1.8+](https://img.shields.io/badge/go-1.8%2B-blue.svg)](http://golang.org)

![https://baliance.com/gooxml/](./_examples/preview.png "gooxml")
![https://github.com/unidoc/unioffice/](./_examples/preview.png "gooxml")

## Status ##

Expand All @@ -46,7 +46,7 @@ Requires **go1.8+**, builds are tested with 1.8, 1.9 and tip.

There has been a great deal of interest in performance numbers for spreadsheet
creation/reading lately, so here are gooxml numbers for this
[benchmark](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/lots-of-rows)
[benchmark](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/lots-of-rows)
which creates a sheet with 30k rows, each with 100 columns.

creating 30000 rows * 100 cells took 3.92506863s
Expand All @@ -60,41 +60,41 @@ DOCX/XLSX/PPTX.

## Installation ##

go get baliance.com/gooxml/
go build -i baliance.com/gooxml/...
go get github.com/unidoc/unioffice/
go build -i github.com/unidoc/unioffice/...

## Document Examples ##

- [Simple Text Formatting](https://github.com/baliance/gooxml/tree/master/_examples/document/simple) Text font colors, sizes, highlighting, etc.
- [Auto Generated Table of Contents](https://github.com/baliance/gooxml/tree/master/_examples/document/toc) Creating document headings with an auto generated TOC based off of the headingds
- [Floating Image](https://github.com/baliance/gooxml/tree/master/_examples/document/image) Placing an image somewhere on a page, absolutely positioned with different text wrapping.
- [Header & Footer](https://github.com/baliance/gooxml/tree/master/_examples/document/header-footer) Creating headers and footers including page numbering.
- [Multiple Headers & Footers](https://github.com/baliance/gooxml/tree/master/_examples/document/header-footer-multiple) Using different headers and footers depending on document section.
- [Inline Tables](https://github.com/baliance/gooxml/tree/master/_examples/document/tables) Adding an table with and without borders.
- [Using Existing Word Document as a Template](https://github.com/baliance/gooxml/tree/master/_examples/document/use-template) Opening a document as a template to re-use the styles created in the document.
- [Filling out Form Fields](https://github.com/baliance/gooxml/tree/master/_examples/document/fill-out-form) Opening a document with embedded form fields, filling out the fields and saving the result as a new filled form.
- [Editing an existing document](https://github.com/baliance/gooxml/tree/master/_examples/document/edit-document) Open an existing document and replace/remove text without modifying formatting.
- [Simple Text Formatting](https://github.com/unidoc/unioffice/tree/master/_examples/document/simple) Text font colors, sizes, highlighting, etc.
- [Auto Generated Table of Contents](https://github.com/unidoc/unioffice/tree/master/_examples/document/toc) Creating document headings with an auto generated TOC based off of the headingds
- [Floating Image](https://github.com/unidoc/unioffice/tree/master/_examples/document/image) Placing an image somewhere on a page, absolutely positioned with different text wrapping.
- [Header & Footer](https://github.com/unidoc/unioffice/tree/master/_examples/document/header-footer) Creating headers and footers including page numbering.
- [Multiple Headers & Footers](https://github.com/unidoc/unioffice/tree/master/_examples/document/header-footer-multiple) Using different headers and footers depending on document section.
- [Inline Tables](https://github.com/unidoc/unioffice/tree/master/_examples/document/tables) Adding an table with and without borders.
- [Using Existing Word Document as a Template](https://github.com/unidoc/unioffice/tree/master/_examples/document/use-template) Opening a document as a template to re-use the styles created in the document.
- [Filling out Form Fields](https://github.com/unidoc/unioffice/tree/master/_examples/document/fill-out-form) Opening a document with embedded form fields, filling out the fields and saving the result as a new filled form.
- [Editing an existing document](https://github.com/unidoc/unioffice/tree/master/_examples/document/edit-document) Open an existing document and replace/remove text without modifying formatting.

## Spreadsheet Examples ##
- [Simple](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/simple) A simple sheet with a few cells
- [Named Cells](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/named-cells) Different ways of referencing rows and cells
- [Cell Number/Date/Time Formats](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/number-date-time-formats) Creating cells with various number/date/time formats
- [Line Chart](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/line-chart)/[Line Chart 3D](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/line-chart-3d) Line Charts
- [Bar Chart](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/bar-chart) Bar Charts
- [Mutiple Charts](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/multiple-charts) Multiple charts on a single sheet
- [Named Cell Ranges](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/named-ranges) Naming cell ranges
- [Merged Cells](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/merged) Merge and unmerge cells
- [Conditional Formatting](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/conditional-formatting) Conditionally formatting cells, styling, gradients, icons, data bar
- [Complex](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/complex) Multiple charts, auto filtering and conditional formatting
- [Borders](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/borders) Individual cell borders and rectangular borders around a range of cells.
- [Validation](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/validation) Data validation including combo box dropdowns.
- [Frozen Rows/Cols](https://github.com/baliance/gooxml/tree/master/_examples/spreadsheet/freeze-rows-cols) A sheet with a frozen header column and row
- [Simple](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/simple) A simple sheet with a few cells
- [Named Cells](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/named-cells) Different ways of referencing rows and cells
- [Cell Number/Date/Time Formats](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/number-date-time-formats) Creating cells with various number/date/time formats
- [Line Chart](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/line-chart)/[Line Chart 3D](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/line-chart-3d) Line Charts
- [Bar Chart](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/bar-chart) Bar Charts
- [Mutiple Charts](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/multiple-charts) Multiple charts on a single sheet
- [Named Cell Ranges](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/named-ranges) Naming cell ranges
- [Merged Cells](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/merged) Merge and unmerge cells
- [Conditional Formatting](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/conditional-formatting) Conditionally formatting cells, styling, gradients, icons, data bar
- [Complex](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/complex) Multiple charts, auto filtering and conditional formatting
- [Borders](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/borders) Individual cell borders and rectangular borders around a range of cells.
- [Validation](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/validation) Data validation including combo box dropdowns.
- [Frozen Rows/Cols](https://github.com/unidoc/unioffice/tree/master/_examples/spreadsheet/freeze-rows-cols) A sheet with a frozen header column and row

## Presentation Examples ##

- [Simple Text Boxes](https://github.com/baliance/gooxml/tree/master/_examples/presentation/simple) Simple text boxes and shapes
- [Images](https://github.com/baliance/gooxml/tree/master/_examples/presentation/image) Simple image insertion
- [Template](https://github.com/baliance/gooxml/tree/master/_examples/presentation/use-template/simple) Creating a presentation from a template
- [Simple Text Boxes](https://github.com/unidoc/unioffice/tree/master/_examples/presentation/simple) Simple text boxes and shapes
- [Images](https://github.com/unidoc/unioffice/tree/master/_examples/presentation/image) Simple image insertion
- [Template](https://github.com/unidoc/unioffice/tree/master/_examples/presentation/use-template/simple) Creating a presentation from a template

## Raw Types ##

Expand All @@ -119,7 +119,7 @@ background color. However it's easy to do manually via editing the

### Contribution guidelines ###

[![CLA assistant](https://cla-assistant.io/readme/badge/baliance/gooxml)](https://cla-assistant.io/baliance/gooxml)
[![CLA assistant](https://cla-assistant.io/readme/badge/unidoc/unioffice)](https://cla-assistant.io/unidoc/unioffice)

All contributors are must sign a contributor license agreement before their code
will be reviewed and merged.
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/doc-properties/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"time"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/edit-document/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"time"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/fill-out-form/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/header-footer-multiple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
package main

import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
8 changes: 4 additions & 4 deletions _examples/document/header-footer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package main
import (
"log"

"baliance.com/gooxml/common"
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/common"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/hyperlink/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"baliance.com/gooxml/color"
"baliance.com/gooxml/document"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/schema/soo/wml"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/document/image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"io/ioutil"
"log"

"baliance.com/gooxml/common"
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"github.com/unidoc/unioffice/common"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"

"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/line-spacing/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package main
import (
"log"

"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/mail-merge/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/page-numbers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
package main

import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/pdf-export-ole/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
)
Expand Down
8 changes: 4 additions & 4 deletions _examples/document/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package main
import (
"fmt"

"baliance.com/gooxml/color"
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/document/tables/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"log"

"baliance.com/gooxml/color"
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"

"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/schema/soo/wml"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/toc-generation-ole/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"path/filepath"

"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"

"github.com/go-ole/go-ole/oleutil"
)
Expand Down
6 changes: 3 additions & 3 deletions _examples/document/toc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
package main

import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/wml"
"github.com/unidoc/unioffice/document"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/use-template/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"log"

"baliance.com/gooxml/document"
"github.com/unidoc/unioffice/document"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
10 changes: 5 additions & 5 deletions _examples/presentation/complex/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package main
import (
"log"

"baliance.com/gooxml/schema/soo/dml"
"github.com/unidoc/unioffice/schema/soo/dml"

"baliance.com/gooxml/color"
"baliance.com/gooxml/common"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/presentation"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/common"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/presentation"
)

const lorem = "Lorem ipsum dolor sit amet."
Expand Down
6 changes: 3 additions & 3 deletions _examples/presentation/image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package main
import (
"log"

"baliance.com/gooxml/measurement"
"github.com/unidoc/unioffice/measurement"

"baliance.com/gooxml/common"
"github.com/unidoc/unioffice/common"

"baliance.com/gooxml/presentation"
"github.com/unidoc/unioffice/presentation"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/presentation/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ package main
import (
"log"

"baliance.com/gooxml/color"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/dml"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/measurement"
"github.com/unidoc/unioffice/schema/soo/dml"

"baliance.com/gooxml/presentation"
"github.com/unidoc/unioffice/presentation"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions _examples/presentation/use-template/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"log"

"baliance.com/gooxml/color"
"baliance.com/gooxml/schema/soo/pml"
"github.com/unidoc/unioffice/color"
"github.com/unidoc/unioffice/schema/soo/pml"

"baliance.com/gooxml/presentation"
"github.com/unidoc/unioffice/presentation"
)

func main() {
Expand All @@ -32,7 +32,7 @@ func main() {
ph, _ := sld.GetPlaceholder(pml.ST_PlaceholderTypeTitle)
ph.SetText("Using gooxml")
ph, _ = sld.GetPlaceholder(pml.ST_PlaceholderTypeBody)
ph.SetText("Created with baliance.com/gooxml/")
ph.SetText("Created with github.com/unidoc/unioffice/")

tac, _ := ppt.GetLayoutByName("Title and Content")

Expand Down
2 changes: 1 addition & 1 deletion _examples/spreadsheet/bar-chart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"baliance.com/gooxml/spreadsheet"
"github.com/unidoc/unioffice/spreadsheet"
)

func main() {
Expand Down
Loading

0 comments on commit e8bf6a3

Please sign in to comment.