[]
Represents a PDF String.
public class PdfString : IPdfString, ActionHide.ILinkedObject, ActionFieldsBase.IFieldDef, IReadOnlyList<byte>, IReadOnlyCollection<byte>, IEnumerable<byte>, IEnumerable, IEquatable<PdfString>, IComparable<PdfString>
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Initializes a new instance of the PdfString class.
public PdfString(byte[] value, PdfStringFlags flags)
value
byte[]The value.
flags
PdfStringFlagsThe value of Flags.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Initializes a new instance of the PdfString class.
public PdfString(byte[] value, int offset, int length)
value
byte[]The byte array.
offset
intThe offset in the value
.
length
intThe length of the name.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Initializes a new instance of the PdfString class.
public PdfString(byte[] value)
value
byte[]The value.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Initializes a new instance of the PdfString class.
public PdfString(string value)
value
stringThe value.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"Adobe"
public static readonly PdfString Adobe
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
The empty instance of the PdfString.
public static readonly PdfString Empty
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
The state of the PdfString object.
public PdfStringFlags Flags
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"Identity"
public static readonly PdfString Identity
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"open"
public static readonly PdfString open
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"print"
public static readonly PdfString print
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"sRGB"
public static readonly PdfString sRGB
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
"UCS"
public static readonly PdfString UCS
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Gets the number of elements contained in the PdfString.
public int Count { get; }
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Gets or sets the byte at the specified index.
public byte this[int index] { get; }
index
intThe zero-based index of the byte to get or set.
The byte at the specified index.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Converts a list of bytes representing a PDF string to a string.
public static string BytesToString(IList<byte> bytes)
bytes
System.Collections.Generic.IList<T><byte>Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Compares the current PdfString with another PdfString and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(PdfString other)
A value that indicates the relative order of the objects being compared. The return value has these meanings:
other
in the sort order.other
.other
.Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Checks whether this PdfString is equal to value
.
public bool Equals(PdfString value)
value
PdfStringTechnically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
public override bool Equals(object obj)
obj
objectTechnically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Creates a PdfString from the passed string.
public static PdfString FromString(string s)
s
stringThe string to create the PDF string from.
The created PDF string, or null if s
is null.
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
public override int GetHashCode()
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Converts a string to the array of bytes representing the PDF string.
public static byte[] StringToBytes(string s)
s
stringTechnically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
public override string ToString()
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types: