PdfFormatConversionOptions.RemoveFontsStrategy

遗产: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public static class PdfFormatConversionOptions.RemoveFontsStrategy extends System.Enum

有些文档在转换为PDF/A 格式后尺寸较大。要减小这些文档的文件大小,有必要定义字体删除策略。此枚举声明了一种可用于优化字体使用的策略。此枚举中的每个策略仅在设置标志 OptimizeFileSize 时才有意义。

领域

场地描述
EnumSeparatorCharArray
RemoveDuplicatedFonts此策略删除文档中所有重复的字体。
RemoveSimilarFontsWithDifferentWidths此策略看起来像 RemoveDuplicatedFonts,但它删除的不是完全重复的字体,而是彼此相似且仅参数“宽度”不同的字体。
SubsetFonts这是减小文档大小的最有效策略。

方法

MethodDescription
Clone()
CloneTo(T arg0)
CloneTo(System.Enum arg0)
equals(Object arg0)
format(System.Type arg0, Object arg1, String arg2)
format(Class arg0, long arg1, String arg2)
getClass()
getName(Class arg0, long arg1)
getNames(System.Type arg0)
getNames(Class arg0)
getUnderlyingType(System.Type arg0)
getUnderlyingType(Class arg0)
getValue(Class arg0, String arg1)
getValues(System.Type arg0)
get_Caption()
get_Value()
hashCode()
isDefined(System.Type arg0, Object arg1)
isDefined(System.Type arg0, String arg1)
isDefined(System.Type arg0, long arg1)
isDefined(Class arg0, long arg1)
notify()
notifyAll()
parse(System.Type arg0, String arg1)
parse(System.Type arg0, String arg1, Boolean arg2)
parse(Class arg0, String arg1)
parse(Class arg0, String arg1, Boolean arg2)
register(System.Enum.AbstractEnum arg0)
toObject(System.Type arg0, Object arg1)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

EnumSeparatorCharArray

public static final char[] EnumSeparatorCharArray

RemoveDuplicatedFonts

public static final byte RemoveDuplicatedFonts

此策略删除文档中所有重复的字体。如果文档包含一组重复的字体,则只有该组中的一种字体嵌入到文档中。该组中的所有其他字体都从文档中删除,每个删除的字体都替换为已经嵌入的模拟字体。

RemoveSimilarFontsWithDifferentWidths

public static final byte RemoveSimilarFontsWithDifferentWidths

此策略看起来像 RemoveDuplicatedFonts,但它删除的不是完全重复的字体,而是彼此相似且仅参数“宽度”不同的字体。此参数包含一组指定字体符号的宽度。此“宽度”集中的每个宽度值都不是符号(字形)的实际宽度,该符号的实际宽度已在字体的二进制数据中定义。 “宽度”设置中的宽度值表示此符号的视觉宽度 - PDF 查看器软件在显示符号时必须设置的宽度,而不是字体中定义的实际宽度。更准确的规范告诉我们:Acrobat 5.0 和更高版本的查看器使用存储在字体字典中的字形宽度来覆盖字体程序本身中的字形宽度,从而提高了文档显示和打印的一致性。此策略比 RemoveDuplicatedFonts 更有效,但在某些情况下使用此策略理论上可能会损坏转换后文档的视觉呈现。这个缺陷是可能的,因为声明的字体宽度对于同一个符号可能不同,在这种情况下,这个符号的宽度将在字体替换后更改为新的 - 当删除的字体将在文档中替换为已经嵌入的字体时。如果符号的视觉宽度发生变化 - 它会显示不正确,并且这种区别可能会导致视觉缺陷,例如文本重叠或其他问题。但是所描述的视觉缺陷是一种非常罕见的情况,这种策略更有效地减小了文档的大小。

SubsetFonts

public static final byte SubsetFonts

这是减小文档大小的最有效策略。它采用完全嵌入的字体集并将它们缩减为仅使用的子集。建议将此策略与 RemoveDuplicatedFonts 或 RemoveSimilarFontsWithDifferentWidths 结合使用以获得文件大小的多重压缩效果。同时使用所有三种策略是没有意义的,在这种情况下不会使用 RemoveSimilarFontsWithDifferentWidths 策略。

Clone()

public System.Enum Clone()

退货: com.aspose.ms.System.枚举

CloneTo(T arg0)

public abstract void CloneTo(T arg0)

参数:

范围类型描述
arg0T

CloneTo(System.Enum arg0)

public void CloneTo(System.Enum arg0)

参数:

范围类型描述
arg0com.aspose.ms.System.Enum

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

format(System.Type arg0, Object arg1, String arg2)

public static String format(System.Type arg0, Object arg1, String arg2)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.Object
arg2java.lang.String

退货: java.lang.字符串

format(Class arg0, long arg1, String arg2)

public static String format(Class<?> arg0, long arg1, String arg2)

参数:

范围类型描述
arg0java.lang.Class
arg1long
arg2java.lang.String

退货: java.lang.字符串

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getName(Class arg0, long arg1)

public static String getName(Class<?> arg0, long arg1)

参数:

范围类型描述
arg0java.lang.Class
arg1long

退货: java.lang.字符串

getNames(System.Type arg0)

public static String[] getNames(System.Type arg0)

参数:

范围类型描述
arg0com.aspose.ms.System.Type

退货: java.lang.字符串[]

getNames(Class arg0)

public static Collection<String> getNames(Class<?> arg0)

参数:

范围类型描述
arg0java.lang.Class

退货: Collection

getUnderlyingType(System.Type arg0)

public static System.Type getUnderlyingType(System.Type arg0)

参数:

范围类型描述
arg0com.aspose.ms.System.Type

退货: com.aspose.ms.System.类型

getUnderlyingType(Class arg0)

public static Class<? extends Number> getUnderlyingType(Class<?> arg0)

参数:

范围类型描述
arg0java.lang.Class

退货: java.lang.Class<?扩展 java.lang.Number>

getValue(Class arg0, String arg1)

public static long getValue(Class<?> arg0, String arg1)

参数:

范围类型描述
arg0java.lang.Class
arg1java.lang.String

退货:

getValues(System.Type arg0)

public static System.Array getValues(System.Type arg0)

参数:

范围类型描述
arg0com.aspose.ms.System.Type

退货: com.aspose.ms.System.数组

get_Caption()

public String get_Caption()

退货: java.lang.字符串

get_Value()

public long get_Value()

退货:

hashCode()

public native int hashCode()

退货: 整数

isDefined(System.Type arg0, Object arg1)

public static boolean isDefined(System.Type arg0, Object arg1)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.Object

退货: 布尔值

isDefined(System.Type arg0, String arg1)

public static boolean isDefined(System.Type arg0, String arg1)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.String

退货: 布尔值

isDefined(System.Type arg0, long arg1)

public static boolean isDefined(System.Type arg0, long arg1)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1long

退货: 布尔值

isDefined(Class arg0, long arg1)

public static boolean isDefined(Class<?> arg0, long arg1)

参数:

范围类型描述
arg0java.lang.Class
arg1long

退货: 布尔值

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

parse(System.Type arg0, String arg1)

public static long parse(System.Type arg0, String arg1)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.String

退货:

parse(System.Type arg0, String arg1, Boolean arg2)

public static long parse(System.Type arg0, String arg1, Boolean arg2)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.String
arg2java.lang.Boolean

退货:

parse(Class arg0, String arg1)

public static long parse(Class<?> arg0, String arg1)

参数:

范围类型描述
arg0java.lang.Class
arg1java.lang.String

退货:

parse(Class arg0, String arg1, Boolean arg2)

public static long parse(Class<?> arg0, String arg1, Boolean arg2)

参数:

范围类型描述
arg0java.lang.Class
arg1java.lang.String
arg2java.lang.Boolean

退货:

register(System.Enum.AbstractEnum arg0)

public static void register(System.Enum.AbstractEnum arg0)

参数:

范围类型描述
arg0com.aspose.ms.System.Enum.AbstractEnum

toObject(System.Type arg0, Object arg1)

public static Object toObject(System.Type arg0, Object arg1)

参数:

范围类型描述
arg0com.aspose.ms.System.Type
arg1java.lang.Object

退货: java.lang.Object

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int