Namespace: PdfSharp.Pdf
Represents text that is written ‘as it is’ into the PDF stream. This class can lead to invalid PDF files. E.g. strings in a literal are not encrypted when the document is saved with a password.
public sealed class PdfLiteral : PdfItem, System.ICloneable
Inheritance Object → PdfItem → PdfLiteral
Implements ICloneable
Gets the value as literal string.
public string Value { get; }
Initializes a new instance of the PdfLiteral class.
public PdfLiteral()
Initializes a new instance with the specified string.
public PdfLiteral(string value)
value
String
Initializes a new instance with the culture invariant formatted specified arguments.
public PdfLiteral(string format, Object[] args)
format
String
args
Object[]
Creates a literal from an XMatrix
public static PdfLiteral FromMatrix(XMatrix matrix)
matrix
XMatrix
Returns a string that represents the current value.
public string ToString()
internal void WriteObject(PdfWriter writer)
writer
PdfWriter