| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
DynaPDF.GetSVGSymbolCount
Returns the number of symbols or separate SVG files which are included in the file.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| DynaPDF | 16.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetSVGSymbolCount"; PDF ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. |
Result
Returns number or error.
Description
Returns the number of symbols or separate SVG files which are included in the file.The function considers <svg> elements with an id only. <symbol> elements are not considered because such elements are usually private.
The name of the symbols in the list is returned by the function DynaPDF.GetSVGSymbolName.
Please note that SVG files with a symbol count > 0 contain usually no visible element if loaded without a valid symbol name.
If the return value is zero, call InsertSVG() without a symbol name. If the return value is greater zero, get the symbol names with DynaPDF.GetSVGSymbolName and pass the desired name to DynaPDF.InsertSVG.
See also GetSVGSymbolCount function in DynaPDF manual.
Examples
Query symbol count for SVG file:
Let(
[
path = "/Users/cs/Desktop/EUworld.svg" ;
pdf = MBS( "DynaPDF.New" ) ;
r = MBS( "DynaPDF.LoadSVGFile" ; pdf; path ) ;
count = MBS( "DynaPDF.GetSVGSymbolCount" ; PDF ) ;
r = MBS( "DynaPDF.Release" ; pdf )
] ;
count
)
[
path = "/Users/cs/Desktop/EUworld.svg" ;
pdf = MBS( "DynaPDF.New" ) ;
r = MBS( "DynaPDF.LoadSVGFile" ; pdf; path ) ;
count = MBS( "DynaPDF.GetSVGSymbolCount" ; PDF ) ;
r = MBS( "DynaPDF.Release" ; pdf )
] ;
count
)
See also
- DynaPDF.GetPageLabelCount
- DynaPDF.GetSVGSize
- DynaPDF.GetSVGSymbolName
- DynaPDF.GetSVGSymbolNames
- DynaPDF.InsertSVG
- DynaPDF.LoadSVG
- DynaPDF.LoadSVGFile
- DynaPDF.New
- DynaPDF.Release
Release notes
- Version 16.4
- Added DynaPDF.GetSVGSize, DynaPDF.GetSVGSymbolCount and DynaPDF.GetSVGSymbolName functions.
Blog Entries
Created 8th August 2026, last changed 9th August 2026
MarkDown version: DynaPDFGetSVGSymbolCount.md