Fillable PDF that does unit conversion calculations?

Hi,

I am wondering if it is possible to make a PDF fillable that can do custom calculations. I know Adobe’s premium software can do this but I am wondering if LibreOffice Writer can?

IIUC, this requires using things like JavaScript in the PDF (the thing made non-standard in latest ISO PDF standard); and LibreOffice does not put scripts into PDFs it generates.