Introducing PL/DOCX Viewer – A Free DOCX Viewer Plugin for Oracle APEX

Displaying Microsoft Word documents directly inside an Oracle APEX application should be simple. Yet web browsers do not natively render DOCX files the way they display PDFs.

PL/DOCX Viewer solves this problem with a lightweight, read-only Oracle APEX Region Plugin that displays Microsoft Word DOCX documents directly in the browser.

The plugin is free to download, use and modify, including customization for your own applications.

What does PL/DOCX Viewer do?

PL/DOCX Viewer displays DOCX documents stored as Oracle Database BLOBs inside a standard APEX region.

It provides:

  • Native APEX integration – Add the viewer as a Region Plugin in Page Designer.
  • SQL-based document source – Retrieve DOCX content directly from an Oracle BLOB column.
  • Browser-side rendering – No Microsoft Word, LibreOffice or external conversion service required.
  • Zoom controls – Zoom in, zoom out and reset to 100%.
  • Responsive layout – Automatically fills the available browser height or uses a fixed height.
  • APEX integration – Supports region refresh, page items and JavaScript events.
  • Compact interface – Document title, loading status and controls in a single toolbar.

The viewer uses the JavaScript libraries docx-preview and JSZip to render Word documents as HTML in the browser.

How to install and use it

Installation takes only a few steps.

Step 1 – Download the plugin

Download the PL/DOCX Viewer package, including the Oracle APEX plugin export and User Guide.

Step 2 – Import into Oracle APEX

Open your application in App Builder, navigate to Shared Components → Plug-ins, and import:

region_type_plugin_com_plslash_docx_viewer.sql

The plugin will appear as PL/DOCX Viewer in the Region Type selection.

Step 3 – Create a viewer region

Create a new region on any APEX page, select PL/DOCX Viewer, and configure its SQL source.

For example, assuming your application stores DOCX files in a table named DOCUMENTS:

SELECT docx_blob FROM documents WHERE document_id = :P21_DOCUMENT_ID

Set Page Items to Submit to P21_DOCUMENT_ID.

Step 4 – Configure and run

Choose the viewer height mode, initial zoom level and toolbar visibility. Save the page and run the application.

The selected DOCX document will be rendered directly inside the APEX region.

No dedicated document server, additional Oracle packages or special database tables are required by the plugin itself.

Free to use and modify

PL/DOCX Viewer is provided as a free developer component.

You can download it, use it in your Oracle APEX applications and modify the supplied source code to meet your requirements.

The package includes the APEX plugin export and JavaScript/CSS source files, making it easy to customize the interface, styling or integration behavior.

There is no PLslash license fee for using this plugin.

Technical details

The current release is v0.1.6, developed and tested with Oracle APEX 26.2.

It supports DOCX documents up to 10 MB and uses version-pinned JavaScript libraries loaded from a CDN. The browser must be able to access these libraries.

The viewer is designed for document preview, not editing. Complex Word layouts may render differently from Microsoft Word.

Download PL/DOCX Viewer

The plugin package and installation guide are available here:

Download it, integrate it into your application, and customize it as needed.

Free to use. Free to modify. Built for Oracle APEX developers.

PLslash
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.