Questions tagged [textfield]
Use textfield tag when you have a question about the \TextField macro in the hyperref package.
30
questions
0
votes
1
answer
29
views
How to create a form with a text field where characters are in separated boxes?
I would like to create a form (at least printable) containing a field where each character is separated from the previous one.
Something similar to the field A in this picture :
What is the name of ...
1
vote
1
answer
30
views
Calculate TextField width for hyperref form
I'm trying to create a Form with hyperref. This is what I've got so far. (I'll remove the boarder as well. But to see what I'm doing it is still there.)
I have a view issues with my current solution:
...
0
votes
0
answers
43
views
Hyperref multiline textbox reduce padding
I am trying to create a multiline textbox in a form that displays two lines of text. I defined a command \mlinetextbox and set the height of the textbox as a parameter. When I create a text box with ...
0
votes
1
answer
33
views
How to add line breaks to (hyperref) pdf form TextField after 2020?
This is a duplicate of this question. The given answer from Ulrike Fischer is not working for the hyperref package after 2020 any more.
Steps to reproduce:
open TeXLive online
insert
\documentclass{...
0
votes
1
answer
54
views
How can I add a textfield in a Tikz drawing's node?
Given is the following TextField command:
\newcommand{\TF}[2][15em]{\TextField[borderwidth=0.1pt,
width=#1,
height=1.25em,
...
0
votes
2
answers
152
views
How do I create a text box that will have a fixed size and could be filled with text after the pdf is compiled?
I'm sure this has been answered already but I couldn't find it.
Because I have no idea how it's called I don't know what tag to use, this may have nothing to do with text manipulation.
I want to make ...
1
vote
0
answers
36
views
PDFLaTeX - Hide/Show textfield with ocgx
I am working on creating a PDF document where I can show or hide the text field with a button. The goal is that I can use the text box to enter custom solutions, and when I uncheck the text box, a ...
0
votes
1
answer
186
views
Is there a way to create a CheckBox without a label?
I am using Hyperref and Form to create a CheckBox, but I don't want any text near it. It should be without any labels, but I can't leave the parentheses empty, like so:
\CheckBox[checked=true]{}
I ...
0
votes
1
answer
174
views
How to create unique textfields in a pdf form without specifying textfield names
This question is related to Generating unique names in textfield
I cannot use the solution given in the above question because I use hyperref for generating my pdf form.
In my document I have many ...
0
votes
0
answers
82
views
How to automatically adjust textfields height to fill in a table cell?
I am making a document in which I am using a lot of tables which are using checkboxes and textfields.
Both are working fine only one issue I have and that is the automatic adjustment of the textfields ...
0
votes
1
answer
308
views
Format \pgfmathresult with \pgfmathprintnumber and using it in \TextField
I want to use \pgfmathprintnumber to format the \pgfmathresult but without printing it because I want to then use it in a \TextField as value that does not accept \pgfmathprintnumber for some ...
1
vote
1
answer
46
views
hyperref TextField displays wrong when xeLaTeX is used
I am trying hyperref textfield using the minimum code posted here.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\pdfstringdef\mytext{Hello\string\r World}
{
\begin{Form}\...
1
vote
1
answer
50
views
TextField not working with euro sign
The € is not working properly in \TextField in almost all pdf viewers.
I have a pdf document where the € sign is working in all pdf viewers, so the assumption is that the implemented \TextField is not ...
2
votes
2
answers
796
views
Background color of a textfield in a form
I'm using MikTex and Texmaker to create forms filled by clients. I just want to change the background color of the textfield, how to do it ?
\TextField[bordercolor=, backgroundcolor={red}, strokecolor=...
0
votes
0
answers
26
views
eforms border does not appear in edge
Oddly, the border is shown in Chrome and Acrobat, but not in Edge (don't know about Firefox). Did I do anything wrong?
\documentclass[11pt,a4paper]{scrartcl}
\usepackage{tikz}
\usepackage{ifthen}
\...
4
votes
1
answer
238
views
How do I retrieve a hyperref TextField's value for later use?
I would like to retrieve a hyperref TextField's value for later use in an email submit. As an example:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
\usepackage{...
0
votes
0
answers
490
views
pdf form javascript doesn't work in MacOS Preview?
I am trying to implement a simple word count script, but Preview seems to not want to run javascript. I do not know if there is something wrong with my LaTeX (I had a previous problem with Acrobat ...
2
votes
1
answer
88
views
conditional value in a hyperref textfield
I am trying to create a TextField whose value is conditional on a boolean. If the boolean is true, the default value in the TextField is some value; if it is false, the TextField starts blank (the ...
1
vote
1
answer
162
views
tabular vertical alignment with hyperref TextField
I'm using a TextField within a tabular environment:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{tabular}{p{29em}r}
\TextField[name=W,multiline=true,width=\linewidth,...
2
votes
0
answers
301
views
Determine height of table row (tabularx)
Is it possible to retrieve the height of a row, which has a p{}-column in an tabularx environment?
Ultimately I want to be able to get the width and height of the X column cells.
The width is ...
1
vote
1
answer
90
views
PDF forms with LaTeX: how to disable spell check in \Textfield
I'm creating a formular with text fields and I would like to disable the spellchecker in the pdf reader.
I saw that there is a pdf flag for this "DoNotSpellCheck", but I don't know how to use it (if ...
0
votes
1
answer
441
views
Margin of TextField in form
Is there a way to controll the margin of a TextField placed within a table-structured form ? According to the manual of package 'hyperref', there is a parameter 'bordersep', but it doesn't change ...
0
votes
1
answer
246
views
TextField not showing where it should be
I want to create a flyer using Latex. So I intend to have a foldable piece of paper with DinA5 pages. But I also intend to use a slightly modified version as a fillable online version. The plan is to ...
1
vote
1
answer
232
views
\leq symbol in hyperref text field
I would like to insert the "lesser or equal" symbol (\leq in latex) inside a TextField from the hypperref package. Is this possible ? And how ?
I get the error :
"Package hyperref Warning: Token not ...
0
votes
1
answer
329
views
LaTeX - How to limit the number of characters in a calculated Textfield with hyperref package
I am creating a simple form where people should enter their height and weight with auto-calculation of the corresponding BMI. For this use, I use the option "calculate" from \TextField in the hyperref ...
1
vote
1
answer
257
views
Alignment of Multiline textfield in within \item
I would like to put a multiline Textfield in an enumerate einvironment. Unluckily the textfield is expanded to the top, not to the bottom of the page. The Numebr of the list is placed befor the last ...
0
votes
1
answer
4k
views
Defining a textbox with colors in Markdown
I'm trying to build a document in R Markdown using R studio, and I originally posted this question to stackoverflow, where a kind user referred me to this site.
I'm in no way a LaTeX expert, but I ...
0
votes
0
answers
45
views
Page break options in a TextField
Yesterday I helped a friend who was working on a template of a school certificate. Basically he has written it with OpenOffice. Now he wanted to see how it looks in MS Office. There are different ...
1
vote
1
answer
1k
views
How to add line breaks to (hyperref) pdf form TextField?
Consider the following toy feedback form:
\documentclass{article}
\usepackage{hyperref}
\renewcommand*{\DefaultHeightofTextMultiline}{20\baselineskip}
\begin{document}
\centering
\begin{Form}
...
1
vote
1
answer
340
views
Align the end of TextFields when other types of fields exist
I would like to align the end of the TextFields in a Form such that they are in the same line. If there are only TextFields in a row, this question gives a good answer for me. What can I do if there ...