Thursday, May 9, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2837  / 3 Years ago, fri, september 17, 2021, 9:12:28

I am trying to convert several thousand documents from LWP (Lotus Word Pro) to DOC. When the converting process gets to around 250 (To 229 in some cases, 248 in others, 245, etc.. It gets near 250) documents converted it just quits.



The terminal lines I am using to convert this are:



soffice --headless --convert-to doc --outdir /home/cyrex/work/biopsias/2007 *.lwp



or



libreoffice --headless --convert-to doc --outdir /home/cyrex/work/biopsias/2007 *.lwp



both work but only get to around 250. I have 60K documents to convert and doing them 200 at a time would take A LOT of time.



Converting them to ODT also has the same problem.



I have LibreOffice version 3.5



UPDATE: I have checked to see if the 229 file was the cause. I have also checked if the following or the previous file were the cause. Negative. I even deleted the previous 20 files before the 250 barrier and the 20 after it. Same problem. I also opened the 229 file, the 228 file and the 230 file with LibreOffice with no problem. It just fails randomly before the 250.



UPDATE2: Tried with another completely different group of files, this time, DOC. Again it gets up to less than ~250. Just in case it matters I have the following hardware:



CPU - Core i7 2600

RAM: 16GB

HDD: 120GB SSD

MOBO: Intel DZ68DB

OS: Ubuntu 32 Bit


More From » libreoffice

 Answers
0

I did the following but will not mark it as an answer. This only solves doing the whole conversion. The problem still exists. It grabbed an idea from the answer by Bjoern Michaelsen (+1 to you friend).



I made a simple "convert" file with this in it:



for F in `find /home/cyrex/Desktop/mom/$1 -type f -name "*.lwp"`
do
soffice --headless --convert-to doc --outdir /home/cyrex/work/$2 $F
done


It just grabs 2 variables, the one where I am getting the documents from and the one where I am sending them to. Something like:



./convert inmuno/vph/2007-2009/2007 vph/2007



this would grab everything in /home/cyrex/Desktop/mom/inmuno/vph/2007-2009/2007, convert that to DOC and then send it to /home/cyrex/work/vph/2007.



Like I said, is a half baked answer, might help somebody else until a proper answer comes out using only the libreoffice/soffice command.


[#36417] Sunday, September 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brailloni

Total Points: 122
Total Questions: 108
Total Answers: 108

Location: North Korea
Member since Tue, Apr 4, 2023
1 Year ago
;