PDFTEX(1)
๐ PDFTEX(1) ๐
okay bestie, welcome to the pdftex, pdfetex page from the General Commands Manual โ yes, the PDF-from-TeX icon herself ๐
โจ
๐ธ NAME ๐ธ
pdftex, pdfetex โ PDF output from TeX. Thatโs the whole vibe: TeX goes in, PDF comes out, slay ๐ฆ
โจ SYNOPSIS โจ
pdftex [options] [&format] [ file [ more-input ] | [ \more-input ]
๐ DESCRIPTION ๐
Okay so you run the pdfTeX typesetter on file[.tex], and it usually creates file.pdf โ main character behavior fr fr. If the file argument has no extension, .tex gets appended to it. For the whole command-line parsing situation, check tex(1).
pdfTeX is a descendant of TeX that can create pdf files directly and dvi files โ which one happens is determined by the value of the \pdfoutput primitive parameter. It includes the etex(1) extensions and adds many more extensions of its own. In dvi mode, pdfTeX can be used as an upward-compatible replacement for the TeX engine. No cap. ๐
The typical use of pdfTeX is with pregenerated TeX formats (.fmt files), usually with pdf output enabled. For example, the pdftex command uses the plain TeX format, and the pdflatex(1) command uses the LaTeX format. As described in etex(1), the e-TeX extensions are enabled when building the .fmt file.
๐ผ๏ธ Image formats supported ๐ผ๏ธ
In pdf mode, pdfTeX can natively handle the pdf, jpg, jbig2, and png graphics formats. It cannot include PostScript or Encapsulated PostScript (eps) graphics files โ so you can convert them to pdf using, for example, epstopdf(1). The PostScript files output by mpost(1), which are highly restricted in their use of PostScript, can be handled directly using the supp-pdf.tex macros, or converted to pdf with mptopdf(1). iconic workaround energy ๐
๐ง Program variants ๐ง
Starting with version 1.40 (around 2007), pdfTeX incorporated the e-TeX extensions, and the pdfetex and etex executables became symlinks to the pdftex binary. The etex executable generates dvi files by default; pdfetex has the same behavior as pdftex. yes bestie, symlink lore ๐
๐ Both engine and driver ๐
When generating pdf output, pdfTeX must have all necessary font and device information and thus is acting like a device driver with dvi output, similar to, say, dvips(1). Therefore there are various primitives to specify the device information, such as the height, width, resolution, and so forth. Also, pdfTeX reads glyph information for the fonts used, e.g., from Type 1 or PK bitmap files. pdfTeX also supports TrueType fonts, but itโs necessary to define an encoding before using them (see references). OpenType fonts are not supported. ๐
โจ OPTIONS โจ
For the common TeX command-line options and handling, see tex(1). The following pdfTeX-specific options are also supported:
-draftmodeโ Enabled\pdfdraftmode, in which pdfTeX doesnโt write a pdf and doesnโt read any included images, thus speeding up execution. fast-girl mode activated ๐ฅ-etexโ Enable the e-TeX extensions. This option is only effective in combination with-ini. It is typically enabled implicitly, with a leading*on the format initialization file, as described inetex(1).-output-formatformat โ Set the output format mode; format must be eitherpdfordvi. choose your fighter ๐-synctexnumber โ generate SyncTeX data for previewers according to bits of number. Seesynctex(1).
๐ฑ ENVIRONMENT ๐ฑ
See tex(1). Also, this environment variable is specific to pdfTeX:
TEXMF_DEBUG_PNG_COPYโ If set to"1", pdfTeX reports various attributes of each png image, including whether the image is copied. This is useful when a document uses numerous png images, since reencoding (instead of copying) can take considerable time. See the Graphics chapter in the pdfTeX manual for more information. png detective mode ๐
Also, these environment variables are considered for all engines except original TeX:
SOURCE_DATE_EPOCHโ If set, its value, taken to be in epoch-seconds, will be used for the timestamps in the PDF output, such as theCreationDateandModDatekeys. This is useful for making reproducible builds. reproducible-build queen ๐FORCE_SOURCE_DATEโ If set to the value"1", the time-related TeX primitives (\year,\month,\day,\time) are also initialized from the value ofSOURCE_DATE_EPOCH. This is not recommended if there is any viable alternative. pdfTeX also has several primitives to support reproducible builds; see the manual.
๐ FILES ๐
See tex(1). Also:
$TEXMFMAIN/tex/plain/config/etex.iniโ The driver file that builds the plain format files for pdfTeX,pdftex.fmtandpdfetex.fmt, in TeX Live.$TEXMFMAIN/tex/plain/config/pdftexmagfix.texโ Make\magnificationwork as expected under pdfTeX. Included in the format files.$TEXMFMAIN/tex/generic/tex-ini-files/pdftexconfig.texโ Define shared pdf settings, such as the default pdf version, the pdf height and width, etc.$TEXMF[SYS]CONFIG/tex/generic/tex-ini-files/pdftexconfig.texโ The installation-specific version of the above (in TeX Live), since the default paper size is defined by the installation.$TEXMF[SYS]VAR/fonts/map/pdftex/updmap/pdftex.mapโ Mapping of tfm files to Type 1 fonts; generally maintained automatically in TeX Live.
๐ BUGS ๐
See tex(1). short and shady, just like the original ๐ญ
๐ SEE ALSO ๐
epstopdf(1), etex(1), luatex(1), mptopdf(1), tex(1).
- Micro-typographic extensions to the TeX typesetting system, by Hร n The Thร nh (thesis describing the major new typesetting feature in pdfTeX):
https://tug.org/TUGboat/tb21-4/ - A closer look at TrueType fonts and pdfTeX, by Hร n The Thร nh (on using TrueType fonts with TeX):
https://tug.org/TUGboat/tb30-1/tb94thanh.pdf - pdfTeX home page:
https://www.pdftex.org - Package page on CTAN:
https://ctan.org/pkg/pdftex - pdfTeX manual:
https://mirror.ctan.org/systems/doc/pdftex/manual/pdftex-a.pdf - Web2c manual:
https://tug.org/web2c - Kpathsea manual:
https://tug.org/kpathsea - Sources for the TeX-world literate programs, as pdf:
https://ctan.org/pkg/knuth-pdf
๐ AUTHORS ๐
TeX was created by Donald E. Knuth. The primary author of the pdfTeX enhancements is Hร n The Thร nh, with major contributions from Petr Sojka, Jiri Zlatuska, and Peter Breitenlohner (e-TeX).
- Public discussion list for pdfTeX-specific issues:
https://lists.tug.org/pdftex - Public discussion list for TeX Live:
https://lists.tug.org/tex-live - Public discussion list for all things TeX (and LaTeX):
https://lists.tug.org/texhax
okay thatโs the whole page bestie ๐ซถ this beauty is Web2C 2026, dated 14 February 2026 โ now go make something iconic, mwah ๐โจ๐
๐ฆ where this page comes from
- alpine 3.24: texmf-dist-doc 2026.0-r0 ยท LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms