FontEmbeddingUsagePermissions

Inheritance: java.lang.Object

public class FontEmbeddingUsagePermissions

Represents the font embedding usage permissions.

Examples:

Shows how to get license rights information for embedded fonts (FontInfo).


 Document doc = new Document(getMyDir() + "Embedded font rights.docx");

 // Get the list of document fonts.
 FontInfoCollection fontInfos = doc.getFontInfos();
 for (FontInfo fontInfo : fontInfos)
 {
     if (fontInfo.getEmbeddingLicensingRights() != null)
     {
         System.out.println(fontInfo.getEmbeddingLicensingRights().getEmbeddingUsagePermissions());
         System.out.println(fontInfo.getEmbeddingLicensingRights().getBitmapEmbeddingOnly());
         System.out.println(fontInfo.getEmbeddingLicensingRights().getNoSubsetting());
     }
 }
 

Fields

FieldDescription
EDITABLEThe font may be embedded, and may be temporarily loaded on other systems.
INSTALLABLEThe font may be embedded, and may be permanently installed for use on a remote systems, or for use by other users.
PRINT_AND_PREVIEWThe font may be embedded, and may be temporarily loaded on other systems for purposes of viewing or printing the document.
RESTRICTED_LICENSEThe font must not be modified, embedded or exchanged in any manner without first obtaining explicit permission of the legal owner.
length

Methods

MethodDescription
fromName(String fontEmbeddingUsagePermissionsName)
getName(int fontEmbeddingUsagePermissions)
getValues()
toString(int fontEmbeddingUsagePermissions)

EDITABLE

public static int EDITABLE

The font may be embedded, and may be temporarily loaded on other systems.

Remarks:

As with Preview & Print embedding, documents containing Editable fonts may be opened for reading. In addition, editing is permitted, including ability to format new text using the embedded font, and changes may be saved.

INSTALLABLE

public static int INSTALLABLE

The font may be embedded, and may be permanently installed for use on a remote systems, or for use by other users.

public static int PRINT_AND_PREVIEW

The font may be embedded, and may be temporarily loaded on other systems for purposes of viewing or printing the document.

Remarks:

Documents containing Preview & Print fonts must be opened \u201cread-only\u201d; no edits may be applied to the document.

RESTRICTED_LICENSE

public static int RESTRICTED_LICENSE

The font must not be modified, embedded or exchanged in any manner without first obtaining explicit permission of the legal owner.

length

public static int length

fromName(String fontEmbeddingUsagePermissionsName)

public static int fromName(String fontEmbeddingUsagePermissionsName)

Parameters:

ParameterTypeDescription
fontEmbeddingUsagePermissionsNamejava.lang.String

Returns: int

getName(int fontEmbeddingUsagePermissions)

public static String getName(int fontEmbeddingUsagePermissions)

Parameters:

ParameterTypeDescription
fontEmbeddingUsagePermissionsint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int fontEmbeddingUsagePermissions)

public static String toString(int fontEmbeddingUsagePermissions)

Parameters:

ParameterTypeDescription
fontEmbeddingUsagePermissionsint

Returns: java.lang.String