I have a code as follows and I would like to make it a fillable pdf.
. Where the price and quantity will give the total automatically and the Total Sum. Many thanks in advance.
\documentclass[a4paper,8pt]{article}
\usepackage[legalpaper,left=4pt,right=14pt,top=13pt,bottom=14pt]{geometry}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{setspace}
\begin{document}
%set font type
\fontfamily{lmss}\selectfont
\singlespacing
%begin form environment
\begin{Form}[action=mailto:forms@stackexchange.invalid?subject={The submitted form},method=post]
\begin{flushleft}
%\noindent\TextField[name=compay,width=5cm]{}\\[0mm]
\LARGE{Company \\ Name \begin{flushright} \LARGE{Invoice} \end{flushright} }
\end{flushleft}
\begin{flushright}
\TextField[name=Date,width=5cm]{Date: } \\[0mm]
\TextField[name=Invoce_No,width=5cm]{Invoce No: } \\[0mm]
\end{flushright}
\begin{table}[h]
\centering
\caption{My caption}
\label{my-label}
\begin{tabular}{lllll}
Test Table & \multicolumn{2}{l}{} \\
a & a & f \\
\TextField[name=file_no,width=5cm]{Price: } & \TextField[name=file_no,width=5cm]{Quantity: } & \TextField[name=file_no,width=5cm]{Total: } \\
\TextField[name=file_no,width=5cm]{Price: } & \TextField[name=file_no,width=5cm]{Quantity: } & \TextField[name=file_no,width=5cm]{Total: } \\
& & \TextField[name=file_no,width=5cm]{Total Sum: } \\
\end{tabular}
\end{table}
\end{Form}
\end{document}
