Skip to main content

DocumentWriter

Version: 12.0

cete.dynamicpdf.io.documentwriter

DocumentWriter​

Represents a writer class for a document.

public abstract class DocumentWriter
Public MustInherit Class DocumentWriter

Inheritance: Object → DocumentWriter

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Constructors​

DocumentWriter(Document)​

Initializes a new instance of the DocumentWriter class.

public DocumentWriter(Document document)
Public Sub New (document As Document)

Parameters​

The Document to be drawn.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Properties​

CreationDate​

Gets document creation time.

public DateTime CreationDate { get; }
Public Property CreationDate As DateTime

Property Value​

DateTime

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

CurrentSection​

Gets the current Section.

public Section CurrentSection { get; }
Public Property CurrentSection As Section

Property Value​

Section

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Document​

Gets the current document.

public Document Document { get; }
Public Property Document As Document

Property Value​

Document

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

FontSubsetter​

Gets the current font subsetter.

public FontSubsetter FontSubsetter { get; }
Public Property FontSubsetter As FontSubsetter

Property Value​

FontSubsetter

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ModifiedDate​

Gets document modified time.

public DateTime ModifiedDate { get; }
Public Property ModifiedDate As DateTime

Property Value​

DateTime

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Resources​

Gets a resource list for the document.

public abstract DocumentResourceList Resources { get; }
Public MustOverride Property Resources As DocumentResourceList

Property Value​

DocumentResourceList

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

ClearFontSubsetter()​

Clears the current font subsetter.

public void ClearFontSubsetter()
Sub ClearFontSubsetter()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Draw()​

Initiates the actual drawing of the PDF .

public abstract void Draw()
MustOverride Sub Draw()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetObjectNumber()​

Gets the indirect object number of the current indirect object.

public abstract int GetObjectNumber()
MustOverride Function GetObjectNumber() As Integer

Returns​

Object number of current indirect object.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetObjectNumber(Int32)​

Gets the indirect object number of the current indirect object.

public abstract int GetObjectNumber(int offset)
MustOverride Function GetObjectNumber(offset As Integer) As Integer

Parameters​

Offset from the current object.

Returns​

Object number of current indirect object.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetPageObject(Int32)​

Returns the indirect object number for the given page.

public abstract int GetPageObject(int pageNumber)
MustOverride Function GetPageObject(pageNumber As Integer) As Integer

Parameters​

Page number in the document.

Returns​

The indirect object number for the given page.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

SetFontSubsetter(IFontSubsettable)​

Sets the current font subsetter.

public FontSubsetter SetFontSubsetter(IFontSubsettable subsettableFont)
Function SetFontSubsetter(subsettableFont As IFontSubsettable) As FontSubsetter

Parameters​

Subsettable font to use for setting the current font subsetter.

Returns​

The current font subsetter.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Write(Byte[])​

Writes a byte array to the document.

public abstract void Write(Byte[] data)
MustOverride Sub Write(data As Byte())

Parameters​

The byte array to output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Write(Byte[], Int32)​

Writes a portion of a byte array to the document.

public abstract void Write(Byte[] data, int length)
MustOverride Sub Write(data As Byte(), length As Integer)

Parameters​

The byte array to output.

The length to output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Write(Byte[], Int32, Int32)​

Writes a portion of a byte array to the document.

public abstract void Write(Byte[] data, int start, int length)
MustOverride Sub Write(data As Byte(), start As Integer, length As Integer)

Parameters​

The byte array to output.

The start index of source.

The length to output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteArrayClose()​

Closes a PDF array on the document

public abstract void WriteArrayClose()
MustOverride Sub WriteArrayClose()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteArrayOpen()​

Opens a PDF array on the document.

public abstract void WriteArrayOpen()
MustOverride Sub WriteArrayOpen()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteBeginObject()​

Begins a PDF object on the document.

public abstract int WriteBeginObject()
MustOverride Function WriteBeginObject() As Integer

Returns​

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteBoolean(Boolean)​

Writes a boolean value to the document.

public abstract void WriteBoolean(bool value)
MustOverride Sub WriteBoolean(value As Boolean)

Parameters​

The boolean value to output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteDictionaryClose()​

Closes a dictionary entry on the document.

public abstract void WriteDictionaryClose()
MustOverride Sub WriteDictionaryClose()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteDictionaryOpen()​

Opens a dictionary entry on the document.

public abstract void WriteDictionaryOpen()
MustOverride Sub WriteDictionaryOpen()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteEndObject()​

Closes a PDF object on the document.

public abstract void WriteEndObject()
MustOverride Sub WriteEndObject()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(Byte)​

Writes a byte to the document.

public abstract void WriteName(byte name)
MustOverride Sub WriteName(name As Byte)

Parameters​

Byte to output to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(Byte, Int32)​

Writes a byte to the document.

public abstract void WriteName(byte nameCharacter, int nameNumber)
MustOverride Sub WriteName(nameCharacter As Byte, nameNumber As Integer)

Parameters​

  • nameCharacter: Byte

Byte to output to the document.

Integer to output to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(Byte[])​

Writes a byte array to the document.

public abstract void WriteName(Byte[] name)
MustOverride Sub WriteName(name As Byte())

Parameters​

Byte array to output to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(Byte[], Int32, Int32)​

Writes a portion of the byte array to the document.

public abstract void WriteName(Byte[] name, int start, int length)
MustOverride Sub WriteName(name As Byte(), start As Integer, length As Integer)

Parameters​

Byte array to output to the document.

Start of the byte array to output.

Length of the byte array to output

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(Byte[], String)​

Writes a byte array to the document.

public abstract void WriteName(Byte[] name, string nameSuffix)
MustOverride Sub WriteName(name As Byte(), nameSuffix As String)

Parameters​

Byte array to output to the document.

Suffix to output to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteName(String)​

Writes a string to the document.

public abstract void WriteName(string name)
MustOverride Sub WriteName(name As String)

Parameters​

String to output to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNull()​

Writes a null value to the document.

public abstract void WriteNull()
MustOverride Sub WriteNull()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber(Byte[], Int32, Int32)​

Writes a number to the document.

public abstract void WriteNumber(Byte[] data, int start, int length)
MustOverride Sub WriteNumber(data As Byte(), start As Integer, length As Integer)

Parameters​

The byte array containing the number to be written.

Start of number.

Length of number.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber(Int16)​

Writes a short to the document.

public abstract void WriteNumber(short value)
MustOverride Sub WriteNumber(value As Short)

Parameters​

The value to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber(Int32)​

Writes an integer to the document.

public abstract void WriteNumber(int value)
MustOverride Sub WriteNumber(value As Integer)

Parameters​

The value to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber(Int64)​

Writes a long to the document.

public abstract void WriteNumber(long value)
MustOverride Sub WriteNumber(value As Long)

Parameters​

The value to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber(Single)​

Writes a float to the document.

public abstract void WriteNumber(float value)
MustOverride Sub WriteNumber(value As Single)

Parameters​

The value to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber0()​

Writes the number 0 to the document.

public abstract void WriteNumber0()
MustOverride Sub WriteNumber0()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumber1()​

Writes the number 1 to the document.

public abstract void WriteNumber1()
MustOverride Sub WriteNumber1()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumberColor(Single)​

Writes a color value to the document.

public abstract void WriteNumberColor(float value)
MustOverride Sub WriteNumberColor(value As Single)

Parameters​

Color value to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteNumberNeg1()​

Writes a negative 1 to the document.

public abstract void WriteNumberNeg1()
MustOverride Sub WriteNumberNeg1()

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteReference(Int32)​

Writes a resource reference to the document.

public abstract void WriteReference(int objectNumber)
MustOverride Sub WriteReference(objectNumber As Integer)

Parameters​

Resource object number or page number to be written to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteReference(Resource)​

Writes a reference to the supplied resource to the document.

public void WriteReference(Resource resource)
Sub WriteReference(resource As Resource)

Parameters​

Resource to be written to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteReferenceShallow(Int32)​

Writes a shallow resource reference to the document.

public abstract void WriteReferenceShallow(int objectNumber)
MustOverride Sub WriteReferenceShallow(objectNumber As Integer)

Parameters​

Resource object number or page number to be written to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteReferenceShallow(Resource)​

Writes a shallow reference to the supplied resource to the document.

public void WriteReferenceShallow(Resource resource)
Sub WriteReferenceShallow(resource As Resource)

Parameters​

Resource to be written to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteReferenceUnique(Resource)​

Writes a unique reference to the supplied resource to the document.

public void WriteReferenceUnique(Resource resource)
Sub WriteReferenceUnique(resource As Resource)

Parameters​

Resource to be written to the document.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteStream(Byte[], Int32)​

Writes a PDF stream object to the document.

public abstract void WriteStream(Byte[] data, int length)
MustOverride Sub WriteStream(data As Byte(), length As Integer)

Parameters​

Byte array to output.

Length of output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteStream(Byte[], Int32, Int32)​

Writes a PDF stream object to the document.

public abstract void WriteStream(Byte[] data, int start, int length)
MustOverride Sub WriteStream(data As Byte(), start As Integer, length As Integer)

Parameters​

Byte array to output.

Start of output.

Length of output.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteStreamWithCompression(Byte[], Int32)​

Writes a PDF stream object to the document.

public abstract int WriteStreamWithCompression(Byte[] data, int length)
MustOverride Function WriteStreamWithCompression(data As Byte(), length As Integer) As Integer

Parameters​

Byte array to output.

Length of output.

Returns​

Size of stream after compression.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteText(Byte[])​

Writes a PDF text object to the document.

public abstract void WriteText(Byte[] text)
MustOverride Sub WriteText(text As Byte())

Parameters​

The text of the text object to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteText(String)​

Writes a PDF text object to the document.

public abstract void WriteText(string text)
MustOverride Sub WriteText(text As String)

Parameters​

The text of the text object to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteTextRawWithoutEncryption(Byte[], Int32, Int32)​

Writes a raw PDF text object to the document without any encryption.

public abstract void WriteTextRawWithoutEncryption(Byte[] text, int startIndex, int count)
MustOverride Sub WriteTextRawWithoutEncryption(text As Byte(), startIndex As Integer, count As Integer)

Parameters​

The text of the text object to write.

The start index of the supplied byte array.

The number of total bytes to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

WriteTextWithoutEncryption(Byte[])​

Writes a PDF text object to the document without any encryption.

public abstract void WriteTextWithoutEncryption(Byte[] text)
MustOverride Sub WriteTextWithoutEncryption(text As Byte())

Parameters​

The text of the text object to write.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.IO