npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@opendevise/antora-office-to-pdf-extension

v1.0.9

Published

An Antora extension that converts office files (.doc, .docx, .rtf, etc.) in the attachments family to PDF using either LibreOffice or Microsoft Office via docto and updates the file metadata so references point to the converted PDF file.

Downloads

59

Readme

Antora Office to PDF Extension

An Antora extension that converts attachments in an office format (by default, files with a .docx extension) to PDF before publishing.

Overview

Much like AsciiDoc files (.adoc) are converted to HTML (.html) by Antora, you can use this extension to do a similar conversion with attachments. References to the converted PDF should be expressed as a reference to the source file (i.e., the xref should point to the .docx source file rather than the .pdf published file). During the contentClassified event, this extension iterates over all attachments in a word processor format (by default, .docx) and uses the libreoffice command (LibreOffice in server mode) on Linux or docto.exe command (Microsoft Office via DocTo) on Windows to convert each file to PDF.

The extension can be configured to process other office document formats as well, such as .doc, .odt, .rtf., .xlsx, .pptx, etc.

Usage

$ npx --package antora --package @opendevise/antora-office-to-pdf-extension \
  --extension @opendevise/antora-office-to-pdf-extension antora-playbook.yml

Configuration

The extension supports the following configuration keys:

| Name | Type | Default | Description | | --- | --- | --- | --- | | batch_size | Integer | 150 | The maximum number of files to convert in a single call to the office application. Use 0 for no limit. NOTE: Actual batch size may be smaller when there are multiple document formats in a batch since each office application must be run separately. | | command | Command name or file path (String) | libreoffice on Linux docto on Windows | The program command (i.e., base call) to use to convert office files to PDF. Use a map with the keys linux and windows to specify a command per operating system. Use ./docto.exe to use the docto executable relative to the playbook directory. On Windows, the value libreoffice will be replaced with C:\Program Files\LibreOffice\program\soffice.exe. | | extensions | String[] | ['.docx'] | A list of file extensions to use to filter files to process. Supported file extensions: .doc, .docx, .odt, .rtf, .xls, .xlsx, .ods, .ppt, .pptx, .odp | | skip_files_libreoffice | String[] | [] | A list of files to skip when converting files using libreoffice. Each entry is in the form <version>@<component>-<module>-<relative>, with all occurrences of / replaced with -. If version is empty, the <version>@ prefix is dropped. |

Copyright and License

Copyright (C) 2025-present OpenDevise Inc. and the Antora Project.

Use of this software is granted under the terms of the Mozilla Public License Version 2.0 (MPL-2.0).