DocumentBuilder icon indicating copy to clipboard operation
DocumentBuilder copied to clipboard

poor performance when converting doc to pdf

Open lqzerogg opened this issue 8 months ago • 1 comments

Describe your problem: I am keen on harnessing the capabilities of OnlyOffice to produce PDF documents for my clients. Despite an overwhelmingly positive overall experience, I've stumbled upon a performance hurdle when converting .docx files to .pdf on my server, which is noticeably sluggish. From builder.sever part, I see the example code of using document builder. Like below:

` // from document builder server var BuildFile = function (inputFilePath, outputFilePath) {

child_process.execFileSync(builderPath, [inputFilePath], { cwd: path.dirname(builderPath) });

try { fileSystem.accessSync(outputFilePath, fileSystem.F_OK); } catch (e) { throw "An error has occurred. Result File not found"; } };`

It appears I'd have to initiate a separate process for each document conversion. Is it possible to launch a single child process and instruct it to carry out document conversions through Inter-Process Communication (IPC)? I'm dealing with hundreds of requests instantaneously and need to convert several hundred documents each second. Enhancing performance to reduce server resource consumption is crucial for me.

Be clear in your description of the problem. It appears I'd have to initiate a separate process for each document conversion.

DocumentBuilder version: newest

Installation method: apt get install

Operating system: linux

lqzerogg avatar Jul 01 '24 03:07 lqzerogg