# libreoffice-convert **Repository Path**: mirrors_bokuweb/libreoffice-convert ## Basic Information - **Project Name**: libreoffice-convert - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # libreoffice-convert # A simple and fast node.js module for converting office documents to different formats. ## Dependency ## Please install libreoffice in /Applications (Mac), with your favorite package manager (Linux), or with the msi (Windows). ## Usage example ## ```javascript const libre = require('libreoffice-convert'); const path = require('path'); const fs = require('fs'); const extend = '.pdf' const enterPath = path.join(__dirname, '/resources/example.docx'); const outputPath = path.join(__dirname, `/resources/example.${extend}`); // Read file const enterPath = fs.readFileSync(enterPath); // Convert it to pdf format with undefined filter (see Libreoffice doc about filter) libre.convert(enterPath, extend, undefined, (err, done) => { if (err) { console.log(`Error converting file: ${err}`); } // Here in done you have pdf file which you can save or transfer in another stream fs.writeFileSync(outputPath, done); }); ```