Closed dtenenba closed 1 year ago
Solved this...R added a bunch of stuff to my LD_LIBRARY_PATH. Running this before trying the conversion made it work:
Sys.setenv(LD_LIBRARY_PATH="/usr/lib/libreoffice/program//")
Maybe related to https://github.com/hrbrmstr/docxtractr/issues/29
Hello, I have a pptx file called slides.pptx that I want to convert to PDF using docxtractr.
When I try, I get this:
However, when I take that soffice command line at the end, and change the last parameter to
/tmp/slides.pptx
, it works (despite throwing a warning). It produces the output PDF in/tmp
and I verified that its contents are correct:So, you might ask, why don't I just use the command line. Well, this is part of a larger software stack that relies on docxtractr, and I don't want to reinvent the wheel.
This is inside a Docker container based on Debian 12, with R-4.2.2 and docxtractr 0.6.5.
BTW, I do not have the javaldx program in the container (although I installed libreoffice via apt-get) but it does not seem to matter - despite the warning, soffice converts the pptx successfully.
So in a nutshell I am wondering why I can successfully convert pptx to pdf on the command line but not with docxtractr which apparently uses pretty much the same command line under the hood.
Thanks