PDFTEX.CFG(5)
π PDFTEX.CFG(5) β the MiKTeX-pdfTeX config file, bestie edition
okay so this is the manual page for pdftex.cfg, and it's literally the configuration-settings glow-up for MiKTeX-pdfTeX. Let's get into it π«Ά
π NAME
pdftex.cfg β configuration settings for MiKTeX-pdfTeX
π DESCRIPTION
Bestie, MiKTeX-pdfTeX configuration settings are read from the file pdftex.cfg when a format file is being created by MiKTeX-pdfTeX. That's the whole vibe β¨
β οΈ Caution: Do not edit this file directly. Run initexmf--edit-config-filepdftex.cfgto edit configuration settings for MiKTeX-pdfTeX. No cap, use the command, not your bare hands π
β¨ INSTRUCTIONS
A typical pdftex.cfg file looks like this, setting up output for A4 paper size and the standard TeX offset of 1 inch:
compress_level 9
decimal_digits 3
horigin 1 true in
vorigin 1 true in
image_resolution 300
move_chars 1
output_format 1
page_width 210 true mm
page_height 297 true mm
pdf_minorversion 4
pk_resolution 600
The configuration file sets default values for these parameters, and they all can be overridden in the TeX source file. Dimensions can be specified as true, which makes them immune for magnification (when set). Iconic behavior honestly π
compress_levelβ This integer parameter specifies the level of text andin||linegraphics compression. MiKTeX-pdfTeX uses Zip compression. A value of0means no compression,1means fastest,9means best,2..8means something in between. Just set this value to9, unless there is a good reason to do otherwise;0is great for testing macros that use\pdfliteral. Slay those compression levels π₯decimal_digitsβ This integer specifies the preciseness of real numbers in PDF page descriptions. It gives the maximal number of decimal digits after the decimal point of real numbers. Valid values are in range0..5. A higher value means more precise output, but also results in a much larger file size and more time to display or print. In most cases the optimal value is2. This parameter does not influence the precision of numbers used in raw PDF code, like that used in\pdfliteraland annotation action specifications. Numbers said "be precise but not extra" πhorigin&voriginβ These dimension parameters can be used to set the offset of the TeX output box from the top left corner of the βpaperβ. Positioning, but make it TeX πimage_resolutionβ When MiKTeX-pdfTeX is not able to determine the natural dimensions of an image, it assumes a resolution of type 72 dots per inch. Use this variable to change this default value. A little fallback resolution moment β¨move_charsβ Although PDF output is claimed to be portable, especially when all font information is included in the file, problems with printing and viewing have a persistent nature. Moving the characters in range0β31sometimes helps a lot. When set to1, characters are only moved when a font has less than 128 glyphs, when set to2higher slots are used too. Character-moving chaos, but useful πoutput_formatβ This integer parameter specifies whether the output format should be DVI or PDF. A positive value means PDF output, otherwise we get DVI output. Choose your fighter πpage_width&page_heightβ These two dimension parameters specify the output medium dimensions (the paper, screen or whatever the page is put on). If they are not specified, these values are calculated. Page dimensions doing their own math when needed π§pdf_minorversionβ Sets the PDF version of the generated file and the latest allowed PDF version of included PDFs. The value3tells MiKTeX-pdfTeX to set the PDF version to 1.3 and allows only included PDFs with versions less than 1.3. A suitable default value is4. PDF version gatekeeping, but make it config πͺpk_resolutionβ One can use this entry to specify the resolution for bitmap fonts. Nowadays most printers are capable to print at least 600 dots per inch, so this is a reasonable default. Bitmap fonts said "600 dpi is the moment" π¨οΈ
xoxo, this page was brought to you by MiKTeX 25.12, dated December 29, 2025, and it's literally PDFTEX.CFG(5). π
π¦ where this page comes from
- nixos 26.05: miktex 25.12
- nixpkgs unstable: miktex 25.12
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms