next up previous contents index
Next: Getting Document Information Up: Document Information Previous: Document Information   Contents   Index

Listing Fonts

The ListFonts returns an array of font_info structures, each member of which can be accessed with the dot notation:


\begin{framed}
\begin{tabular}{ll}
\verb!font_pagenumber! & \verb!integer!\\
\v...
...erb!string!\\
\verb!font_encoding! & \verb!string!\\
\end{tabular}\end{framed}

For example:


\begin{framed}
\noindent\textit{List fonts}
\par
\vspace{2mm}
\noindent\begin{ta...
...fo () = Cpdflib.ListFonts(pdf)!
\end{minipage}\\ [5mm]
\end{tabular}\end{framed}

might return the array:


\begin{framed}
\small\begin{tabular}{lllll}
\textbf{Page} & \textbf{Name} & \tex...
...
4 & /F452 & /Type1 & /Times-Roman & /WinAnsiEncoding
\end{tabular}\end{framed}

The first column gives the page number, the second the internal unique font name, the third the type of font (Type1, TrueType etc), the fourth the PDF font name, the fifth the PDF font encoding.



root 2008-12-01