isSvgSupported Property (original) (raw)

Summary

Gets a value that indicate whether this document supports getting a page as SVG.

Syntax

Object.defineProperty(DocumentImages.prototype, 'isSvgSupported', get: function() )

readonly isSvgSupported: boolean; 

Property Value

true if this document supports getting a page as SVG; otherwise, false.

Remarks

Use IsSvgSupported to determine whether an SVG (Scalable Vector Graphics) representation of a page can be obtained throughGetSvgBackImageUrl, GetSvgBackImageElement, GetSvgUrl, or GetSvgElement. If IsSvgSupported is true, then these methods can return an SVG document (or the URL to it). If IsSvgSupportedis false, then GetSvgBackImageUrl and GetSvgUrlwill return URLs that cannot be loaded, while GetSvgBackImageElement and GetSvgElement will fail.

The GetText method is used to parse the text from a page within the document. If IsSvgSupported is true, the Document Service will parse the text from the SVG document directly, without OCR. If IsSvgSupported is false, the text is parsed using the OCR engine instance set in the service. You can override this behavior using the TextExtractionMode property.

Currently, SVG support is provided for these types of documents:

Note that when the value of IsSvgSupported is false, then the value of IsSvgViewingPreferred will always be false too.