# Ubuntu – Convert odt to pdf via command line, WITHOUT exporting as pdf form

libreofficepdf

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?

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