Revision | 85ca4f584d477c6e6c7c3cf8005b93423f2c280d (tree) |
---|---|
Zeit | 2022-03-31 19:21:28 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A script to convert ods files to xlsx files.
@@ -0,0 +1,40 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | +# #convert pdf to png | |
4 | + | |
5 | +# FILES="*.pdf" | |
6 | + | |
7 | +# for F in $FILES | |
8 | + | |
9 | +# do | |
10 | +# newname=`basename "$F".pdf` | |
11 | +# echo $newname | |
12 | +# pdftoppm "$F" -rx 300 -ry 300 "$newname.png" | |
13 | + | |
14 | +# done | |
15 | + | |
16 | + | |
17 | + | |
18 | +FILES="*.ods" | |
19 | + | |
20 | +for F in $FILES | |
21 | + | |
22 | +do | |
23 | +newname=`basename "$F"` | |
24 | +echo $newname | |
25 | +# pdftoppm "$F" -rx 300 -ry 300 "$newname.png" | |
26 | +soffice --convert-to xlsx --outdir text_conversion/ $newname | |
27 | +done | |
28 | + | |
29 | + | |
30 | + | |
31 | +# FILES="*.xlsb" | |
32 | + | |
33 | +# for F in $FILES | |
34 | + | |
35 | +# do | |
36 | +# newname=`basename "$F"` | |
37 | +# echo $newname | |
38 | +# # pdftoppm "$F" -rx 300 -ry 300 "$newname.png" | |
39 | +# soffice --convert-to csv --outdir text_conversion/ $newname | |
40 | +# done |