PdfDocumentBuilder.Generate Method (Stream, Action(Document))

Generates PDF document and saves it to a stream.

Namespace:  BitMiracle.Docotic.Pdf.Layout
Assembly:  BitMiracle.Docotic.Pdf.Layout (in BitMiracle.Docotic.Pdf.Layout.dll)

Syntax

C#
public void Generate(
	Stream stream,
	Action<Document> buildLayout
)
VB
Public Sub Generate ( 
	stream As Stream,
	buildLayout As Action(Of Document)
)

Parameters

stream
Type: System.IO.Stream
The writable and seekable output stream.
buildLayout
Type: System.Action<Document>
The handler to build document layout.

Exceptions

ExceptionCondition
ArgumentNullExceptionstream or buildLayout is null.

Remarks

Caller of the method is responsible for disposing of the stream.

See Also