Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: Convert Docx to PDF becomes unresponsive #193

Open
ViniciusContini opened this issue Aug 17, 2023 · 1 comment
Open

[Bug Report]: Convert Docx to PDF becomes unresponsive #193

ViniciusContini opened this issue Aug 17, 2023 · 1 comment
Labels
T: bug Functionality that does not work as intended/expected

Comments

@ViniciusContini
Copy link

ViniciusContini commented Aug 17, 2023

Environment
Carbone Version: 3.5.5
Node Version: 18.16.0
Browsers: N/A
Desktop OS: Elementary OS 7 (based on Ubuntu 22.04 LTS)
Other: LibreOffice: 7.5.5

Expected Behaviour
I expect the carbone library's convert function to operate consistently in both simple javascript project and serverless environments, ensuring successful DOCX to PDF conversions.

Actual Behaviour
Currently, when I run the conversion within the serverless project, the process becomes unresponsive, preventing the successful completion of the conversion. This behavior is not observed in the simple javascript project.

Steps to reproduce
Steps to reproduce the bug:

  1. Set up a serverless project.
  2. Integrate the carbone library and invoke the convert function on a DOCX file.
  3. Observe that the conversion process becomes unresponsive or hangs.

Code example

const fileBuffer = readFileSync(docxPath);

const options = {
    convertTo: "pdf",
    extension: "docx",
  };

carbone.convert(fileBuffer, options, async function (err, result) {
     if (err) {
          console.log(err);
     }
     await writeFile("./report.pdf", result);
          process.exit();
});
@ViniciusContini ViniciusContini added the T: bug Functionality that does not work as intended/expected label Aug 17, 2023
@maniac-on-moon
Copy link

maniac-on-moon commented Jan 29, 2024

Please try to install
apt install libnss3
and give a hint if it works. (so did for me, for LO 7.6.4.1).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

2 participants