Skip to content

Commit b25bde2

Browse files
fix: linux command
1 parent 7f1d20f commit b25bde2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function linux(inputPath, outputPath, keepActive) {
5252

5353
const inputFilePath = path.resolve(inputPath);
5454
const outputFilePath = outputPath ? path.resolve(outputPath) : `${inputFilePath}.pdf`;
55-
const command = `libreoffice --headless --convert-to pdf "${inputFilePath}" --outdir "${path.dirname(outputFilePath)}"`;
55+
const command = `unoconv -f pdf -o "${outputPath}" "${inputPath}"`;;
5656
execSync(command);
5757

5858
}

0 commit comments

Comments
 (0)