See Also

SingleByteEncoder Members  | ceTe.DynamicPDF.Text Namespace

Requirements

Namespace: ceTe.DynamicPDF.Text

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Base class from which single byte encoders are derived.

For a list of all members of this type, see SingleByteEncoder members.

Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.Text.Encoder
      ceTe.DynamicPDF.Text.SingleByteEncoder

Syntax

[Visual Basic]
Public MustInherit Class SingleByteEncoder    Inherits Encoder
[C#]
public abstract class SingleByteEncoder : Encoder

Remarks

See the Text Encodings topic for more details on this.

Example

This example shows how to Change the encoding of a built in font.

[Visual Basic] 

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Text
Imports ceTe.DynamicPDF.PageElements

Module MyModule

    Sub Main()

        ' Create a PDF Document
        Dim MyDocument As Document = New Document

        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create a core font with a specified encoding
        Dim MyCentralEuropeHelveticaFont As Font = New Helvetica(Encoder.CentralEurope)
        ' Use the font in a text area Page Element
        MyPage.Elements.Add(New TextArea("Text using the Central Europe encoder", 0, 0, 200, 12, MyCentralEuropeHelveticaFont, 12))

        ' Save the PDF document
        MyDocument.Draw("C:\MyDocument.pdf")

    End Sub
End Module

[C#] 

using System; 
using ceTe.DynamicPDF; 
using ceTe.DynamicPDF.Text; 
using ceTe.DynamicPDF.PageElements; 
 
class MyClass 

    static void Main() 
    { 
        // Create a PDF Document 
        Document document = new Document(); 
 
        // Create a Page and add it to the document 
        Page page = new Page(); 
        document.Pages.Add( page ); 
         
        // Create a core font with a specified encoding 
        Font centralEuropeHelveticaFont = new Helvetica( Encoder.CentralEurope ); 
        // Use the font in a text area Page Element 
        page.Elements.Add( new TextArea( "Text using the Central Europe encoder", 0, 0, 200, 12, centralEuropeHelveticaFont, 12 ) ); 
         
        // Save the PDF document 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Community Edition feature.

Requirements

Namespace: ceTe.DynamicPDF.Text

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

SingleByteEncoder Members  | ceTe.DynamicPDF.Text Namespace

 

 


© Copyright 2007, ceTe Software