Table of Contents

Class Document

Namespace
IO.Scanbot.Sdk.Docprocessing
Assembly
DocumentSDK.NET.Droid.dll
public sealed class Document : Object
Inheritance
Document

Constructors

Document(IDocumentStorage, PageFileStorage, IFileIOProcessor)

public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor)

Parameters

documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor

Document(IDocumentStorage, PageFileStorage, IFileIOProcessor, int)

public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, int documentImageSizeLimit)

Parameters

documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor
documentImageSizeLimit int

Document(IDocumentStorage, PageFileStorage, IFileIOProcessor, string, bool, int)

public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, string documentId, bool createIfNotExist, int documentImageSizeLimit)

Parameters

documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor
documentId string
createIfNotExist bool
documentImageSizeLimit int

Properties

A

public IDocumentStorage A { get; set; }

Property Value

IDocumentStorage

B

public PageFileStorage B { get; set; }

Property Value

PageFileStorage

C

public IFileIOProcessor C { get; set; }

Property Value

IFileIOProcessor

CreationTimeStamp

public long CreationTimeStamp { get; set; }

Property Value

long

D

public IMutableStateFlow D { get; set; }

Property Value

IMutableStateFlow

DocumentImageSizeLimit

public int DocumentImageSizeLimit { get; set; }

Property Value

int

E

public IStateFlow E { get; set; }

Property Value

IStateFlow

G

public static IMutex G { get; set; }

Property Value

IMutex

H

public static int H { get; }

Property Value

int

PageCount

public int PageCount { get; }

Property Value

int

Pages

public IList<Page> Pages { get; }

Property Value

IList<Page>

PagesFlow

public IStateFlow PagesFlow { get; }

Property Value

IStateFlow

PdfUri

public Uri PdfUri { get; }

Property Value

Uri

TiffUri

public Uri TiffUri { get; }

Property Value

Uri

Uuid

public string Uuid { get; set; }

Property Value

string

Methods

AddPage(Bitmap)

public Page AddPage(Bitmap image)

Parameters

image Bitmap

Returns

Page

AddPage(Uri)

public Page AddPage(Uri imageUri)

Parameters

imageUri Uri

Returns

Page

AddPage(byte[])

public Page AddPage(byte[] image)

Parameters

image byte[]

Returns

Page

Delete()

public void Delete()

Duplicate(string, bool)

public Document Duplicate(string newUuid, bool overwrite)

Parameters

newUuid string
overwrite bool

Returns

Document

InsertPage(Bitmap, int)

public Page InsertPage(Bitmap image, int index)

Parameters

image Bitmap
index int

Returns

Page

InsertPage(byte[], int)

public Page InsertPage(byte[] image, int index)

Parameters

image byte[]
index int

Returns

Page

LoadSync(bool)

public Document LoadSync(bool createIfNotExist)

Parameters

createIfNotExist bool

Returns

Document

MovePage(int, int)

public bool MovePage(int sourceIndex, int destinationIndex)

Parameters

sourceIndex int
destinationIndex int

Returns

bool

PageAtIndex(int)

public Page PageAtIndex(int index)

Parameters

index int

Returns

Page

PageIds()

public IList<string> PageIds()

Returns

IList<string>

PageWithId(string)

public Page PageWithId(string uuid)

Parameters

uuid string

Returns

Page

RemoveAllPages()

public void RemoveAllPages()

RemovePage(Page)

public bool RemovePage(Page page)

Parameters

page Page

Returns

bool

RemovePage(int)

public bool RemovePage(int atIndex)

Parameters

atIndex int

Returns

bool

RemovePage(string)

public bool RemovePage(string pageUuid)

Parameters

pageUuid string

Returns

bool

SaveSync()

public void SaveSync()

SortPagesById(IList<string>)

public void SortPagesById(IList<string> pageIds)

Parameters

pageIds IList<string>

ToJson()

public string ToJson()

Returns

string