Generate editable Microsoft Word documents directly from Oracle Database using pure PL/SQL.
We are pleased to announce the availability of PL/DOCX, a new native DOCX output engine for PL/DOC.
PL/DOC was designed around a simple principle: define a document once using a unified document model and generate it in different output formats. With the introduction of PL/DOCX, Microsoft Word documents join the existing PDF and EPUB output options.
The new DOCX renderer generates native Office Open XML documents directly inside Oracle Database, without Microsoft Office automation, external conversion services, Java, or additional server-side software.
Native, Editable Word Documents
PL/DOCX does not convert PDF pages into Word documents. Instead, it generates native Word elements directly from the PL/DOC document model.
Paragraphs, tables, lists, images, and other document components remain editable in Microsoft Word, allowing users to continue working with generated documents.
Key Features
- Text and typography: Unicode text, rich text formatting, reusable styles, headings, text alignment, line spacing, and tab stops.
- Native tables: Fixed, percentage-based, automatic, and weighted column widths, merged cells, nested tables, and repeating table headers.
- Document layout: BOX and ROW structures, spacing, horizontal rules, borders, and background colors.
- Page configuration: Standard and custom page sizes, portrait and landscape orientation, margins, and explicit page breaks.
- Images: PNG and JPEG images, inline images, alternative text, and multiple image-fitting modes.
- Lists: Native numbered lists, bullet points, and numbering restarts.
- Hyperlinks: Clickable text and image hyperlinks.
- Headers and footers: Running headers and footers, first-page and odd/even-page variations, and dynamic page-number fields.
- Large documents: Multi-page reports, invoices, and large CLOB-based text content.
Simple PL/SQL Integration
DOCX generation is available through the existing PL/DOC API:
l_docx := pl_doc_api.render_docx(l_doc);
The generated document is returned as an Oracle BLOB, ready for database storage, download through an Oracle APEX application, email delivery, or integration into existing business workflows.
No Oracle DIRECTORY or filesystem access is required for document generation.
One Document Model, Multiple Output Formats
The addition of DOCX output further extends the flexibility of PL/DOC. Developers can use the same document-building API to produce PDF, EPUB, and editable Word documents, subject to the capabilities of each output format.
Typical applications include business reports, invoices, contracts, quotations, technical documentation, and correspondence that requires further editing.
PL/DOCX v0.2.0 is accompanied by a User Guide and a demonstration package containing 24 individual DOCX generation examples.
Pure PL/SQL. Native DOCX. Directly inside Oracle Database.
Discover more at https://plslash.com.
