-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Error: Please verify input parameters... on conversion from docx with Table of Contents #32
Comments
Same, having problems with converting docx files containing table of contents. |
Managed to fix the problem by unzipping/decompressing the https://github.com/shelfio/libreoffice-lambda-layer/blob/master/layer.tar.br.zip file, adding directories from share/config directory in normal libreoffice installation to the unzipped libre installation, compressing and zipping it again, and using the result file as a lambda layer. @vladgolubev I would provide a pull request with this updated libre archive, but it added 35mb to the unzipped/decompressed libreoffice installation, and I'm not sure if that's good enough to release publicly |
Thank you, it solved the problem |
@vladgolubev this is a major issue, any comments? |
Hi @tadasauciunas, Thanks for the solution. However, when creating the layer in AWS, I encounter this issue: "Failed to create layer version: Could not unzip uploaded file. Please check your file, then try to upload again." Any idea where that could come from ? Thanks! |
@tadasauciunas I installed libreoffice 6.4.0.1 on my mac but I can't find @evrardts Do you know where to find the share/config` directory? |
@Jun711 I did that long time ago, but here is my code: console.log(execSync('ls -alh /opt').toString('utf8')); // const inputPath = '/opt/lo.tar.br'; await unpack({inputPath, outputPath}); wait(1000) var s3 = new S3({ var key = req.apiGateway.event.requestContext.authorizer.claims['custom:companyId'] + req.body.key var objectData = await getFile(process.env.AWS_COMPANYFILESTORAGE_BUCKET, key, s3) wait(2000) // console.log(execSync('ls -alh /tmp').toString('utf8')); if (! await canBeConvertedToPDF(req.body.fileName)) { writeFileSync( let test wait(3000) const outputFileBuffer = await readFileSync( var slicedKey = key.slice(0, -4) var responseSlicedKey = req.body.key.slice(0, -4) var resp = await putFile(process.env.AWS_COMPANYFILESTORAGE_BUCKET, newKey, outputFileBuffer, s3) fs.unlinkSync( // console.log(execSync('ls -alh /tmp').toString('utf8')); res.json({success: 'post call succeed!', url: req.url, body: req.body, output: true, newKey: responseNewKey}) }); |
@Jun711 should be where all installed apps are stored, perhaps |
@evrardts @tadasauciunas Thanks. I found the |
I use nodejs10 aws lambda + lambda layer created from the latest lo.tar.zip.
It works well, but conversion Word docs in which "Table of Contents" exists, raises an error: "Please verify input parameters... (SfxBaseModel::impl_store file:///tmp/file.pdf failed: 0xc10(Error Area:Io Class:Write Code:16))"
With previous version - lo.tar.gz the same document is converted successfully
The text was updated successfully, but these errors were encountered: