在现有的PDF中嵌入TrueType字体 [英] Embed TrueType fonts in existing PDF

查看:845
本文介绍了在现有的PDF中嵌入TrueType字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有谁知道任何程序,只是将True Type字体嵌入到现有的字体中PDF格式(或用嵌入的字体打印到一个新的PDF等)? 解释方法



示例 EmbedFontPostFacto.java EmbedFontPostFacto.cs )从 iText in Action - 2nd Edition 展示了如何在现有PDF中嵌入给定的True Type字体。



请注意,某些假设是在这里完成的,毕竟它只是一个例子。当泛化普通PDF和字体的代码时,应该更仔细地检查字体字典,并且嵌入字体文件可能需要稍微改变不同的条目。在这种情况下,让规范ISO 32000-1: (特别是第9章 Text )是您的指南。


I know Acrobat won't do it because of the licensing restrictions, etc.

Does anyone know any program that will just embed True Type fonts anyway in an existing PDF (or print with embedded fonts to a new PDF, etc.)?

解决方案

To expound mark's answer:

The sample EmbedFontPostFacto.java (EmbedFontPostFacto.cs) from chapter 16 of iText in Action — 2nd Edition shows how you can embed a given True Type font in an existing PDF.

Be aware, though, that certain assumptions are made here, it's just an example after all. When generalizing the code for generic PDFs and fonts, the font dictionary should be checked more thoroughly and embedding the font file can require slightly different entries to be changed. In that case let the specification ISO 32000-1:2008 (especially chapter 9 Text) be your guide.

这篇关于在现有的PDF中嵌入TrueType字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆