在合并之间合并字体pdfs itextsharp C# [英] consolidate the fonts between merges pdfs itextsharp C#

查看:335
本文介绍了在合并之间合并字体pdfs itextsharp C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将多个pdf合并在一起。我正在使用itextsharp来创建所有的pdf。我需要将pdf的大小减小到尽可能小的大小。我知道每个pdf的字体都是重复的。在合并的pdf中是否只使用一组字体?例如,pdf1是2.8mb,pdf2是2.8mb我将它们合并在一起,大约5.7mb。我知道这两个pdf都使用相同的字体,但字体的数据正在被删除,即使它在相同的pdf中。

I need to merge multiple pdfs together. I am using itextsharp to create all the pdfs. I need to reduce the size of the pdfs to the lowest possible size. I know the fonts are being duplicated for each pdf. Is there to use only one set of fonts throughout the merged pdf? For example, pdf1 is 2.8mb and pdf2 is 2.8 mb I merge them together and its about 5.7mb. I know for a fact that both of those pdfs are using the same font but the data for the font is being duclpicated even though its in the same pdf.

我试过使用将压缩属性设置为最佳压缩并设置完全压缩,并且几乎不会减小大小。

I tried using setting the compression properties to best compression and set full compression and that barely reduced the size.

虽然我通过Acrobat X pro运行pdf并优化其减少近90%+从160 mb到5 mb。使用审计表明,在优化之前,其90%的pdf是字体。

Though when i ran the pdf through Acrobat X pro and optimize its reduce almost 90%+ from like 160 mb to 5 mb. The usage audit says its 90% of the pdf is fonts before optimizing.

现在有没有办法在合并pdf之间整合字体?

Now is there a way to consolidate the fonts between merges pdfs ?

推荐答案

你可以重命名子集。

好像你有

Helvetica(子集)

Helvetica (subset)

Helvetica(子集)

Helvetica (subset)

你要创建

Helvetica-1(子集)

Helvetica-1 (subset)

Helvetiva-2(子集)

Helvetiva-2 (subset)

一旦它们是不同的实现(二进制流比较)

once they were different implementations (binary stream compare)

这篇关于在合并之间合并字体pdfs itextsharp C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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