[]
Represents a PDF String.
public class PdfString : IPdfString, ActionHide.ILinkedObject, ActionFieldsBase.IFieldDef, IReadOnlyList<byte>, IReadOnlyCollection<byte>, IEnumerable<byte>, IEnumerable, IEquatable<PdfString>, IComparable<PdfString>
Public Class PdfString
Implements IPdfString, ActionHide.ILinkedObject, ActionFieldsBase.IFieldDef, IReadOnlyList(Of Byte), IReadOnlyCollection(Of Byte), IEnumerable(Of Byte), IEnumerable, IEquatable(Of PdfString), IComparable(Of PdfString)
Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:
Name | Description |
---|---|
PdfString(byte[]) | Initializes a new instance of the PdfString class. |
PdfString(byte[], PdfStringFlags) | Initializes a new instance of the PdfString class. |
PdfString(byte[], int, int) | Initializes a new instance of the PdfString class. |
PdfString(string) | Initializes a new instance of the PdfString class. |
Name | Description |
---|---|
Adobe | "Adobe" |
Empty | The empty instance of the PdfString. |
Flags | The state of the PdfString object. |
Identity | "Identity" |
UCS | "UCS" |
open | "open" |
"print" |
|
sRGB | "sRGB" |
Name | Description |
---|---|
Count | Gets the number of elements contained in the PdfString. |
this[int] | Gets or sets the byte at the specified index. |
Name | Description |
---|---|
BytesToString(IList<byte>) | Converts a list of bytes representing a PDF string to a string. |
CompareTo(PdfString) | 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. |
Equals(PdfString) | Checks whether this PdfString is equal to |
Equals(object) | |
FromString(string) | Creates a PdfString from the passed string. |
GetHashCode() | |
StringToBytes(string) | Converts a string to the array of bytes representing the PDF string. |
ToString() |