cherfia / chromiumly

A lightweight Typescript library that interacts with Gotenberg's different modules to convert a variety of document formats to PDF files.
MIT License
61 stars 7 forks source link

Listed formats are not support #362

Closed satramcs closed 4 months ago

satramcs commented 4 months ago

I need support for below file formats docm, potx, pptm psd, xlsb, xlsm, vsdx, vsd.

Those formats are listed as supported formats in gotenberg documentation image

I checked in chromiumly code, mentioned formats are not listed. I'm getting the error docm is not supported

Please add the missed supported formats here src/libre-office/utils/constants.ts

Sample code

async function main() {
    const { PDFEngine } = await import("chromiumly");
    const buffer = await PDFEngine.convert({
        files: [path.join(__dirname, "/resources/test-file.docm")]
    });
    fs.writeFileSync(path.join(__dirname, "/resources/test-file.pdf"), buffer);
}
cherfia commented 4 months ago

@satramcs I will look into it today, and keep you posted.

cherfia commented 4 months ago

@satramcs the LibreOffice extensions, which you requested, have been added to version 2.10.0 🚀 Please test it out and let me know if it meets your needs 👍

satramcs commented 4 months ago

Thanks @cherfia, It's working fine for me.

cherfia commented 4 months ago

@satramcs Awesome 🚀