[nSLUG] Editable PDFs: what Linux software?

Vlado Keselj vlado at dnlp.ca
Mon Jun 29 11:35:55 ADT 2020


I sometimes use "okular" and it can be used to fill out fillable PDFs:
https://okular.kde.org/

However, I more often prefer just to ignore "fillable" PDF, but make it
plain PDF and put signature, type etc. over it using LaTeX.

For example, this is one LaTeX file:

------ Start: form-filled-and-signed.tex ---------------

\documentclass{article}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\pagestyle{empty}

\newcommand{\form}{empty-pdf-form.pdf}
\newcommand{\signdate}{12 Jun 2020}

% Some helpful commands:
\newcommand{\locate}[3]{\node[shift={(#1,#2)},anchor=south west] at
  (current page.north west) {#3};}
\newcommand{\locatemid}[3]{\node[shift={(#1,#2)},anchor=south] at
  (current page.north west) {#3};}

\begin{document}
%Use this to include whole form to see how many pages there are etc:
%\includepdf[pages=-]{\form}

\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {\includegraphics[page=1]{\form}};
%\input{grid-input.tex} % just some helpful Grid
\locate{6.7cm}{-26.5cm}{\normalsize\tt\vphantom{j} MY NAME}
% signature.png is an image of my signature
\locate{9.2cm}{-26.5cm}{\includegraphics[width=2.5cm]{signature.png}}
\locate{13.7cm}{-26.5cm}{\normalsize\tt\vphantom{j}\signdate}
\end{tikzpicture}

% To include other pages:
%\includepdf[pages=2-]{\form}

\end{document}

-------- End: form-filled-and-signed.tex ---------------

If you run command:

 $ pdflatex form-filled-and-signed

you get nice pdf with signature, filled out name, signdate etc.


Regards,
Vlado




More information about the nSLUG mailing list