[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.GcPdfDocument.StartDoc

StartDoc Method

StartDoc(Stream)

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.

Declaration
public void StartDoc(Stream stream)
Public Sub StartDoc(stream As Stream)
Parameters
Type Name Description
Stream 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(Stream) is not called, and the document is saved by Save(Stream, bool) or Save(string, bool) after all content has been added instead.)

EndDoc() Save(Stream, bool) Save(string, bool)