Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create an empty form which will have several blocks. After adding text to boxes empty spaces will be replaces with dots. Is it possible?

\documentclass[10pt]{extarticle}

\usepackage[top=6.5cm,left=1.0cm]{geometry}
\usepackage[pdfpagemode=None,pdfstartview=FitH]{hyperref}
\usepackage{eso-pic}
\usepackage{graphics}
\usepackage{calc}
\usepackage{graphicx}
\usepackage{color}
\usepackage{textpos}
\usepackage[utf8]{inputenc}
\usepackage{type1ec}
\usepackage[T2A]{fontenc}
\usepackage[english,russian,french]{babel}
\usepackage{hyperref}

\usepackage{multicol}
\usepackage{epstopdf}

\usepackage{booktabs}
\begin{document}

\pagestyle{empty}
\begin{Form}
\begin{tabular}{ l@{} r@{} r r}
\Large{МЕНЮ} & & & \\
\hspace{22em} & \hspace{10em} &  \hspace{3em} & \\
  \TextField[bordercolor=white,borderwidth=0,width=3.4in,name=name.1,format={var f =
this.getField('name.1');f.textFont = 'Europe';f.userName = 'first
name'},value=Nazv,charsize=10pt]{} & \TextField[bordercolor=white,borderwidth=0,width=1in,name=qual.1,format={var f =
this.getField('qual.1');f.textFont = 'Europe';f.userName = 'first
name'},value=qual,charsize=10pt]{} & \TextField[bordercolor=white,borderwidth=0,width=0.5in,name=number.1,format={var f =
this.getField('number.1');f.textFont = 'Europe';f.userName = 'first
number'},value=00.00,charsize=10pt]{} & \TextField[bordercolor=white,borderwidth=0,width=0.2in,name=price.1,value=p.]{}  \\
\end{tabular}
\end{Form}

\end{document}

Maybe it's possible to create a new layer, so first layer will be with form and if there will be letters than dots under this layer will be invisible. Also can I create an item which will add new form same as existing one in document? As far as I can understand Adobe editor can do this. But I don't want to use Adobe ed and my javascript code is buggy.

share|improve this question
1  
Could you add the code you are talking about ? Preferably in the form of a Minimum Working Example ? – Lexiel Feb 20 at 18:26
Code example. I want to replace those empty spaces in forms with dots. – Ptech Feb 20 at 18:40
If I understand you, the command \dotfill is all you need. – Kola B. Feb 20 at 19:57
No, you don't understand. There is already \dotfill in text. I want to fill form with dots AFTER someone enters info. – Ptech Feb 20 at 20:00

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.