Table of Contents

Class PdfLiteral

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

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, ICloneable
Inheritance
PdfLiteral
Implements
Inherited Members

Constructors

PdfLiteral()

Initializes a new instance of the PdfLiteral class.

public PdfLiteral()

PdfLiteral(string)

Initializes a new instance with the specified string.

public PdfLiteral(string value)

Parameters

value string

PdfLiteral(string, params object[])

Initializes a new instance with the culture invariant formatted specified arguments.

public PdfLiteral(string format, params object[] args)

Parameters

format string
args object[]

Properties

Value

Gets the value as literal string.

public string Value { get; }

Property Value

string

Methods

FromMatrix(XMatrix)

Creates a literal from an XMatrix

public static PdfLiteral FromMatrix(XMatrix matrix)

Parameters

matrix XMatrix

Returns

PdfLiteral

ToString()

Returns a string that represents the current value.

public override string ToString()

Returns

string