Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there any way to directly manipulate a PDF file with Type 3 embedded fonts (yes, those PDF generated from old tex/dvips and CM fonts), and replace them by decent Type 1 fonts? I know that once printed they should look ok, but I'm using a Kindle to read them and they look hideous.

share|improve this question
6  

3 Answers 3

On the off chance that you have at least the Postscript file used to generate the PDF, Heiko Oberdiek's pkfix is likely to do the job. The man page for pkfix-helper gives some useful hints and a workaround for the application of the utility.

If you really have to work with the PDF, then you have a problem, one that is not insoluble, but I think you will have to do most of the work yourself. Type 3 fonts carry very little metadata, and what little metadata they have are probably lost in the translation to PDF. To recover the original information, you have to infer information about the glyphs, their placements and their font geometry. This is in principle an easier task than OCR, but it's a problem fewer people want to solve so there is next to nothing in the way of ready-made applications, at least that I know of. The technology is explained in several places, e.g., in Mao, Rosenfeld & Kanungo (2003)'s survey Document structure analysis algorithms: a literature survey, and I think Ocropus and iText provide a good infrastructure to build a solution. But this is so much unspecified work that I think it does not count as an answer.

share|improve this answer

There is an open source application called PDFedit, that I've only used briefly. http://pdfedit.cz/en/index.html

Perhaps you can change the fonts there?

share|improve this answer
3  
I don't think PDFEdit allows to do bulk replacement. You can surely select text bit by bit and replace the font, but I'm not sure it would be a great idea -- or result. I'd also be a bit unsure about the consequences on kerning/spacing/ligatures. –  ℝaphink May 25 '11 at 13:35

Before you try to do such a complicated thing, which might be simply impossible, on a per file basis:

Isn't it much easier to add \usepackage{textcomp, libertine} to all your old *.tex-files and recompile them?

share|improve this answer
6  
I think the question suggests that the source files are not available. –  ℝaphink May 25 '11 at 13:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.