LoadAsync Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
Initilizes a Document so that it can be used to load page canvases.

Namespace: PDFTron.SilverDox.Documents
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void LoadAsync(
	IPartRetriever partRetriever,
	Action<Exception> callback
)
Visual Basic
Public Sub LoadAsync ( _
	partRetriever As IPartRetriever, _
	callback As Action(Of Exception) _
)
Visual C++
public:
void LoadAsync(
	IPartRetriever^ partRetriever, 
	Action<Exception^>^ callback
)

Parameters

partRetriever
Type: PDFTron.SilverDox.IO..::..IPartRetriever
A concrete instance of a IPartRetriever. There are two built-in concrete implementations of IPartRetriever: LocalPartRetriever, which is used to access files on the local file system, and HttpPartRetriever, which is used to access files on a web server.
callback
Type: System..::..Action<(Of <(<'Exception>)>)>
A callback function that is called when the Document has been intilized.

Remarks

This method must be the first method called on a new instance of a Document

See Also