Ask Your Question

Does libreoffice convert to pdf support multi-threading? [closed]

asked 2013-08-24 10:09:21 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have a Java Application which calls libreoffice command to convert documents to PDF. Since my application can have multiple requests at same point of time as Java supports multi-threading, I'm firing multiple libreoffice convert commands but somehow until the first command completes the second command doesn't complete even though the second document was quite small document in size.

For Ex: First document given to convert is of size 2 MB Second document given to convert is of size 50 KB

Until the first document conversion completes, second document conversion doesn't complete even though the size of the 2nd document is quite small.

Is this the limitation of libreoffice that multi-threading is not supported? I had read in jodconverter page saying so

Please help, Gowtham

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-07 03:47:12.789733

1 Answer

Sort by » oldest newest most voted

answered 2013-08-25 02:14:55 +0100

oweng gravatar image

updated 2013-08-25 02:29:46 +0100

I am not sure what you are experiencing is a multi-threading issue. You can only run one instance of LO (soffice.bin) at a time, so I imagine the script is waiting until the first process has finished before running again. If you try running a command-line convert on a very large document it should give an indication of whether more than one core is being used for this task. If multiple cores are being used, then that would indicate multi-thread support (per process) for the conversion to PDF.

This AskLO answer from one year ago indicates that LO is largely not multi-thread capable. Bugs fdo#62774 (XML parsing) and fdo#65046 (file open) have been raised to improve this situation.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-08-24 10:09:21 +0100

Seen: 2,299 times

Last updated: Aug 25 '13