On 2 September 2022 8:17:17 AM UTC, Curt <cu...@free.fr> wrote: >On 2022-09-02, David Wright <deb...@lionunicorn.co.uk> wrote: >> On Fri 02 Sep 2022 at 01:02:10 (+0000), jindam, vani wrote: >>> i am trying to open pdf file from cli: >>> $ /usr/bin/lowriter --inputfilter="*.pdf" /home/user/file.pdf >> >> ↑↑↑ >> >>> the above command fails to open pdf file >>> >>> what am i doing wrong? >> >> Try removing the characters "put": it's --infilter. >> >> Note that I don't know what kinds of string are expected as an >> argument to infilter, but *.pdf worked for me in your example.
perhaps, you have libreoffice draw. if possible can you confirm. >> >> Cheers, >> David. >> >> > > >I tried with the --infilter flag. lowriter does nothing different here >with or without that flag; it opens the raw pdf file. > >What's supposed to happen? Eyal Rozenberg explanation on lo bugzilla issue (1): The reason is that when you open a PDF file in LO, regardless of which app you opened it with - it gets opened in LO Draw. (1) https://bugs.documentfoundation.org/show_bug.cgi?id=141732 regards, jindam, vani The man page says > > --infilter="<filter>" > Force an input filter type if possible. For example > --infilter="Calc Office Open XML" > only > >I'm afraid I'm uncertain what that means.