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 it possible to change the font to computer modern for an included pdf in LaTeX?

I know its possible to save texified text with Inkscape, but i'm looking for a solution with just LaTeX.

"Example":

\forcepdffont{cmodern}
\includegraphics{img.pdf}
share|improve this question
2  
The font directives are had-coded (and compressed) into the pdf file. It has been discussed before that pdflatex is not capable of modifying the included graphics. If you had your graphics in eps then psfrag is an option. –  tohecz Feb 28 '13 at 15:33
1  
Welcome to TeX.sx! –  Peter Jansson Feb 28 '13 at 15:35
3  
There are OTF versions of both Computer Modern and Latin Modern which can be used with any application on your computer. If you have a way of regenerating the included PDFs then you can use the right fonts at the source. –  Alan Munn Feb 28 '13 at 15:44
1  
Why is there no pdffrag package? –  JLDiaz Mar 5 '13 at 13:31
add comment

1 Answer

As @tochez already commented: No, none of the TeX engines or devices drivers handling PDF can change the fonts in an included PDF. And PDF is not designed for this.

The best you could do is somehow patch the PDF with an external program (like pdftk/qpdf and awk); but this will not produce the results you want if the metrics of the fonts differ (as they most likely will).

It will be much easier for you to go back to the source of the included PDF and change the fonts there.

share|improve this answer
add comment

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.