Method CreateWithStreamProvider
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
CreateWithStreamProvider(IPdfStreamProvider)
Creates configuration options initialized with the specified stream provider.
public static PdfConfigurationOptions CreateWithStreamProvider(IPdfStreamProvider provider)
Parameters
provider
IPdfStreamProviderThe stream provider to use in this options.
Returns
- 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.