Class FontSavingArgs

Class FontSavingArgs

Le nom : Aspose.Words.Saving Assemblée: Aspose.Words.dll (25.4.0)

Aspose.Words.Saving.IFontSavingCallback.FontSaving(Aspose.Words.Saving.FontSavingArgs)イベントのデータを提供します。

Pour en savoir plus, visitez le Save a Document article de documentation.

public class FontSavingArgs

Inheritance

object FontSavingArgs

I membri ereditari

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

Lorsque Aspose.Words enregistre un document dans les formats HTML ou connexes et que Aspose.Words.Saving.HtmlSaveOptions.ExportFontResources est configuré, il enregistre chaque sujet de caractère pour l’exportation dans un fichier distinct.

Aspose.Words.Saving.FontSachingArgs contrôle si une ressource de caractère spécifique doit être exportée et comment.

Aspose.Words.Saving.FontSachingArgs permet également de redefinir la façon dont les noms de fichiers font sont générés ou de contourner complètement le sauvetage des fonts dans les fiches en fournissant vos propres objets de flux.

特定のフォントリソースを保存するかどうかを決定するには、 Aspose.Words.Saving.FontSavingArgs.IsExportNeeded を使用します。

ファイルの代わりにストリームにフォントを保存するには、Aspose.Words.Saving.FontSavingArgs.FontStream 属性を使用します。

Properties

Bold

現在の文字が勇気あるかどうかを示す。

public bool Bold { get; }

Valore di proprietà

bool

Document

保存されている文書のオブジェクトを取得します。

public Document Document { get; }

Valore di proprietà

Document

FontFamilyName

現在のフォントファミリー名を表示します。

public string FontFamilyName { get; }

Valore di proprietà

string

FontFileName

ファイル名(ルートなし)を取得または設定し、フォントが保存される。

public string FontFileName { get; set; }

Valore di proprietà

string

Remarks

この属性により、フォントファイル名がHTMLに輸出する際にどのように生成されるかを再定義できます。

イベントがリリースされた場合、この属性には、Aspose.Words によって生成されたファイル名が含まれます. この属性の値を変更して、フォントを別のファイルに保存することができます. ファイル名がユニークでなければならないことに注意してください。

Aspose.Words は、HTML フォーマットにエクスポートする際に、組み込まれたフォントごとにユニークなファイル名を自動的に生成します. フォントファイル名がどのように生成されるかは、ファイルまたはストリームにドキュメントを保存するかどうかによって決まります。

Lorsque vous économisez un document dans un fichier, le nom du fichier font généré ressemble à .

Lorsque vous économisez un document dans un flux, le nom du fichier font généré ressemble à .

Aspose.Words.Saving.HtmlSaveOptions.FontsFolder et www.Wl26_Name ne doit contenir que le nom de fichier sans la voie. __ WL27 détermine le chemin de sauvegarde à l’aide du nom des fichiers de document, le __ www.wl25_name.

Aspose.Words.Saving.FontSavingArgs.FontStream Aspose.Words.Saving.HtmlSaveOptions.FontsFolder Aspose.Words.Saving.HtmlSaveOptions.FontsFolderAlias

FontStream

文字が保存される流れを指定することを許可します。

public Stream FontStream { get; set; }

Valore di proprietà

Stream

Remarks

この属性は、HTMLエクスポート中にファイルの代わりにストリームに文字を保存することができます。

La valeur par défaut est . Lorsque cette propriété est , le fichier sera sauvé vers un fichier spécifié dans la propriété Aspose.Words.Saving.FontSavingArgs.FontFileName.

Aspose.Words.Saving.FontSavingArgs.FontFileName Aspose.Words.Saving.FontSavingArgs.KeepFontStreamOpen

IsExportNeeded

現在のフォントがフォントリソースとして輸出されるかどうかを指定することを可能にします デフォルトは「真実」です。

public bool IsExportNeeded { get; set; }

Valore di proprietà

bool

IsSubsettingNeeded

現在のフォントがフォントリソースとして輸出される前にサブセットされるかどうかを指定することを可能にします。

public bool IsSubsettingNeeded { get; set; }

Valore di proprietà

bool

Remarks

フォントは完全なオリジナルのフォントファイルとして輸出されるか、文書に使用される文字のみを含むためにサブセットすることができます。

デフォルトで、Aspose.Words は、Aspose.Words.Saving.HtmlSaveOptions.FontResourcesSubsettingSizeThreshold で指定されたファイルサイズとオリジナルのフォントファイルサイズを比較してサブセットを実行するかどうかを決定します。

Italic

現在の文字がイタリア語であるかどうかを示す。

public bool Italic { get; }

Valore di proprietà

bool

KeepFontStreamOpen

Aspose.Words がフォントを保存した後にストリームを開くか閉じるかどうかを指定します。

public bool KeepFontStreamOpen { get; set; }

Valore di proprietà

bool

Remarks

Défaut est et Aspose.Words ferme le courant que vous fournissez dans la propriété Aspose.Words.Saving.FontSavingArgs.FontStream après l’écriture d’une lettre dans elle.

Résumé des mots.Saving.FontSavingArgs.FontStream

OriginalFileName

オリジナルのフォントファイル名を拡張子で取得します。

public string OriginalFileName { get; }

Valore di proprietà

string

Remarks

この属性は、既存のフォントのオリジナルファイル名が含まれている場合、知られています。

Résumé des mots.Saving.FontSavingArgs.OriginalFileSize

OriginalFileSize

オリジナルのフォントファイルサイズを取得します。

public int OriginalFileSize { get; }

Valore di proprietà

int

Remarks

この属性は、既存のフォントの元のファイルサイズが含まれています. そうでなければゼロになる可能性があります。

Aspose.Words.Saving.FontSavingArgs.OriginalFileName Aspose.Words.Saving.FontSavingArgs.IsSubsettingNeeded

 Français