Namespace: PdfSharp.Pdf
Represents a direct text string value.
public sealed class PdfString : PdfItem, System.ICloneable
Inheritance Object → PdfItem → PdfString
Implements ICloneable
Gets the number of characters in this string.
public int Length { get; }
Gets the encoding.
public PdfStringEncoding Encoding { get; }
Gets a value indicating whether the string is a hexadecimal literal.
public bool HexLiteral { get; }
Gets the string value.
public string Value { get; }
Initializes a new instance of the PdfString class.
public PdfString()
Initializes a new instance of the PdfString class.
public PdfString(string value)
value
String
The value.
Initializes a new instance of the PdfString class.
public PdfString(string value, PdfStringEncoding encoding)
value
String
The value.
encoding
PdfStringEncoding
The encoding.
Returns the string.
public string ToString()
Hack for document encoded bookmarks.
public string ToStringFromPdfDocEncoded()
Writes the string DocEncoded.
internal void WriteObject(PdfWriter writer)
writer
PdfWriter