Interface IWritableDataProvider

An interface to allow PSPDFKit to write to any source.

Namespace: PSPDFKit.Providers
Assembly: PSPDFKit.dll
Syntax
public interface IWritableDataProvider : IDataProvider

Methods

Finish()

Declaration
bool Finish()
Returns
Type Description
System.Boolean

StartWrite(DataSinkOption)

Tells the data provider that writing is about to start. This helps when there is setup to do on the provider.

Declaration
bool StartWrite(DataSinkOption dataSinkOption)
Parameters
Type Name Description
DataSinkOption dataSinkOption

If to append or create a new block of data.

Returns
Type Description
System.Boolean

If the data provider setup correctly.

Write(Byte[])

Write the given data to the data provider.

Declaration
bool Write(byte[] data)
Parameters
Type Name Description
System.Byte[] data

The data to write.

Returns
Type Description
System.Boolean

If the write was successful.