Table of Contents

Class PdfLiteral

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents text that is written ‘as it is’ into the PDF stream. Using 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 : PdfPrimitive
Inheritance
object
PdfLiteral
Inherited Members
Extension Methods

Constructors

PdfLiteral(string)

Initializes a new instance with the specified string. The string is (as always) interpreted as an UTF16 .NET string and written as a raw string.

PdfLiteral(string, params object[])

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

Properties

Value

Gets the value as literal string.

Methods

FromMatrix(XMatrix)

Creates a literal from an XMatrix

ToString()

Returns a string that represents the current value.