I'm using unoconv to convert XLSX => PDF. I need LibreOffice to wrap text and increase row heights dynamically depending on the contents of the XLSX file. Is there a way to do this programmatically, maybe at the unoconv/soffice level?
How to trigger AutoFit / SetOptimalHeight in LibreOffice Calc programmatically?
653 views Asked by ldiqual At
2
There are 2 answers
0
Demetry Pascal
On
I tryed to solve this problem here https://github.com/PasaOpasen/_excel_correct_cells
I think results are well, but it's not so easy
Related Questions in LIBREOFFICE
- LibreOffice 4.4.3 - Accessing Documents with jodconverter on different server
- LibreOffice - How to create a file dialog via python macro?
- Space before caption
- libreoffice output filter names
- how export to pdf with embeded fonts in centos soffice command line?
- Best ways of getting tables from R into Libre Office Writer?
- How to automatically calculate the SUS Score for a given spreadsheet in LibreOffice Calc?
- Preview MSOffice files in .NET WPF app via OpenOffice/LibreOffice
- How can I update LibreOffice Calc cells in real-time from a MySQL database?
- Optimizing formula copying in PyUno
- Making a number end to the nearest 7 (no decimals)
- Can I use OR in LibreOffice calc IF statement?
- Lack of access to all functions in exposed interfaces?
- Quickest way to apply a formula to an entire column?
- In Python: Get path and name of file that is open in LibreOffice and Evince
Related Questions in OPENOFFICE.ORG
- LibreOffice - How to create a file dialog via python macro?
- couldn't connect to socket (WSANOTINITIALISED, WSAStartup() has not been called) error while running program
- Not able to execute a class with external class path
- DDEML connection fails after large number of calls
- Preview MSOffice files in .NET WPF app via OpenOffice/LibreOffice
- cast exception while using OpenOffice SDK to create a DataSource
- Lack of access to all functions in exposed interfaces?
- OpenOffice convert doc to pdf with JAVA
- Where to find latest OpenOffice dictionaries?
- Netbeans OpenOffice Plugin throw error
- Installation of openoffice 4.0 for open erp
- Spreadsheet Help: Adding Multiple Rows With "If" Function
- XStorable storeToURL and WebDav
- How to debug crashing openoffice with pyuno
- Openoffice pipe (unix domain socket) somewhere other than /tmp?
Related Questions in LIBREOFFICE-CALC
- SUM(IF()) not working
- LibreOffice: Cells with text to date
- Best ways of getting tables from R into Libre Office Writer?
- How to automatically calculate the SUS Score for a given spreadsheet in LibreOffice Calc?
- Spreadsheet if else sum
- How can I update LibreOffice Calc cells in real-time from a MySQL database?
- LibreOffice Calc new line in cell format code
- Dynamic number of random numbers
- UDF/User defined function libreoffice basic with built-in help/tip
- Replicate data in cells on other sheets within same document on a global document basis in LibreOffice Calc
- Making a number end to the nearest 7 (no decimals)
- Moving selection (only) of selected rows between columns
- Testing if first character of a string is non-numeric in LibreOffice Basic
- Can I use OR in LibreOffice calc IF statement?
- Why is cell increment not detected correctly in LibreOffice Calc
Related Questions in UNOCONV
- UNOCONV failing to convert files in PHP on CentOS
- 'unoconv' is not recognized as an internal or external command, operable program or batch file
- Different encoding in file retrieved via curl or node request module
- Unoconv and IIS perimission issues
- Unoconv/libreoffice command line convert very slow
- Thoroughly cofused about using .doc APIs
- Unoconv LibreOffice Pdf Preview is generating a blank pdf
- Django Python OSError No such file or directory but file exists
- PPT changing color while converting with Unoconv
- How to run unoconv via subprocess in django python?
- Multithreaded unoconv (libreoffice)
- Error converting docx to pdf using Unoconv
- Unoconv - Maintain scaling converting xlsx to pdf
- How to trigger AutoFit / SetOptimalHeight in LibreOffice Calc programmatically?
- AWS Lambda Alpine Python Container shows IMAGE Launch error exec format error
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The only way that worked for us was by patching unoconv so that it immediately performs the following actions after opening a document:
From python, it looks like this:
The patch file is here: https://gist.github.com/ldiqual/065aada05cfb50443bc67fc3ae99ea14
And this is how it is applied in Docker: