Table of Contents

Class Document

Namespace
IO.Scanbot.Sdk.Docprocessing
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/docprocessing/Document", DoNotGenerateAcw = true)]
public sealed class Document : Object, IJavaObject, IJavaPeerable, IDisposable
Inheritance
Document
Implements
Inherited Members

Constructors

Document(IDocumentStorage, PageFileStorage, IFileIOProcessor, DocumentRepository)

[Register(".ctor", "(Lio/scanbot/sdk/persistence/document/DocumentStorage;Lio/scanbot/sdk/persistence/page/PageFileStorage;Lio/scanbot/sdk/persistence/fileio/FileIOProcessor;Lio/scanbot/sdk/docprocessing/DocumentRepository;)V", "")]
public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, DocumentRepository documentRepository)

Parameters

documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor
documentRepository DocumentRepository

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

[Register(".ctor", "(Lio/scanbot/sdk/persistence/document/DocumentStorage;Lio/scanbot/sdk/persistence/page/PageFileStorage;Lio/scanbot/sdk/persistence/fileio/FileIOProcessor;Lio/scanbot/sdk/docprocessing/DocumentRepository;Ljava/lang/String;ZI)V", "")]
public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, DocumentRepository documentRepository, string documentId, bool createIfNotExist, int documentImageSizeLimit)

Parameters

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

Document(IDocumentStorage, PageFileStorage, IFileIOProcessor, int, DocumentRepository)

[Register(".ctor", "(Lio/scanbot/sdk/persistence/document/DocumentStorage;Lio/scanbot/sdk/persistence/page/PageFileStorage;Lio/scanbot/sdk/persistence/fileio/FileIOProcessor;ILio/scanbot/sdk/docprocessing/DocumentRepository;)V", "")]
public Document(IDocumentStorage documentStorage, PageFileStorage pageFileStorage, IFileIOProcessor fileIOProcessor, int documentImageSizeLimit, DocumentRepository documentRepository)

Parameters

documentStorage IDocumentStorage
pageFileStorage PageFileStorage
fileIOProcessor IFileIOProcessor
documentImageSizeLimit int
documentRepository DocumentRepository

Properties

CreationTimeStamp

public long CreationTimeStamp { get; set; }

Property Value

long

DocumentImageSizeLimit

public int DocumentImageSizeLimit { get; set; }

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)

[Register("addPage", "(Landroid/graphics/Bitmap;)Lio/scanbot/common/Result;", "")]
public IResult AddPage(Bitmap image)

Parameters

image Bitmap

Returns

IResult

AddPage(Uri)

[Register("addPage", "(Landroid/net/Uri;)Lio/scanbot/common/Result;", "")]
public IResult AddPage(Uri imageUri)

Parameters

imageUri Uri

Returns

IResult

AddPage(ImageRef)

[Register("addPage", "(Lio/scanbot/sdk/image/ImageRef;)Lio/scanbot/common/Result;", "")]
public IResult AddPage(ImageRef image)

Parameters

image ImageRef

Returns

IResult

AddPage(byte[])

[Register("addPage", "([B)Lio/scanbot/common/Result;", "")]
public IResult AddPage(byte[] image)

Parameters

image byte[]

Returns

IResult

Delete()

[Register("delete", "()Lio/scanbot/common/Result;", "")]
public IResult Delete()

Returns

IResult

Duplicate(string, bool)

[Register("duplicate", "(Ljava/lang/String;Z)Lio/scanbot/common/Result;", "")]
public IResult Duplicate(string newUuid, bool overwrite)

Parameters

newUuid string
overwrite bool

Returns

IResult

InsertPage(Bitmap, int)

[Register("insertPage", "(Landroid/graphics/Bitmap;I)Lio/scanbot/common/Result;", "")]
public IResult InsertPage(Bitmap image, int index)

Parameters

image Bitmap
index int

Returns

IResult

InsertPage(ImageRef, int)

[Register("insertPage", "(Lio/scanbot/sdk/image/ImageRef;I)Lio/scanbot/common/Result;", "")]
public IResult InsertPage(ImageRef image, int index)

Parameters

image ImageRef
index int

Returns

IResult

InsertPage(byte[], int)

[Register("insertPage", "([BI)Lio/scanbot/common/Result;", "")]
public IResult InsertPage(byte[] image, int index)

Parameters

image byte[]
index int

Returns

IResult

LoadSync(bool)

[Register("loadSync", "(Z)Lio/scanbot/common/Result;", "")]
public IResult LoadSync(bool createIfNotExist)

Parameters

createIfNotExist bool

Returns

IResult

MovePage(int, int)

[Register("movePage", "(II)Z", "")]
public bool MovePage(int sourceIndex, int destinationIndex)

Parameters

sourceIndex int
destinationIndex int

Returns

bool

PageAtIndex(int)

[Register("pageAtIndex", "(I)Lio/scanbot/sdk/docprocessing/Page;", "")]
public Page PageAtIndex(int index)

Parameters

index int

Returns

Page

PageIds()

[Register("pageIds", "()Ljava/util/List;", "")]
public IList<string> PageIds()

Returns

IList<string>

PageWithId(string)

[Register("pageWithId", "(Ljava/lang/String;)Lio/scanbot/sdk/docprocessing/Page;", "")]
public Page PageWithId(string uuid)

Parameters

uuid string

Returns

Page

RemoveAllPages()

[Register("removeAllPages", "()Lio/scanbot/common/Result;", "")]
public IResult RemoveAllPages()

Returns

IResult

RemovePage(Page)

[Register("removePage", "(Lio/scanbot/sdk/docprocessing/Page;)Lio/scanbot/common/Result;", "")]
public IResult RemovePage(Page page)

Parameters

page Page

Returns

IResult

RemovePage(int)

[Register("removePage", "(I)Lio/scanbot/common/Result;", "")]
public IResult RemovePage(int atIndex)

Parameters

atIndex int

Returns

IResult

RemovePage(string)

[Register("removePage", "(Ljava/lang/String;)Lio/scanbot/common/Result;", "")]
public IResult RemovePage(string pageUuid)

Parameters

pageUuid string

Returns

IResult

SaveSync()

[Register("saveSync", "()Lio/scanbot/common/Result;", "")]
public IResult SaveSync()

Returns

IResult

SortPagesById(IList<string>)

[Register("sortPagesById", "(Ljava/util/List;)V", "")]
public void SortPagesById(IList<string> pageIds)

Parameters

pageIds IList<string>

ToJson()

[Register("toJson", "()Lorg/json/JSONObject;", "")]
public JSONObject ToJson()

Returns

JSONObject