[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.PdfString

PdfString Class

Represents a PDF String.

Inheritance
PdfString
Namespace: GrapeCity.Documents.Pdf.Spec
Assembly: DS.Documents.Pdf.dll
Syntax
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)
Remarks

Technically a PDF string is an array of bytes. Its interpretation depends on the context. The PDF specification describes the following possible types:

  • byte string
  • text string
  • Unicode string
  • etc.

Constructors

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.

Fields

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

"print"

sRGB

"sRGB"

Properties

Name Description
Count

Gets the number of elements contained in the PdfString.

this[int]

Gets or sets the byte at the specified index.

Methods

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 value.

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()

Extension Methods