Skip to main content

Class PdfReal

Namespace: AdCodicem.Pdf.Objects
Assembly: AdCodicem.Pdf.dll

Represents a PDF real number.

public sealed class PdfReal : PdfObject

Inheritance​

object ← PdfObject ← PdfReal

Inherited Members​

PdfObject.Resolve(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods​

PdfObjectExtensions.AsArray(PdfObject?), PdfObjectExtensions.AsBoolean(PdfObject?), PdfObjectExtensions.AsDictionary(PdfObject?), PdfObjectExtensions.AsInteger(PdfObject?), PdfObjectExtensions.AsName(PdfObject?), PdfObjectExtensions.AsNumber(PdfObject?), PdfObjectExtensions.AsStream(PdfObject?), PdfObjectExtensions.AsString(PdfObject?), PdfObjectExtensions.AsText(PdfObject?), PdfObjectExtensions.Resolved(PdfObject?)

Remarks​

PDF reals admit no exponent notation, which is why formatting for output never goes through the default Double conversion. A real read from a file is the double nearest to the decimal it wrote, and is finite: a number beyond what a double holds reads as null, reported as PdfDiagnosticCodes.SyntaxNumberOutOfRange.

Constructors​

PdfReal(double)​

Initializes a new real with the given value.

public PdfReal(double value)

Parameters​

value double

Fields​

Zero​

The real zero.

public static readonly PdfReal Zero

Field Value​

PdfReal

Properties​

Value​

Gets the value.

public double Value { get; }

Property Value​

double

Methods​

ToString()​

Returns a string that represents the current object.

public override string ToString()

Returns​

string

A string that represents the current object.