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 '14 at 15:05

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

| improve this answer | |
  • 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 '14 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.