[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Writer.PdfDocStreamWriter

PdfDocStreamWriter Class

PDF writer used to build PDF document content.

Inheritance
PdfDocStreamWriter
Namespace: GrapeCity.Documents.Pdf.Writer
Assembly: DS.Documents.Pdf.dll
Syntax
public class PdfDocStreamWriter : PdfStreamWriterBase
Public Class PdfDocStreamWriter
    Inherits PdfStreamWriterBase

Properties

Name Description
CurrentObjID

Gets the ID of the object that is currently being written.

Methods

Name Description
AddDictEntry(PdfName, IPdfObject)

Adds a dictionary entry with value representing GrapeCity.Documents.Pdf.Spec.IPdfObject, see Write(IPdfObject).

AddDictEntryRaw(PdfName, string)

Adds a dictionary entry with "raw" value, passed value is written as is, each char converted to byte using (byte)value[...].

BeginObj(PdfObjID, bool)

Starts writing a new PDF indirect object with specified ID.

BeginObj(PdfObjID, string, bool)

Starts writing a new PDF indirect object with specified ID.

BeginObj(int, bool)

Starts writing a new PDF indirect object with specified ID.

BeginObj(int, string, bool)

Starts writing a new PDF indirect object with specified ID.

BeginObj(string, bool)

Generates an ID and starts writing a new PDF indirect object, returns the generated ID.

BeginStream(out long, out Stream, out bool)

Starts a stream, PDF stream dictionary should be already started. Should be enclosed with EndStream(long).

EndObj()

Ends writing a PDF indirect object started with one of BeginObj(...) methods.

EndStream(Stream, PdfName, IPdfDict, bool, EncryptionStreamType, bool)

Ends writing a PDF indirect object started with one of BeginObj(...) methods. If stream is not empty then writes PDF stream, including "Length" and "Filter" dictionary properties.

EndStream(long)

Ends a PDF stream started with BeginStream(out long, out Stream, out bool).

Write(IPdfObject)

Writes the GrapeCity.Documents.Pdf.Spec.IPdfObject object if value is indirect object then reference to this object will be written otherwise Write(PdfStreamWriterBase) will be called to write value representing an object. If value is null or GrapeCity.Documents.Pdf.Spec.IPdfObject.Empty is true then PDF NULL value will be written.

WriteComment(string)

Writes a comment string to the stream.

WriteCrossRefTableHeader(int, int, bool)

Writes start of "xref" table.

WriteCrossRefTableItem(int)

Writes item of "xref" table.

WriteCrossRefTableTrailer(long, int, long, int, int, bool, bool, int)

Writes trailer of "xref" table.