Comments (2)
This is my workaround which I might just keep and retire the uno* apps. I'm only doing a few dozen files at a time, so the efficiency is not really a factor.
#!/bin/bash
#this set of commenting is all relevant to the broken unoconv command.
#echo "If you recieve \"Error: Unable to connect or start own listener\" Just
#run the command again. If you get pyuno bridge error try running \"pip
#install unotools\""
#put this bash script in the same folder as the odt files
# you want to make pdf from. it will safely convert all of them
#create a folder in current directory with current date
mkdir -p $(date +%y%m%d)
# copy all odt files from current directory to the dated one just created and enter the folder
cp *.odt $(date +%y%m%d)
cd $(date +%y%m%d)
These are just the unoconv* commands, ignore.
#unoconv -f pdf -e SelectPdfVersion=1 -e ExportNotes=false '*.odt'
# unoserver --daemon
# unoconvert --convert-to pdf *.odt -
# loop through all the odt files in the dated folder and
# cconvert them to pdf, leaving the originals intact.
for f in .*.odt
do
echo "converting $f to pdf"
soffice --headless --convert-to pdf *.odt
done
# go up to the folder the script is in, create a folder called pdf if
# it is not already there, and copy the pdf files into a subfolder
# of the pdf named with the current date.
mkdir -p ../pdf/$(date +%y%m%d)
mv *.pdf ../pdf/$(date +%y%m%d)
cd ..
# delete the temprorary dated folder
rm -R $(date +%y%m%d)
from unoserver.
from unoserver.
Related Issues (20)
- Issue with unoconverter initialization: Binary URP bridge disposed during call on Windows 10 HOT 1
- Error code -11 when converting docx to pdf via unoconvert HOT 7
- --convert-to "txt:Text (encoded):UTF8" HOT 4
- AttributeError: 'NoneType' object has no attribute 'supportsService' while converting to png/jpg HOT 1
- Memory leak HOT 1
- Unable to set custom filter `EmbedImages` HOT 8
- Embedded Fonts Not Used During Conversion HOT 1
- Kill LibreOffice? Save a pid file? HOT 2
- Error converting from odt to txt HOT 1
- unoserver crash randomly HOT 4
- Setting PNG export resolution? HOT 4
- Setting page number for PNG export? HOT 1
- How to start service properly? HOT 5
- unable to start UnoServer from python HOT 1
- How to apply filter to export data from xslx to csv keeping utf-8 HOT 1
- Ability to set --infilter HOT 2
- DeprecationWarning Is this slated to be fixed? HOT 2
- Troubleshooting unoconvert Network Connection Error on Ubuntu 22.04 with Python 3.10 and LibreOffice 7.3.7.2 in a Closed Network Environment HOT 7
- Why --uno-interface defaulting to --interface value instead of 127.0.0.1 HOT 2
- The value of --host-location ignored for outfile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unoserver.