Take the 2-minute tour ×
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 set the color of the border for my text fields to be none. But the parameter doesn't seem to accept none as a value. Here is an example:

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{xcolor}

\begin{document}

\begin{Form}
\TextField[name=formname,bordercolor=none,width=6cm] {\mbox{}}
\end{Form}

\end{document}

Is there a way to make this work?

Also with the backgroundcolor parameter.

share|improve this question
    
I found the solution below by chance. I am posting this since I think this might be useful for others who might face the issue. –  Kaveh Dec 6 '13 at 21:22

2 Answers 2

The standard way is probably to set borderwidth to zero so no border is added. (Leaving bordercolor the empty string doesn't seem to be a supported value as far as I can see, even though it may not give an error message)

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{xcolor}

\begin{document}

\begin{Form}
\TextField[name=formname,borderwidth=0pt,,width=6cm] {\mbox{}}
\end{Form}

\end{document}
share|improve this answer
    
Thanks, I thought of this, but this won't work with other parameters like backgroundcolor which I want to set to none. Since PDF files support a none/no color value for these parameters the main point is how to access them from hyperref and leaving the value empty seems to do exactl that. hyperref package is not well-documented AFAIU. –  Kaveh Dec 6 '13 at 22:42

The solution is to leave the value empty and use bordercolor=. Here is the example:

\documentclass[12pt]{article}
\usepackage{hyperref}
\usepackage{xcolor}

\begin{document}

\begin{Form}
\TextField[name=formname,bordercolor=,width=6cm] {\mbox{}}
\end{Form}

\end{document}
share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.