Class PdfFont
Inheritance
System.Object
PdfFont
Implements
IronSoftware.IDocumentFontObject
IronSoftware.IDocumentObject
Assembly: IronPdf.dll
Syntax
public class PdfFont : Object
Constructors
PdfFont(StandardFont)
Declaration
public PdfFont(StandardFont font)
Parameters
PdfFont(FontTypes)
Declaration
public PdfFont(FontTypes font)
Parameters
Type |
Name |
Description |
IronSoftware.Drawing.FontTypes |
font |
|
PdfFont(IPdfClient, IDocumentId, UInt32, Boolean, String, FontType, UInt32)
Declaration
public PdfFont(IPdfClient client, IDocumentId id, uint obj_num, bool is_embedded, string name, FontType type, uint descendantFontObjNum = 0U)
Parameters
Type |
Name |
Description |
IronSoftware.Pdfium.IPdfClient |
client |
|
IronSoftware.IDocumentId |
id |
|
System.UInt32 |
obj_num |
|
System.Boolean |
is_embedded |
|
System.String |
name |
|
FontType |
type |
|
System.UInt32 |
descendantFontObjNum |
|
PdfFont(String)
Declaration
public PdfFont(string StandardFont)
Parameters
Type |
Name |
Description |
System.String |
StandardFont |
|
Properties
DescendantFontObjNum
Declaration
public uint DescendantFontObjNum { get; }
Property Value
Type |
Description |
System.UInt32 |
|
DocumentId
Declaration
public IDocumentId DocumentId { get; set; }
Property Value
Type |
Description |
IronSoftware.IDocumentId |
|
FontData
Declaration
public byte[] FontData { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
FontSize
Declaration
public float FontSize { get; set; }
Property Value
Type |
Description |
System.Single |
|
IsEmbedded
Declaration
public bool IsEmbedded { get; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
ObjNum
Declaration
public uint ObjNum { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
PageIndex
Declaration
public uint PageIndex { get; set; }
Property Value
Type |
Description |
System.UInt32 |
|
Type
Declaration
public FontType Type { get; }
Property Value
Methods
Embed(Byte[])
Declaration
public void Embed(byte[] Data = null)
Parameters
Type |
Name |
Description |
System.Byte[] |
Data |
|
ReplaceWith(Byte[])
Declaration
public PdfFont ReplaceWith(byte[] FontData)
Parameters
Type |
Name |
Description |
System.Byte[] |
FontData |
|
Returns
ReplaceWith(String)
Declaration
public PdfFont ReplaceWith(string FontName)
Parameters
Type |
Name |
Description |
System.String |
FontName |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Unembed()
Declaration
Operators
Implicit(PdfFont to FontTypes)
Declaration
public static implicit operator FontTypes(PdfFont src)
Parameters
Returns
Type |
Description |
IronSoftware.Drawing.FontTypes |
|
Implicit(FontTypes to PdfFont)
Declaration
public static implicit operator PdfFont(FontTypes src)
Parameters
Type |
Name |
Description |
IronSoftware.Drawing.FontTypes |
src |
|
Returns
Implements
IronSoftware.IDocumentFontObject
IronSoftware.IDocumentObject