Error processing SSI file
LEADTOOLS Image File Support (Leadtools.Codecs assembly)

Show in webframe

CanLoadSvg(String) Method








The input file name.
Determines whether specified image, document or vector file can be loaded as SVG.
Syntax
public bool CanLoadSvg( 
   string fileName
)
'Declaration
 
Public Overloads Function CanLoadSvg( _
   ByVal fileName As String _
) As Boolean
'Usage
 
Dim instance As RasterCodecs
Dim fileName As String
Dim value As Boolean
 
value = instance.CanLoadSvg(fileName)
public bool CanLoadSvg( 
   string fileName
)
- (BOOL)canLoadSvgFile:(NSString *)svgFile error:(NSError **)error
 function Leadtools.Codecs.RasterCodecs.CanLoadSvg(String)( 
   fileName 
)
public:
bool CanLoadSvg( 
   String^ fileName
) 

Parameters

fileName
The input file name.

Return Value

true if the specified image, document or vector file can be loaded as SVG, otherwise; false.
Remarks

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 determine whether a stream can be loaded as SVG, use CanLoadSvg(Stream stream).

To load a page as SVG from a file or stream, use LoadSvg(string fileName, int pageNumber, CodecsLoadSvgOptions options) or LoadSvg(Stream stream, int pageNumber, CodecsLoadSvgOptions options).

To load as SVG asynchronously, use LoadSvgAsync.

For more information, refer to Working With SVG.

Example

For an example, refer to LoadSvg(string fileName, int pageNumber, CodecsLoadSvgOptions options).

Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List
Leadtools.ISvgDocument
Working With SVG
SVG Size, Bounds and Flat
SVG Rendering

Error processing SSI file