-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Trying to run with convertTo: "pdf"
option.
The process fails with the following
bcgov-carbone_1 | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1 | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1 | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off
To Reproduce
docker-compose service
image: bcgovimages/alpine-node-libreoffice
environment:
- LOCAL_STACK=1
- DEBUG=*
working_dir: /src
volumes:
- ./:/src
- ./.carbone/tmp:/tmp
command: [ "yarn", "test" ]
carbone.test.js
const fs = require("fs")
const { render } = require("./carbone")
describe("carbone", () => {
it("should parse test.docx to test.docx", async () => {
const result = await render(__dirname + "/test.docx", {
options: {
reportName: "test.docx"
}
}, false);
fs.writeFileSync(__dirname + "/.carbone/test.docx", result);
}, 60000)
it("should convert test.docx to test.pdf", async () => {
const result = await render(__dirname + "/test.docx", {
options: {
reportName: "test.pdf",
convertTo: "pdf"
}
}, false);
fs.writeFileSync(__dirname + "/.carbone/test.pdf", result);
}, 60000)
})
Expected behavior
The DOCX document to be converted to PDF
Desktop (please complete the following information):
- Mac
Additional context
bcgov-carbone_1 | 2022-06-10T14:51:12.973Z carbone:converter process Office of factory 0 died 1
bcgov-carbone_1 | 2022-06-10T14:51:12.979Z carbone:converter process Python of factory 0 died null
bcgov-carbone_1 | 2022-06-10T14:51:12.979Z carbone:converter factory 0 is completely off
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working