Home CSS Editor Reports Office Code Gallery Download Order Contacts

HTML Office Library: bridge between desktop and web

The first Delphi/Lazarus library for reading all office formats (including PDF) and converting to HTML on the fly.

The HTML Office Library is designed to work with the most popular document formats and convert documents from any source (file, DB, etc) to HTML. Converted document contains only plain HTML/CSS/SVG and can be displayed using HTML Component library or any browser.

Library provides a uniform access to an entire document and its parts, document resources (fonts, images, etc) and properties (title, Table of Contents, etc).

HTML Office Library doesn't depend on any external components (DLLs, OLE, ActiveX, etc) and is cross-platform. Fully written in Delphi and comes with full source code.

Following document formats are supported:

Besides the document conversion classes it also contains the following:

Library also contains fully functional and database independent full text search engine which can easily seacrh across tens of thousands documents in different formats.


Supported Delphi versions are: Delphi 7 - Delphi 11.3 and Lazarus2+
Supported platforms: Windows 32/64 VCL and FMX, MacOS, Linux, Android, iOS.
For Delphi 7 - 2007 unicode is fully supported using widestrings

How fast is it? Some measurements:

DocumentConvert to HTML with embedded imagesConvert to HTML with referenced imagesConvert to text
DOC, 838 pages, 17 Mb.437 ms, 20 Mb290 ms, 3.4 Mb.40 ms, 1.6 Mb.
DOCX, 41 page, 1 Mb.40ms, 1.6 Mb40 ms, 306 Kb10 ms, 76 Kb
PDF, 182 pages, 31 Mb3500 ms, 75 Mb312 ms, 2.7 Mb200 ms, 380 Kb
PPT, 16 slides, 4.8 Mb218 ms, 6.8 Mb140 ms, 104 Kb170 ms, 98 Kb
XLS, 9000 rows, 7 columns, 2 Mb94 ms, 3.5 Mb62 ms, 1.2 Mb
XLSX, 115000 rows, 95 columns, 44 Mb (320 Mb uncompressed)9200 ms, 275 Mb6900 ms, 40 Mb

Search engine test

Sample database50 000 documents
Indexing time10 min
Index size120 Mb
Search time50-300 ms (depending on number of found documents)
Dictionary size230000 words
Total words in documents21 million

There are two compiled demos available:

  1. Simple document viewer: allows to view any document from disk using file tree on a left side and HtPanel on a right side.
    To view final HTML press View in browser button. No installation required.

  2. Code search application built using Office Library create full text search index for documents located in selected folders and find any document from application or Web.
    Documentation in PDF format

    Documentation in CHM format

    Purchase link (Site License) Purchase link (Single Developer License)