PdfConfigurationOptions.CreateWithStreamProvider Method

Creates configuration options initialized with the specified stream provider.

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

Syntax

C#
public static PdfConfigurationOptions CreateWithStreamProvider(
	IPdfStreamProvider provider
)
VB
Public Shared Function CreateWithStreamProvider ( 
	provider As IPdfStreamProvider
) As PdfConfigurationOptions

Parameters

provider
Type: BitMiracle.Docotic.Pdf.IPdfStreamProvider
The stream provider to use in this options.

Return Value

Type: PdfConfigurationOptions
The newly created configuration options initialized with the specified stream provider.

Remarks

By default, in the Create() method, the library uses instances of PdfMixedStorageStreamProvider for document stream providers.

In cases when speed is most important and you are not concerned about memory footprint, you might want to use instances of PdfMemoryStreamProvider.

You can create any other stream provider by implementing the IPdfStreamProvider interface.

See Also