Zapf dingbats for use with pdftex option to hyperref package?

by murray   Last Updated May 15, 2019 21:23 PM

I'm trying to use pdflatex to process the ex0001.tex example file that comes with the pdf-forms-tutorial (https://ctan.org/tex-archive/info/pdf-forms-tutorial?lang=en).

I hit the fatal error:

pdflatex (file zd______.pfb): cannot open Type 1 font file for reading

As I understand this, it means I don't have the Type 1 Zapf dingbats font installed. I looked for sources to buy them, but the only Zapf dingbats I find available now are in OpenType format.

Snag:

  • the OpenType would require using xelatex instead of pdflatex; but
  • the ex0001.tex file includes the pdftex option, among pdf-related options, to the needed hyperref package.
\usepackage[
  pdftex,colorlinks=true,
  pdftitle={Key form},pdfsubject={Key},
  pdfauthor={ich},pdfpagemode=UseNone,pdfstartview=FitH,
  pagebackref,pdfhighlight={/N}
]{hyperref}

The source includes also:

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}
\renewcommand*{\familydefault}{phv}

Questions:

  1. If I must use only the OpenType format of the Zapf dingbats, and hence xelatex, I know I must remove the pdftex option from the call to hyperref and, I presume, replace it with the xetex option. Will that still produce satisfactory pdf forms?
  2. The inputenc package is not intended for use with xetex. So how do I reconcile all this with the apparent necessity to use xelatex?

The complete source is:

\documentclass[ngerman,a4paper]{scrartcl}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}
\renewcommand*{\familydefault}{phv}
\usepackage[left=25mm,top=25mm,bottom=10mm,right=10mm]{geometry}
\usepackage{fancyhdr}
\lhead{ABC, Inc.}\chead{}\rhead{XYZ Dept.}
\lfoot{}\cfoot{}\rfoot{}
\pagestyle{fancy}
\usepackage{graphicx}
\usepackage{color}
\usepackage[
  pdftex,a4paper=true,colorlinks=true,
  pdftitle={Key form},pdfsubject={Key},
  pdfauthor={ich},pdfpagemode=UseNone,pdfstartview=FitH,
  pagebackref,pdfhighlight={/N}
]{hyperref}
\begin{document}
\section*{Request for a key}
\begin{Form}
\textbf{Employee}\\
First name: \TextField[name=vorname]{}\\
Name: \TextField[name=name]{}\\
Department: \ChoiceMenu[name=abt]{}{%
Sales=v,Production=f,Service=s}\\
\textbf{Time}\\
Time: \ChoiceMenu[name=zeit]{}{%
limited=b,unlimited=u}\\
from: \TextField[name=from]{}\\
until: \TextField[name=until]{}\\
\textbf{Doors}\\
Front door: \CheckBox[name=ht]{}\\
Ground floor: \CheckBox[name=e1]{}\\
First floor: \CheckBox[name=e2]{}\\
\end{Form}
\end{document}
Tags : fonts hyperref pdf


Related Questions


Updated April 16, 2018 18:23 PM

Updated March 06, 2018 11:23 AM

Updated July 31, 2015 13:10 PM

Updated March 13, 2017 23:23 PM

Updated April 18, 2019 15:23 PM