# Pkfix

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Pkfix
> Markdown URL: https://mediated.wiki/source/Pkfix.md
> Source: https://en.wikipedia.org/wiki/Pkfix
> Source revision: 1353625379
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Lowercase title}}
{{Infobox Software
| name                   = pkfix
| logo                   = 
| screenshot             = 
| caption                = 
| author                 = Heiko Oberdiek
| developer              = 
| released               = 
| latest release version = 1.3
| latest release date    = 2005-02-25
| latest preview version = 
| latest preview date    = 
| programming language   = [Perl](/source/Perl)
| operating system       = [Cross-platform](/source/Cross-platform)
| platform               = 
| language               = 
| genre                  = 
| license                = [LaTeX Project Public License](/source/LaTeX_Project_Public_License)
| website                = {{url|http://www.ctan.org/tex-archive/support/pkfix/}}
}}

The text-producing systems [LaTeX](/source/LaTeX) and [TeX](/source/TeX) produce [DVI](/source/DVI_file_format) files from files written by the user. Those files used to be (and, to a moderate extent, still are) post-processed by a tool called [dvips](/source/dvips), which converted those DVI files into [PostScript](/source/PostScript) files, which are understood by many printers.

Some older versions of [dvips](/source/dvips) with [embedded bitmapped fonts](/source/embedded_font), which represented letters and symbols as pictures at a fixed resolution (for instance, at 300 dpi). When such files are printed on newer devices (some with resolution of 1200 dpi), the letters of the files that have bitmapped fonts display a remarkably low quality, with jagged lines on curves and diagonals. One solution to this problem is to substitute the bitmapped fonts with scalable fonts (known among PostScript users as [Type 1 font](/source/Type_1_font)s).

To remedy this problem of low quality printing, one can use Heiko Oberdiek's utility called pkfix. The input of pkfix is a PostScript file generated by dvips (with versions at 5.58 or newer<ref>[http://www.ctan.org/tex-archive/support/pkfix/ Documentation of pkfix on CTAN.]</ref>) and its output is another PostScript file, this time, with the bitmapped fonts substituted by scalable fonts (if possible).

Technically speaking,  pkfix is a [Perl](/source/Perl) script which searches the PostScript file for comments on bitmapped [PK fonts](/source/PK_fonts) (introduced by relatively recent dvips versions), and replaces them with the corresponding Type 1 fonts.

Of course, a simpler solution to this problem would be to reprocess the LaTeX/TeX files with recent tools and fonts, but, in most cases, the person that has the given PostScript file isn't the author of the document and doesn't have access to the source files (or, worse, the source files may have been lost during the times).

==References==
{{reflist}}

Category:Font formats
Category:PostScript
Category:Software using the LaTeX Project Public License

---
Adapted from the Wikipedia article [Pkfix](https://en.wikipedia.org/wiki/Pkfix) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Pkfix?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
