LoadAnnotations Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
Creates annotations that were previously serialized using SaveAnnotations()()()().

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

Syntax

C#
public IEnumerable<Annotation> LoadAnnotations(
	Stream xmlAnnotations,
	Predicate<Annotation> filter
)
Visual Basic
Public Function LoadAnnotations ( _
	xmlAnnotations As Stream, _
	filter As Predicate(Of Annotation) _
) As IEnumerable(Of Annotation)
Visual C++
public:
IEnumerable<Annotation^>^ LoadAnnotations(
	Stream^ xmlAnnotations, 
	Predicate<Annotation^>^ filter
)

Parameters

xmlAnnotations
Type: System.IO..::..Stream
The XML data produced by SaveAnnotations()()()().
filter
Type: System..::..Predicate<(Of <(<'Annotation>)>)>
A predicate specifying the conditions that need to be satisfied before a new deserialized annotation is added to the document. A return value of true means the annotation is added to the document. Null by default.

Return Value

A list of annotations that were deserialized and then added to the document

Remarks

Note that if any of the annotations are not native to SilverDox, they must be registered with AnnotationManager using AddCustomAnnotationTypes(array<Type>[]()[][]) before this method is used.

See Also