GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfBasicFont Class

    Namespace:
    GemBox.Pdf.Content.Text
    Assembly:
    GemBox.Pdf.dll

    Represents a base class for a font contained in a PdfDocument. A font is represented in PDF as a dictionary specifying the type of font, its PostScript name, its encoding, and information that can be used to provide a substitute when the font program is not available. Optionally, the font program can be embedded as a stream object in the PDF file.

    • C#
    • VB.NET
    public abstract class PdfBasicFont : PdfContentResource
    Public MustInherit Class PdfBasicFont
        Inherits PdfContentResource
    Inheritance:
    Object
    PdfObject
    PdfContentResource
    PdfBasicFont

    Methods

    FromDictionary(PdfDictionary)

    Gets or creates a PdfBasicFont from the specified PdfDictionary that represents a font as specified in PDF Specification ISO 32000-1:2008, section '9.5 Introduction to Font Data Structures'.

    • C#
    • VB.NET
    public static PdfBasicFont FromDictionary(PdfDictionary dictionary)
    Public Shared Function FromDictionary(dictionary As PdfDictionary) As PdfBasicFont
    Parameters
    dictionary
    PdfDictionary

    A PdfDictionary that represents a font as specified in PDF Specification ISO 32000-1:2008, section '9.5 Introduction to Font Data Structures'.

    Returns
    PdfBasicFont

    An instance of a PdfBasicFont or null.

    Remarks

    If PdfBasicFont was already created from the same dictionary, that PdfBasicFont instance is returned.

    This method provides a way to create various PdfBasicFonts which are currently not available in GemBox.Pdf.

    Exceptions
    ArgumentNullException

    dictionary is null.

    Inherited Properties

    Document

    Gets the PdfDocument associated with this PdfContentResource or null if no PdfDocument is associated with this PdfContentResource.

    (Inherited from PdfContentResource)

    Metadata

    (Optional; PDF 1.4) A metadata stream containing metadata for the component.

    (Inherited from PdfObject)

    Extension Methods

    PdfObjectExtensions.GetDictionary(PdfObject)
    PdfObjectExtensions.GetOrAddDictionary(PdfObject)
    PdfObjectExtensions.GetArray(PdfObject)

    See Also

    PDF Specification ISO 32000-1:2008, section '9.5 Introduction to Font Data Structures'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.