Skip to main content

Questions tagged [textfield]

Use textfield tag when you have a question about the \TextField macro in the hyperref package.

Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

Fillable form output difference between adobe document cloud reader vs chrome pdfviewer

I am trying to produce a fillable form that can then be saved. When I view the form with evince or the Chrome pdf viewer, everything looks fine. When viewing through the adobe cloud-based viewer, ...
Heather Krieg's user avatar
0 votes
1 answer
100 views

How to implement conditional fields in fillable PDF forms created in LaTeX?

Following this question How to dynamically format a number with thousand separators in a `\TextField` of a fillable pdf? My goal now is to have certain fields appear or become hidden based on the user'...
JeT's user avatar
  • 3,535
2 votes
0 answers
42 views

How to make \CheckBox independent?

i tried to create a pdf-Form using the hyperref package and the Form environment. This Form should include with multiple checkboxes, with the option, that many boxes can be selected at the same time. ...
Leon Schropp 's user avatar
4 votes
1 answer
132 views

how to make text inside textfield bold by default

I tried various combinations (fontWeight=bfseries, font=bfseries) in the new command definition to make the input text boldface by default but have not succeeded so far. I would be grateful for any ...
Stefanos Rotas's user avatar
1 vote
1 answer
63 views

breakable textfield

is there any way to have a fillable textfield which is breakable across two pages, i.e. not to be forced to one page only? MWE: \documentclass[11pt,a4paper]{letter} \usepackage[utf8]{inputenc} \...
Stefanos Rotas's user avatar
0 votes
0 answers
65 views

pdflatex for pdf with interactive/fillable box with adjustable height to input

Following up on this question from August 2023, is there any update on creating a form on a hyperref generated pdf, with height adjustable (without rescaling) to the context, so it can be saved/...
Stefanos Rotas's user avatar
0 votes
0 answers
53 views

Height of Textfields in tabular enviroment

I am using lualatex to make a form with aligned input fields. I want a single line for Name and four lines for Address. This is my working example: \documentclass[12pt]{scrartcl} \usepackage{hyperref} ...
Treachable's user avatar
0 votes
1 answer
60 views

Fillable Text Form with auto-scalable height

I'm trying to set many fillable Text boxes for a pdf document. However, I want the HEIGHT of the Text Form to ve variable, adjusting its height depending on tyhe amount of text entered by the user. As ...
jaoc's user avatar
  • 21
1 vote
0 answers
38 views

Textfield with description right below the input box

I’m trying to recreate something like the below form. Essentially, a text input field with the description right below. Is this possible? with borderstyle=U I can pretty much get the box to look ...
tedapa's user avatar
  • 19
1 vote
1 answer
92 views

Using \TextField Inside a pspicture Environment

Here follows a MWE showing a problem of mine. Code \DocumentMetadata{} \documentclass{article} \usepackage{multido} \usepackage{pstricks} \usepackage{hyperref} \psset{dimen = m} \def\skala{0.7} \...
Svend Tveskæg's user avatar
1 vote
0 answers
43 views

Calculate TextField width for hyperref form - Multiple TextFields after CheckBox

In reference to: Calculate TextField width for hyperref form The answer: https://tex.stackexchange.com/a/630701/294918 does mostly what I wanted when I found this question; ie: TextFields autosize. I ...
David Fear's user avatar
0 votes
0 answers
43 views

getting the input from a textfield outside of the textfield environment

Hi i want to do the following thing: Check if a textfield has an input. \documentclass[a4paper,12pt, hidelinks]{scrreprt} \usepackage{amssymb} \usepackage{amsmath} \usepackage[utf8]{inputenc} \...
Tobias R.'s user avatar
1 vote
0 answers
21 views

doing calculations with textfield inputs [duplicate]

I want to make a PDF form with various text fields. I want to take the input from one textfield (where a number is typed in) and sustract it from another number. In the PDF, the substracted number ...
Tobias R.'s user avatar
2 votes
1 answer
110 views

Context: how configure style of fields

I am learning how to use pdf's field with Context. Here the code: %\usesymbols [fontawesome] \setuppagenumbering[location=] \setupinteraction [state=start] %\setupbodyfont[utopia,10pt] \...
voyager's user avatar
  • 51
0 votes
0 answers
80 views

hyperref Forms with serif font problem

I use LuaLaTeX. This MWE works with sans-serif fonts, i.e. Calibri (on Windows) \documentclass{article} \usepackage{fontspec} \def\fntname{Calibri} \setmainfont{\fntname} \usepackage[pdfstartview = ...
aku-aku's user avatar
1 vote
1 answer
41 views

Question about field values comparison (for instance for tdclock in Beamer)

I have a question about the tdclock package that seems to be connected to the problem of comparison of fields. I want to make a beamer with tdclock and I need to introduce a counter, called for ...
Expoju's user avatar
  • 11
1 vote
2 answers
235 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 ...
Metalman's user avatar
1 vote
1 answer
311 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: ...
Darkproduct's user avatar
0 votes
0 answers
222 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 ...
Dinesh Ayyala's user avatar
0 votes
1 answer
109 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{...
Tesla-Renting's user avatar
0 votes
1 answer
98 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, ...
Toma's user avatar
  • 494
0 votes
2 answers
638 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 ...
Toma's user avatar
  • 494
2 votes
0 answers
99 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 ...
GErl's user avatar
  • 21
0 votes
1 answer
701 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 ...
ray_lv's user avatar
  • 5
2 votes
1 answer
521 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 ...
Name's user avatar
  • 2,858
0 votes
0 answers
126 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 ...
K S's user avatar
  • 1
0 votes
1 answer
686 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 ...
Michael Banucu's user avatar
1 vote
1 answer
74 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}\...
SOUser's user avatar
  • 227
1 vote
1 answer
63 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 ...
Michael Banucu's user avatar
2 votes
2 answers
2k 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=...
Steve ANANDHAN's user avatar
0 votes
0 answers
51 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} \...
realGottlob's user avatar
5 votes
1 answer
399 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{...
Walt's user avatar
  • 53
0 votes
0 answers
697 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 ...
richarddmorey's user avatar
2 votes
1 answer
174 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 ...
richarddmorey's user avatar
1 vote
1 answer
321 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,...
richarddmorey's user avatar
2 votes
0 answers
664 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 ...
Carsten's user avatar
  • 55
3 votes
1 answer
145 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 ...
Sim's user avatar
  • 31
0 votes
1 answer
784 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 ...
OliverJL's user avatar
0 votes
1 answer
361 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 ...
Bobior's user avatar
  • 3
1 vote
1 answer
360 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 ...
A.Du's user avatar
  • 77
0 votes
1 answer
618 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 ...
A.Du's user avatar
  • 77
1 vote
1 answer
454 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 ...
Gerison's user avatar
  • 13
0 votes
1 answer
6k 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 ...
Nordsted's user avatar
0 votes
0 answers
47 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 ...
davux's user avatar
  • 1
1 vote
1 answer
2k 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} ...
equaeghe's user avatar
  • 6,056
1 vote
1 answer
410 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 ...
bmv's user avatar
  • 3,598