{"id":36920503,"url":"https://github.com/devnw/ooxml","last_synced_at":"2026-01-12T16:14:57.879Z","repository":{"id":183330662,"uuid":"669954393","full_name":"devnw/ooxml","owner":"devnw","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-21T01:42:34.000Z","size":6505,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-21T02:28:04.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devnw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T00:54:31.000Z","updated_at":"2023-09-22T05:45:21.000Z","dependencies_parsed_at":"2024-11-21T02:35:35.219Z","dependency_job_id":null,"html_url":"https://github.com/devnw/ooxml","commit_stats":null,"previous_names":["devnw/ooxml"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devnw/ooxml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnw%2Fooxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnw%2Fooxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnw%2Fooxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnw%2Fooxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnw","download_url":"https://codeload.github.com/devnw/ooxml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnw%2Fooxml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28342392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T16:14:38.383Z","status":"ssl_error","status_checked_at":"2026-01-12T16:14:34.289Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T16:14:57.796Z","updated_at":"2026-01-12T16:14:57.865Z","avatar_url":"https://github.com/devnw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"**ooxml** is a library for creation of Office Open XML documents (.docx, .xlsx\nand .pptx)\n\n[![Build \u0026 Test Action\nStatus](https://github.com/devnw/ooxml/actions/workflows/build.yml/badge.svg)](https://github.com/devnw/ooxml/actions)\n[![Go Report\nCard](https://goreportcard.com/badge/go.devnw.com/ooxml)](https://goreportcard.com/report/go.devnw.com/ooxml)\n[![codecov](https://codecov.io/gh/devnw/ooxml/branch/main/graph/badge.svg)](https://codecov.io/gh/devnw/ooxml)\n[![Go\nReference](https://pkg.go.dev/badge/go.devnw.com/ooxml.svg)](https://pkg.go.dev/go.devnw.com/ooxml)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![PRs\nWelcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n\n\n## Status ##\n\n- Documents (docx) [Word]\n\t- Read/Write/Edit\n\t- Formatting\n\t- Images\n\t- Tables\n- Spreadsheets (xlsx) [Excel]\n \t- Read/Write/Edit\n \t- Cell formatting including conditional formatting\n\t- Cell validation (drop down combobox, rules, etc.)\n    - Retrieve cell values as formatted by Excel (e.g. retrieve a date or number as displayed in Excel)\n \t- Formula Evaluation (100+ functions supported currently, more will be added as required)\n \t- Embedded Images\n \t- All chart types\n- PowerPoint (pptx) [PowerPoint]\n\t- Creation from templates\n\t- Textboxes/shapes\n\n\n## Performance ##\n\nThere has been a great deal of interest in performance numbers for spreadsheet\ncreation/reading lately, so here are office numbers for this\n[benchmark](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/lots-of-rows)\nwhich creates a sheet with 30k rows, each with 100 columns.\n\n    creating 30000 rows * 100 cells took 3.92506863s\n    saving took 89ns\n    reading took 9.522383048s\n\nCreation is fairly fast, saving is very quick due to no reflection usage, and\nreading is a bit slower. The downside is that the binary is large (33MB) as it\ncontains generated structs, serialization and deserialization code for all of\nDOCX/XLSX/PPTX.\n\n## Usage ##\n    \n    go get -u go.devnw.com/ooxml\n\n## Document Examples ##\n\n- [Simple Text Formatting](https://github.com/devnw/ooxml/tree/main/examples/document/simple) Text font colors, sizes, highlighting, etc.\n- [Auto Generated Table of Contents](https://github.com/devnw/ooxml/tree/main/examples/document/toc) Creating document headings with an auto generated TOC based off of the headingds\n- [Floating Image](https://github.com/devnw/ooxml/tree/main/examples/document/image) Placing an image somewhere on a page, absolutely positioned with different text wrapping.\n- [Header \u0026 Footer](https://github.com/devnw/ooxml/tree/main/examples/document/header-footer) Creating headers and footers including page numbering.\n- [Multiple Headers \u0026 Footers](https://github.com/devnw/ooxml/tree/main/examples/document/header-footer-multiple) Using different headers and footers depending on document section.\n- [Inline Tables](https://github.com/devnw/ooxml/tree/main/examples/document/tables) Adding an table with and without borders.\n- [Using Existing Word Document as a Template](https://github.com/devnw/ooxml/tree/main/examples/document/use-template) Opening a document as a template to re-use the styles created in the document.\n- [Filling out Form Fields](https://github.com/devnw/ooxml/tree/main/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.\n- [Editing an existing document](https://github.com/devnw/ooxml/tree/main/examples/document/edit-document) Open an existing document and replace/remove text without modifying formatting.\n\n## Spreadsheet Examples ##\n- [Simple](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/simple) A simple sheet with a few cells\n- [Named Cells](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/named-cells) Different ways of referencing rows and cells\n- [Cell Number/Date/Time Formats](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/number-date-time-formats) Creating cells with various number/date/time formats\n- [Line Chart](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/line-chart)/[Line Chart 3D](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/line-chart-3d) Line Charts\n- [Bar Chart](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/bar-chart) Bar Charts\n- [Mutiple Charts](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/multiple-charts) Multiple charts on a single sheet\n- [Named Cell Ranges](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/named-ranges) Naming cell ranges\n- [Merged Cells](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/merged) Merge and unmerge cells\n- [Conditional Formatting](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/conditional-formatting) Conditionally formatting cells, styling, gradients, icons, data bar\n- [Complex](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/complex) Multiple charts, auto filtering and conditional formatting\n- [Borders](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/borders) Individual cell borders and rectangular borders around a range of cells.\n- [Validation](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/validation) Data validation including combo box dropdowns.\n- [Frozen Rows/Cols](https://github.com/devnw/ooxml/tree/main/examples/spreadsheet/freeze-rows-cols) A sheet with a frozen header column and row\n\n## Presentation Examples ##\n\n- [Simple Text Boxes](https://github.com/devnw/ooxml/tree/main/examples/presentation/simple) Simple text boxes and shapes\n- [Images](https://github.com/devnw/ooxml/tree/main/examples/presentation/image) Simple image insertion\n- [Template](https://github.com/devnw/ooxml/tree/main/examples/presentation/use-template/simple) Creating a presentation from a template\n\n## Raw Types ##\n\nThe OOXML specification is large and creating a friendly API to cover the entire\nspecification is a very time consuming endeavor.  This library attempts to\nprovide an easy to use API for common use cases in creating OOXML documents\nwhile allowing users to fall back to raw document manipulation should the\nlibrary's API not cover a specific use case.\n\nThe raw XML based types reside in the ```schema/``` directory. These types are\naccessible from the wrapper types via a ```X()``` method that returns the raw\ntype. \n\nFor example, the library currently doesn't have an API for setting a document\nbackground color. However it's easy to do manually via editing the\n```CT_Background``` element of the document.\n\n    dox := document.New()\n    doc.X().Background = wordprocessingml.NewCT_Background()\n\tdoc.X().Background.ColorAttr = \u0026wordprocessingml.ST_HexColor{}\n\tdoc.X().Background.ColorAttr.ST_HexColorRGB = color.RGB(50, 50, 50).AsRGBString()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnw%2Fooxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnw%2Fooxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnw%2Fooxml/lists"}