Asynchronously determines whether a specified image, document or vector stream can be loaded as SVG.
RasterCodecs object to perform the operation.
The stream containing the image data to load.
Task that represents the asynchronous operation.
TResult: true if the specified image, document or vector file can be loaded as SVG, otherwise; false.
This topic is part of
RasterCodecs support for .NET
async/await support. Refer to RasterCodecs Async Operations for more information.
Use this method to determine if the specified image, document or vector file supports loading as SVG (Scalable Vector Graphics). The following conditions must be met to load a page from a file as SVG:
|The file format is SVG||
SVG can be loaded as SVG
|The file format is document||
Any of the document file formats supported by LEADTOOLS such DOCX/DOC, PPTX/PPT, XLSX/XLS, RTF, TXT, AFP, ICA, etc. These formats will set the CodecsDocumentImageInfo.IsDocumentFile property to true when calling GetInformationAsync
|The file format is vector|
|The file format is PDF||
And the PDF file contains more than pure raster data (for example, not scanned PDF file).
In addition to the usual format filter assembly (Leadtools.Codecs.*), The following additional assemblies may be required to support loading as SVG
SVG support. Always required
Required if the input document is a vector file
Required if the input document is a PDF file
To load a page as SVG from a file or stream, use LoadSvgAsync.
For more information, refer to Working With SVG.
For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.
For .NET Standard: This functionality is included in the Leadtools.Codecs.dll assembly.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries