PDFsharp-net6

PdfLiteral

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 ObjectPdfItemPdfLiteral
Implements ICloneable

Properties

Value

Gets the value as literal string.

public string Value { get; }

Property Value

String

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, Object[])

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

public PdfLiteral(string format, Object[] args)

Parameters

format String

args Object[]

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

Returns

String

WriteObject(PdfWriter)

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter