DOCXLib Package (Pure Ring Library for Word files)

29 views
Skip to first unread message

Mahmoud Fayed

unread,
May 21, 2026, 11:02:18 AMMay 21
to The Ring Programming Language
Hello

DOCXLib Package (Pure Ring Library for Word files)


DOCXLib is a pure-Ring library for generating and reading Microsoft Word (.docx) documents programmatically — no external tools, no COM automation, no Office installation required.

Install:

  ringpm install docxlib from ringpackages  

Features
* Zero dependencies — Pure Ring
* Fluent API — Every method returns self, enabling method chaining
* Rich tables — Cell merging, per-side borders, row heights, text direction, images, lists inside cells
* Full typography — Bold/italic/colour/font/size per run, language tags, character styles, custom paragraph styles
* Paragraph control — Widow/orphan control, hyphenation suppression, keep-together, contextual spacing
* Navigation — TOC, Table of Figures, Table of Tables, bookmarks, cross-refs
* Forms — Checkboxes, dropdowns, and text input content controls
* Shapes — Rectangle, ellipse, diamond, triangle, line (DrawingML)
* Themes — 8 built-in colour palettes applied to all heading levels
* Charts — 8 native OOXML chart types with axis formatting, data tables, and style presets
* Mail Merge — Template engine: setMergeTemplate(), mergeRecord(), mergeAll() with {{FIELD}} tokens
* Image cropping — Non-destructive a:srcRect crop by percentage on inline and floating images
* Rich notes — Footnote and endnote bodies with full per-run formatting (bold, italic, colour, size)
* WordReader — Parse .docx — extract all content and styles; full round-trip reconstruct and save

Screen Shots:
docxlib_shot1.png

docxlib_shot2.png

Greetings,
Mahmoud

Mansour Ayouni

unread,
May 21, 2026, 1:20:51 PMMay 21
to Mahmoud Fayed, The Ring Programming Language
Hello Mahmoud,

This is powerful!
Keep up the nice work.

Best,
Mansour

--

---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/bec3c1f8-548e-4372-be80-e061db38cbb6n%40googlegroups.com.

Mahmoud Fayed

unread,
May 21, 2026, 1:23:45 PMMay 21
to The Ring Programming Language
Hello Mansour

>> "This is powerful! Keep up the nice work."

Thank you very much :D

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages