为什么在几乎相同的文件的大小差别很大 [英] Why so big difference in sizes of almost identical documents

查看:282
本文介绍了为什么在几乎相同的文件的大小差别很大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有两个pdf,第一个用libharu创建,第二个用PDF :: API2创建。如果不提及坐标,那么内容是相同的。但是,第一次pdf超过四倍。只有一个区别,我发现是在文档属性字体选项卡中显示的字体嵌入类型。



第一个

  Verdana(嵌入子集)
类型:TrueType
编码:自定义

第二个

  Verdana 
类型:TrueType
编码:自定义
实际字体:Verdana
实际字体类型:TrueType

如何处理嵌入的子集?

解决方案

这是一个老问题,但我有一个类似的问题。

您是否设置libharu来压缩您的PDF?

$ C ++中的b
$ b

,来自文档

  HPDF_SetCompressionMode(pdf,HPDF_COMP_ALL); 


Have two pdfs, first created with libharu and second created with PDF::API2. If not mention to coordinates then content is the same. But first pdf oversize second by four times. Only one distinction what i found that is type of fonts embedding showed in document properties fonts tab.

In first

Verdana (Embedded Subset) 
  Type: TrueType 
  Encoding: Custom

In second

Verdana 
  Type: TrueType
  Encoding: Custom
  Actual Font: Verdana
  Actual font Type: TrueType

How to deal with that embedded subset?

解决方案

this is an old question but I had a similar issue.

Did you set libharu to compress your pdf?

in C++, from the documentation

HPDF_SetCompressionMode (pdf, HPDF_COMP_ALL);

这篇关于为什么在几乎相同的文件的大小差别很大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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