Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcPdfDocument Class / StartDoc Method
The stream to which the PDF document will be written.

In This Topic
    StartDoc Method
    In This Topic
    Starts document generation in sequential mode.

    In this mode, the content of the document is written directly into the underlying stream as soon as it is created, without the use of temporary files. When all content has been added, call EndDoc to finish creating the document.

    Syntax
    'Declaration
     
    Public Sub StartDoc( _
       ByVal stream As System.IO.Stream _
    ) 
    public void StartDoc( 
       System.IO.Stream stream
    )

    Parameters

    stream
    The stream to which the PDF document will be written.
    Remarks

    Sequential mode may provide better performance, but it does not allow modifying the already created pages (which is possible when StartDoc is not called, and the document is saved by Save(Stream,Boolean) or Save(String,Boolean) after all content has been added instead.)

    See Also