Compare commits
No commits in common. '5310ac5f2fd1c14207c424ae99fb9646615ebf82' and '3797119bb58569226641359232eddbacecbbc2a7' have entirely different histories.
5310ac5f2f
...
3797119bb5
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Create the pdf folder if it doesn't exist
|
|
||||||
mkdir -p pdf
|
|
||||||
|
|
||||||
# Iterate through all .pptx files in the current folder
|
|
||||||
for file in *.pptx; do
|
|
||||||
if [ -f "$file" ]; then
|
|
||||||
# Extract the base name (without extension) of the file
|
|
||||||
base_name=$(basename "$file" .pptx)
|
|
||||||
|
|
||||||
# Convert the .pptx file to .pdf and save it in the pdf folder
|
|
||||||
libreoffice --headless --convert-to pdf --outdir pdf "$file"
|
|
||||||
|
|
||||||
echo "Converted $file to pdf/$base_name.pdf"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Conversion complete!"
|
|
||||||
|
|
Loading…
Reference in New Issue