The Apryse Fall 2026 Release is Here: Explore What's New

Home

All Blogs

How Apryse and LibreOffice Compare for Office-to-PDF Conversion at Scale

Published October 14, 2026

Updated October 14, 2026

Read time

5 min

email
linkedIn
twitter
link

How Apryse and LibreOffice Compare for Office-to-PDF Conversion at Scale

Sanity Image

Roger Dunham

Summary: Converting Microsoft Office documents to PDF at scale requires both reliable throughput and output that closely matches Microsoft Word. We tested Apryse Server SDK and LibreOffice using 184 files from two public corpora, with PDFs produced by Microsoft Word serving as the baseline. In our test environment, Apryse delivered higher throughput (while this varied from file to file, Apryse was typically six times faster) and more frequently preserved page count, fonts, and document content. This article explains the methodology, results, and limitations of the comparison.

Sanity Image

Introduction

Copied to clipboard

While Microsoft Office is often considered to be the “truth”, there are times when different versions of Office disagree on how the document should look, a problem which is particularly likely with older documents.

The variation in the way that different tools render the same DOCX file is a major reason for converting them to PDF – increasing the consistency of appearance across a wide range of tools and platforms.

Manually converting documents to PDF using Microsoft Word is not, however, a scalable approach. It works for five documents but not for 500,000.

That is where an automated Office-to-PDF conversion solution becomes necessary.

Automating Microsoft Word is possible, but Word was not designed for unattended server-side automation, which can cause problems, for example, if a modal dialog appears then the conversion process will hang.

LibreOffice, on the other hand, was designed with automated conversion in mind. This is done by calling it in “headless” mode, and offers a cheap, open-source option.

Apryse Server SDK also offers a way to convert DOCX files to PDF, but it is both closed source and has a license fee.

In this article we will look at why using Apryse Server SDK is a strong case despite the free alternatives.

Sample Data

Copied to clipboard

When evaluating a tool, you should of course use files that are representative of the types of documents that you use in your business.

Since that varies from industry to industry, for this article we will use files taken from two publicly accessible corpora.

The first corpus was DOCXCORP which has over 736,000 DOCX files. There is a range of languages, and the corpus is catalogued by subject areas, including Legal, Education, Government, and Healthcare. 100 documents were “blindly” chosen from the corpus (rather than cherry-picking documents that would favor the Apryse Server SDK). The selection took every one hundredth file starting at #42.

The second set of documents are from the GovDocs1 corpus which contains almost a million documents collected from government web servers in a wide range of formats, but which are around fifteen years old. All of the DOC and DOCX files from one folder (#042) were used (which led to some interesting results which are described later)

Testing Environment

Copied to clipboard

The testing environment was a Windows 11 PC with 13th Gen i7-1365U processor, 16GB RAM, 10 Cores and 12 Logical Processors.

In production, you could use a dedicated Windows or Linux server. Production hardware affects processing speed and which fonts are available.

The Apryse Server SDK supports the use of a substitute font package which can significantly improve font fidelity. Read more about font substitution when converting a DOCX file to PDF.

For this article, no dedicated font substitution file was used for the Apryse Server SDK, so conversion relied on locally available fonts.

A Note on Versions

Copied to clipboard

The following tools were used:

  • Apryse Server SDK via @pdftron/pdfnet-node12.1
  • LibreOffice 26.8.0.3 (x86_64)
  • Microsoft® Word for Microsoft 365 MSO (Version 2608 Build 16.0.20326.20072) 64-bit

Conversion of Documents to PDF

Copied to clipboard

Microsoft Word was controlled programmatically.

Headless LibreOffice was controlled via a script using:

soffice--headless --nologo --nodefault --norestore --nolockcheck --convert-to pdf --outdir

Apryse Server SDK was controlled via a script which ultimately called the following:

Note: LibreOffice was found to work unreliably in a multi-threaded environment, so after several attempts the processing was performed by a single threaded app.

Apryse Server SDK worked reliably when called from both a single and a multi-threaded harness.

Comparing Documents

Copied to clipboard

Microsoft Word for Microsoft 365 was used to produce the baseline PDF. Fidelity therefore means similarity to the output from that specific Word version in the stated test environment.

Document fidelity was calculated using the Apryse Server SDK to compare the converted output against the baseline created by Word. This was performed in a C# app.

Using the Apryse Server SDK may appear "circular" at first, however comparing two different PDFs is not remotely the same as converting a Word document into a PDF, and being able to do both with a single SDK is a strength not a weakness.

Measurements included page count accuracy, font accuracy, the number of text differences that were detected, and so on. These measurements are simple to calculate, fast to collect, and relevant to output fidelity.

The importance of each specific aspect depends on your use-case, for example, the correct page count often matters more than whether the number of words on a specific page remains the same.

Results were calculated for each pair of PDFs and then aggregated across each dataset.

If you would like to use the comparison tool with your own documents, then please contact us at blog-feedback@apryse.com.

The Apryse Semantic Text difference mechanism, is great, but it is not perfect. Sometimes finding differences that are not visually significant.

Post-process custom code was added to remove pairs of edits where a deletion was immediately followed by an insertion of the same text, and where codepoints for characters changed but the result was non-visible to the user (for example the way in which bullets can be encoded).

Semantic text differences across page boundaries were retained.

The ability to work with data extracted from PDFs at this level is one of the great things about working with the Apryse Server SDK.

Results

Copied to clipboard

Conversion Time

Copied to clipboard

As noted earlier, attempts to use LibreOffice in a multi-threaded (or multi-process) environment failed. As such, LibreOffice conversions were only performed single-threaded.

100 Modern DOCX Files

Copied to clipboard

Apryse

LibreOffice

Multi-threaded

Single Threaded

Single Threaded

Total Time

24s

51 s

355 s

Fastest

0.473s

0.410s

4.4s

Slowest

22.9s

22.147s

25.24s

84 Older DOC and DOCX Files

Copied to clipboard

Apryse

LibreOffice

Multi-threaded

Single Threaded

Single Threaded

Total Time

52s

126s

300s

Fastest

1.1s

0.2s

1.7s

Slowest

29.7s

9.3s

14.9s

Conclusion Apryse Server SDK is 6x faster than LibreOffice for older doc and docx files, and up to 14x faster for modern files. Even in a single threaded environment the conversion is 2.5 to 6 times faster than for LibreOffice

If you are only converting a single file, then the difference between using the Apryse Server SDK and LibreOffice will save you perhaps 3 seconds. But if you had to convert 10,000 documents, then that relates to a difference of 8 hours.

Quality

Copied to clipboard

The testing mechanism measures a number of features. Only the main ones are included in this article.

Each document gets an overall score from 0 to 100 based on four sub-scores:

  • Text: 100 × the content similarity between the reference and the candidate.
  • Layout: the percentage of positioned words that aren’t misplaced. It’s then reduced for words that reflowed elsewhere and for pages whose content shifted as a block. It’s also scaled down when fewer than 25% of the reference words could be positioned at all.
  • Font: 100 × (1 − font-usage divergence), minus 5 points for each extra non-embedded font in the candidate compared with the reference.
  • Page: the share of pages that matched, reduced by up to half for pages that changed size or rotation.

The overall score is calculated by weighting these sub-scores: text 0.30, layout 0.25, font 0.25, and page 0.20.

100 Modern Documents

Copied to clipboard

Apryse

LibreOffice

All files

All files

Number of files

100

100

Overall Score

94.5

90.0

Page count correct

92

77

Fonts correct

87

79

Identified differences

1143

1124

#documents with no differences

62

42

The number of identified differences was slightly higher for Apryse than for LibreOffice with this set of documents, but looking deeper, many of those differences were found in a single file, where a fixed-width font and a very specific right-hand margin caused lines to break at different words. Each change was considered a difference, even though the document remained perfectly readable - it is very much an edge case that had been included in the test-set by chance.

It would have been easy to exclude that file from the test-set, but the whole intention was to allow the superior quality of Apryse conversions to be shown with a "random" set of files, not a cherry-picked one as used by some companies.

Both Apryse and LibreOffice sometimes used fonts that did not match those used by Microsoft Word to create the “truth” PDF. This affected 13% of the files converted by Apryse but 21% of those converted by LibreOffice.

Even though no attempt was made to get Apryse to use a dedicated font mapping process, it offers far more consistent results than LibreOffice.

Font substitution can cause either trivial aesthetic changes in the appearance of the document, or, if the font metrics differ significantly, this can affect the number of words that fit on a page, resulting in changes in page layout, and with text overflowing from one page to another causing extra pages to be created.

Since font substitution can affect page layout, the test was repeated with just the subset of 79 documents for which LibreOffice had not substituted fonts.

Effectively, that involved cherry picking files that LibreOffice does well with. Even with that set, Apryse gave consistently higher fidelity.

Just Files Where Fonts were not Replaced by LibreOffice

Copied to clipboard

Apryse

LibreOffice

All files

All files

Number of files

79

79

Overall Score

96.2

93.5

Page count correct

73

63

Fonts correct

79

79

Identified differences

409

499

#documents with no differences

56

40

84 Older DOC/DOCX Files

Copied to clipboard

The older sample set illustrated two problems that are common with real-world data.

  • 1 document was not, in fact, a DOC file, just some data with a .DOC extension.
  • 4 files were blocked by computer policy from being edited since they contained “binary data”. That meant that Microsoft Office could not convert them. If that process had been used in production, then either the conversions would have failed and caused the process to hang, or data would have been lost.

Apryse and LibreOffice, on the other hand, were able to convert these four files. The data from these is not included in the results however since there was no baseline available to compare the conversion with.

Apryse

LibreOffice

Number of files

79

79

Overall Score

94.4

91.0

Page count correct

65

56

Fonts correct

64

54

Identified differences

3867

4515

#documents with no differences

36

21

Once again, Apryse gave consistently higher fidelity conversions.

Wrapping Up

Copied to clipboard

LibreOffice provides a free, open-source way to automate Office-to-PDF conversion. However, in our Windows test environment, Apryse provided substantially higher throughput and more consistently reproduced the page count, fonts, and content of the PDFs generated by Microsoft Word.

The size of the performance difference depended on both the document set and the execution model. Apryse was approximately 2.4 to 7.0 times faster in the reported single-threaded tests. Because Apryse also ran reliably with concurrent conversions in our harness, its measured corpus-level throughput advantage increased to approximately 5.8 times for the older files and 14.8 times for the modern files.

Conversion fidelity also favored Apryse across the reported page-count, font, and overall scoring measures. The results do not mean that every document will convert better with Apryse, and performance will vary with hardware, fonts, document complexity, and software versions. They do indicate that for this corpus and test configuration, Apryse offered the stronger combination of throughput, operational reliability, and similarity to the Microsoft Word baseline.

To wrap up, Apryse offers faster, higher fidelity conversion of DOCX files to PDF than is available using LibreOffice.

If you have any questions, you can reach out to us on Support channel.

If you have any questions about this blog, or there are other blogs that you would like us to write, then please contact us at blog-feedback@apryse.com.

Ready to get started?

Sign up for a free trial to begin implementing the Apryse SDK in your application!