Class: ExternalAnnotationMerger

ExternalAnnotationMerger


new ExternalAnnotationMerger()

The state of externalXFDF in the merger

Methods


appendElementIfAbsent()

Append an element in the parentElement if targetSelector can't be found in it The element's tag name is determined by targetTagName, or targetSelector if targetTagName is undefined

getTransformFunction()

Returns a function that will be called by the docViewer after the internal XFDF of some pages has been extracted and before it is imported. When the returned function is called, it will merge the external XFDF string into the internal XFDF string

merge()

Merge externalXFDF into internalXFDF in a given pageIndex

putElement()

Override the targetSelector element with the externalElement in the parent element if the targetSelector element doesn't exist then just append the externalElement

theOther()

Returns the element that is not equal to the given element in a list of two elements