I need to export odt writer file that contains forms to pdf via command line, but without exporting the odt as pdf form (the same thing as you do in libreoffice when you choose export as PDF and don't select forms). I know I can do conversion via unoconv or libreoffice command line, but both export odt to pdf with forms, as far as I have tried. So is it possible to convert odt to pdf without exporting the form via command line? If not via command line, can this be done programatically, like in java or some other language for example?

  • there's this library written in java.
    – Zuko
    Feb 18, 2014 at 15:05

1 Answer 1


One possible solution is to use "unoconv" while setting the --export=ExportFormFields=false option.

unoconv -f pdf --export=ExportFormFields=false mydocument.odt


http://linuxsleuthing.blogspot.fr/2012/01/unoconv-is-number-one.html https://wiki.openoffice.org/wiki/API/Tutorials/PDF_export

  • 1
    In My case, unoconv imply input file is document, and to convert .ods I need to use unoconv -f pdf -d spreadsheet file.ods
    – mmv-ru
    Oct 6, 2014 at 10:32
  • Nice heads up for the unoconv tool. However, that is deprecated and instead this one is recommended: github.com/unoconv/unoserver
    – thet
    Oct 18, 2022 at 11:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .