Replies: 1 comment
-
anyone here to answer my question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions