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
- How to switch encoding of LibreOffice strings in Java UNO API?
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- LibreOffice. Getting OutOfMemoryException while execute Conversion to PDF not instantly, but after long time of work
- Calculate the average of a filtered list/column with a condition (libre office calc)
- LibreOffice converts files from RTF to PDF to plain RTF text
- How to turn off LibreOffice API SDK Reference Browser?
- I compiled LibreOffice on Windows using Cygwin, but after running 'C:/cygwin64/opt/lo/bin/make', I encountered numerous errors
- How do I this shell (.zsh) script to put files into nested folders?
- win32gui SendMessage not working correctly in libreoffice
- Is there a way to program macros to finely tune animations in LibreOffice Impress?
- problem invoking msgbox after closing one document in python. object has no attribute 'getCurrentController'
- Add Image to Libre Office Writer with VB.Net
- How do I get content of a text cursor in Libreoffice Writer?
- How to convert excel to PDF using nodeJS? Getting issues using libreoffice-convert
- Libreoffice classes not available in java code
Related Questions in OPENOFFICE.ORG
- Is there a way to automatically export OpenOffice/LibreOffice drawings to bitmaps, with options?
- How generate a sequence of dates in open office
- Convert a Multi-Page Text/word file to PNG using LibreOffice API in JAVA
- Error While Loading Document using OpenOffice SDK in JAVA
- How to convert text to table rows in the OpenOffice?
- How can I edit document like doc,PDF in my browser?
- Problem with Opening ODS File using Java Code on VMware Virtual Machine
- How to KEEP only first occurence data in Libre Office Calc (with two column filter)
- Table containing the count of multiple columns?
- Error trying to use LibreOffice COM library `com.sun.star.ServiceManager': Access denied
- Need a macro in opencalc
- Code or command-line for converting ODG (open document graphic) to PNG, JPEG, etc? (Windows and/or macOS)
- Connecting to LO from python IDE with PyUNO for debugging
- Angular frontend Spring backend file download not working or corrupt
- How to sign a microsoft office or openOffice certificate with a p12 or pfx certificate
Related Questions in LIBREOFFICE-CALC
- Merge same data in different lines (libreoffice)
- I am trying to sum a cell from many sheets dependent on a condition in each sheet. using libreoffice calc
- How to sum/process portions of a pivot table results?
- Calculate the average of a filtered list/column with a condition (libre office calc)
- How can I use VLOOKUP in LibreOffice Calc?
- How to query image information in a Libreoffice macro?
- Excel/Calc gives wrong comparison result (after sending file)
- How to select entire row in a Libreoffice Basic macro?
- LibreOffice Calc SECOND function returning wrong value - why?
- Configure libreoffice calc such that default search is by columns not rows
- How to Print LibreOffice Calc Document on A2 or Larger Paper When Default Settings Limit to A4?
- From one column generate a table with two columns
- LibreOffice Calc, make row height adjust automatically to show all cell content
- Formulas with data ranges and hidden cells
- Modifying a named range with openpyxl causing LibreOffice pivot table to stop using range
Related Questions in UNOCONV
- unoconv not showing image in pdf when converting from docx to pdf
- how to convert document to pdf in chunks using unoconv
- Issue with unoconv in PHP with a laragon server
- Convert specific sheet with unoconv
- Losing MathML when converting from HTML to Docx using LibreOffice
- convert a docx file into pdf file using unoconv
- convert a docx file into pdf file using unoconv. It's taking too long and aborted
- Context deadline exceeded- goteberg api (/forms/libreoffice/convert)
- Problem converting CSV to XLS, using unoconv
- Problems converting from pptx to pdf with unoconv
- Error converting docx to pdf using Unoconv
- Headers goes missing on conversion of .csv file to .xls using unoconv
- Unable to install unoconv on Amazon Sagemaker
- AWS Lambda Alpine Python Container shows IMAGE Launch error exec format error
- How to trigger AutoFit / SetOptimalHeight in LibreOffice Calc programmatically?
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?
Popular Tags
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: