Class PdfObject
- Namespace
- SoftZenPdf.Objects
- Assembly
- SoftZenPdf.dll
Base class of the low-level PDF object model (ISO 32000-1 §7.3): booleans, numbers, strings, names, arrays, dictionaries, streams, references and null. Most applications never need these types; they are for inspecting files read with PdfReader or building structures SoftZenPdf has no high-level API for.
public abstract class PdfObject
- Inheritance
-
PdfObject
- Derived
- Inherited Members
Remarks
Numbers and booleans convert implicitly, so dictionary["Count"] = 3; works.
Methods
- ToBytes()
Returns the object in PDF syntax, unencrypted.
- ToString()
Returns the object in PDF syntax, decoded as Latin-1; useful for debugging.
- WriteTo(Stream)
Writes the object in PDF syntax, unencrypted.
Operators
- implicit operator PdfObject(bool)
Converts a boolean to a PdfBoolean.
- implicit operator PdfObject(double)
Converts a real number to a PdfNumber.
- implicit operator PdfObject(int)
Converts an integer to a PdfNumber.
- implicit operator PdfObject(long)
Converts an integer to a PdfNumber.