Determines whether specified image, document or vector stream can be loaded as SVG.
public IAsyncOperation<bool> CanLoadSvgAsync(ILeadStream stream)
Public Function CanLoadSvgAsync( _ByVal stream As ILeadStream _) As IAsyncOperation(Of Boolean)
public IAsyncOperation<bool> CanLoadSvgAsync(ILeadStream stream)
- (void)canLoadSvgStreamAsync:(LTLeadStream *)svgStream completion:(void (^)(BOOL canLoadSvg, NSError * nullable error))completion function Leadtools.Codecs.RasterCodecs.CanLoadSvgAsync(stream)
public:IAsyncOperation<bool>^ CanLoadSvgAsync(ILeadStream^ stream)
stream
The input stream.
true if the specified image, document or vector file can be loaded as SVG, otherwise; false.
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:
| Condition | Description |
|---|---|
| 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 GetInformation |
| The file format is vector |
Any of the vector file formats supported by LEADTOOLS such as DXF, DWG, etc. These formats will set the CodecsVectorImageInfo.IsVectorFile property to true when calling GetInformation |
| 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
| Assembly | Description |
|---|---|
| Leadtools.Svg |
SVG support. Always required |
| Leadtools.Vector |
Required if the input document is a vector file |
| Leadtools.Pdf |
Required if the input document is a PDF file |
To load a page as SVG from a file or stream, use LoadSvgAsync(ILeadStream stream, int pageNumber, CodecsLoadSvgOptions options).
For more information, refer to Working With SVG.
|
Products |
Support |
Feedback: CanLoadSvgAsync Method - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.