You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behaviour
Generate a PDF document from and .odt template
Actual Behaviour
Generating PDF loop forever
Steps to reproduce
Steps to reproduce the bug:
Create a nextjs app
Create api\pdf\route.ts
import{NextResponse}from"next/server";constcarbone=require('carbone');//Create a promise for carboneconstutil=require(`util`);constrender=util.promisify(carbone.render);exportconstGET=async(req: Request,res: NextResponse)=>{try{// Data to injectletdata={name : 'John',age : 26};letoptions={// convertTo: 'pdf'}letreport=awaitrender('./template.odt',data,options);returnnewNextResponse(report,{status: 200})}catch(error){returnNextResponse.json({error},{status: 500})}};
run this command
curl -o result.odt --location --request GET 'http://localhost:3000/api/pdf'
The result.odt is generated with no problem
uncomment convertTo: 'pdf' option
The command below loop for ever
curl -o result-pdf.pdf --location --request GET 'http://localhost:3000/api/pdf'
The text was updated successfully, but these errors were encountered:
Please try to install apt install libnss3
and give a hint if it works (so did for me, for LO 7.6.4.1). Since LO missing libss libssl3 und libsmime3 on Ubuntu minimal install.
Environment
Carbone Version: "^3.5.5"
Node Version: v16.15.1
Browsers: Microsoft edge Version 109.0.1518.61 (Official build) (64-bit)
Desktop OS: Ubuntu 22.04.1 LTS
Other: LibreOffice: 7.6.1.2 (X86_64) / LibreOffice Community (installed manually) , nextjs v13.5.4
Expected Behaviour
Generate a PDF document from and .odt template
Actual Behaviour
Generating PDF loop forever
Steps to reproduce
Steps to reproduce the bug:
api\pdf\route.ts
curl -o result.odt --location --request GET 'http://localhost:3000/api/pdf'
convertTo: 'pdf'
optioncurl -o result-pdf.pdf --location --request GET 'http://localhost:3000/api/pdf'
The text was updated successfully, but these errors were encountered: