iText 5

Utilities

Utilities Public class

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text iTextSharp.text.Utilities[[Utilities]] end

Members

Methods

Public Static methods

Returns

Name

object``[][]

AddToArray

(object``[][] original, object``[] item)

bool

CheckTrueOrFalse

(Properties attributes, string key)

float

ComputeTabSpace

(...)

string

ConvertFromUtf32

(int codePoint)

string

ConvertToHex

(byte``[] bytes)

int

ConvertToUtf32

(...)

ICollection<K>

GetKeySet

(Dictionary<K, V> table)

float

InchesToMillimeters

(float value)

float

InchesToPoints

(float value)

bool

IsSurrogateHigh

(char c)

bool

IsSurrogateLow

(char c)

bool

IsSurrogatePair

(...)

float

Max

(float``[] array)

float

MillimetersToInches

(float value)

float

MillimetersToPoints

(float value)

float

Min

(float``[] array)

float

PointsToInches

(float value)

float

PointsToMillimeters

(float value)

string

ReadFileToString

(string path)

void

Skip

(Stream istr, int size)
This method is an alternative for the Stream.Skip()-method
that doesn't seem to work properly for big values of size.

Uri

ToURL

(string filename)
This method makes a valid URL from a given filename.

string

UnEscapeURL

(string src)

Details

Constructors

Utilities

public Utilities()

Methods

GetKeySet

Source code

public static ICollection<K> GetKeySet<K, V>(Dictionary<K, V> table) where K : where V :

Arguments

Type

Name

Description

Dictionary<K, V>

table

AddToArray

Source code

public static object AddToArray(object[][] original, object[] item)

Arguments

Type

Name

Description

object``[][]

original

object``[]

item

CheckTrueOrFalse

Source code

public static bool CheckTrueOrFalse(Properties attributes, string key)

Arguments

Type

Name

Description

Properties

attributes

string

key

ToURL

Source code

public static Uri ToURL(string filename)

Arguments

Type

Name

Description

string

filename

a given filename

Summary

This method makes a valid URL from a given filename.

Remarks
Returns

a valid URL

UnEscapeURL

Source code

public static string UnEscapeURL(string src)

Arguments

Type

Name

Description

string

src

Skip

Source code

public static void Skip(Stream istr, int size)

Arguments

Type

Name

Description

Stream

istr

the stream

int

size

the number of bytes to skip

Summary

This method is an alternative for the Stream.Skip()-method that doesn't seem to work properly for big values of size.

MillimetersToPoints

Source code

public static float MillimetersToPoints(float value)

Arguments

Type

Name

Description

float

value

MillimetersToInches

Source code

public static float MillimetersToInches(float value)

Arguments

Type

Name

Description

float

value

PointsToMillimeters

Source code

public static float PointsToMillimeters(float value)

Arguments

Type

Name

Description

float

value

PointsToInches

Source code

public static float PointsToInches(float value)

Arguments

Type

Name

Description

float

value

InchesToMillimeters

Source code

public static float InchesToMillimeters(float value)

Arguments

Type

Name

Description

float

value

InchesToPoints

Source code

public static float InchesToPoints(float value)

Arguments

Type

Name

Description

float

value

IsSurrogateHigh

Source code

public static bool IsSurrogateHigh(char c)

Arguments

Type

Name

Description

char

c

IsSurrogateLow

Source code

public static bool IsSurrogateLow(char c)

Arguments

Type

Name

Description

char

c

IsSurrogatePair [1/2]

Source code

public static bool IsSurrogatePair(string text, int idx)

Arguments

Type

Name

Description

string

text

int

idx

IsSurrogatePair [2/2]

Source code

public static bool IsSurrogatePair(char[] text, int idx)

Arguments

Type

Name

Description

char``[]

text

int

idx

ConvertToUtf32 [1/3]

Source code

public static int ConvertToUtf32(char highSurrogate, char lowSurrogate)

Arguments

Type

Name

Description

char

highSurrogate

char

lowSurrogate

ConvertToUtf32 [2/3]

Source code

public static int ConvertToUtf32(char[] text, int idx)

Arguments

Type

Name

Description

char``[]

text

int

idx

ConvertToUtf32 [3/3]

Source code

public static int ConvertToUtf32(string text, int idx)

Arguments

Type

Name

Description

string

text

int

idx

ConvertFromUtf32

Source code

public static string ConvertFromUtf32(int codePoint)

Arguments

Type

Name

Description

int

codePoint

ReadFileToString

Source code

public static string ReadFileToString(string path)

Arguments

Type

Name

Description

string

path

ConvertToHex

Source code

public static string ConvertToHex(byte[] bytes)

Arguments

Type

Name

Description

byte``[]

bytes

ComputeTabSpace [1/2]

Source code

public static float ComputeTabSpace(float lx, float rx, float tab)

Arguments

Type

Name

Description

float

lx

float

rx

float

tab

ComputeTabSpace [2/2]

Source code

public static float ComputeTabSpace(float width, float tab)

Arguments

Type

Name

Description

float

width

float

tab

Max

Source code

public static float Max(float[] array)

Arguments

Type

Name

Description

float``[]

array

Min

Source code

public static float Min(float[] array)

Arguments

Type

Name

Description

float``[]

array

Generated with ModularDoc