I am trying to run the following macro which i picked form Re: [O] [ox-odt] "optimal" width of tables to set optimal column widths on a docx file.
I am running soffice inside docker on centos7 . Yum installed libreoffice-headless-4.3.7.2-5.el7_2.1.x86_64 and libreoffice-writer-4.3.7.2-5.el7_2.1.x86_64. Copied the xba file to /usr/lib64/libreoffice/presets/basic/Standard/OptimizeColumnWidth.xba . ’
Command being executed is soffice --headless Test.docx “macro:///Standard.OptimizeColumnWidth.OptimizeColumnWidthSaveQuit()” . The execution hangs until i press ctlr+c . I dont think the macro is even run.
If i run the same macro on Mac , /Applications/LibreOffice.app/Contents/MacOS/soffice --headless ~/Desktop/Test.docx “macro:///Standard.Module1.OptimizeColumnWidthSaveQuit()” , the macro modifies the tables in Test.docx and saves it.
So wondering what i am missing here.
PS: i dont see the ~/.config folder until i run soffice. After i run soffice for the first time , i see it and it contains the macros. I dont see a permission issue too on the ~/.config path.