Deleting Embedded Font
Introduction
Aspose.Slides Cloud API allows deleting an embedded font from the presentation. The feature can be applied to presentations located in the storage or presentations uploaded in the request body.
DeleteEmbeddedFont
API
Type
Description
Resource
/slides/{name}/fonts/embedded/{fontName}
DELETE
Removes specified embedded font and returns presentation fonts info.
DeleteEmbeddedFont
Examples
cURL Example
The code examples below show how to delete an embedded font from a presentation in the storage.
SDK Examples
C#
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
FontsData response = api . DeleteEmbeddedFont ( "MyPresentation.pptx" , "Arial" );
Console . WriteLine ( "Arial has been removed from the embedded fonts." );
Java
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
FontsData response = api . deleteEmbeddedFont ( "MyPresentation.pptx" , "Arial" , null , null , null );
System . out . println ( "Arial has been removed from the embedded fonts." );
PHP
use Aspose\Slides\Cloud\Sdk\Api\Configuration ;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi ;
use Aspose\Slides\Cloud\Sdk\Model\FontsData ;
$config = new Configuration ();
$config -> setAppSid ( "MyClientId" );
$config -> setAppKey ( "MyClientSecret" );
$api = new SlidesApi ( null , $config );
$result = $api -> deleteEmbeddedFont ( "MyPresentation.pptx" , "Arial" );
print ( "Arial has been removed from the embedded fonts." );
Ruby
configuration = AsposeSlidesCloud :: Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
api = AsposeSlidesCloud :: SlidesApi . new ( configuration )
#Code example will be added soon.
Python
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
configuration = Configuration ()
configuration . app_sid = 'MyClientId'
configuration . app_key = 'MyClientSecret'
api = SlidesApi ( configuration )
response = api . delete_embedded_font ( "MyPresentation.pptx" , "Arial" )
print ( "Arial has been removed from the embedded fonts." )
Node.js
const CloudSdk = require ( "asposeslidescloud" );
const api = new CloudSdk . SlidesApi ( "MyClientId" , "MyClientSecret" );
let result = await api . deleteEmbeddedFont ( "MyPresentation.pptx" , "Arial" );
console . log ( "Arial has been removed from the embedded fonts." );
Go
cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
fileName := "MyPresentation.pptx"
fontName := "Arial"
_ , _ , e := api . SlidesApi . DeleteEmbeddedFont ( fileName , fontName , "" , "" , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "Arial has been removed from the embedded fonts." )
C++
Perl
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
use AsposeSlidesCloud::Object::SlideComment ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
#Code example will be added soon.
Swift
DeleteEmbeddedFontOnline
API
Type
Description
Resource
/slides/fonts/embedded/{fontName}/delete
POST
Removes specified embedded font and returns presentation.
DeleteEmbeddedFontOnline
Examples
cURL Example
The code examples below show how to delete an embedded font from a presentation in request body.
SDK Examples
C#
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
Stream file = File . OpenRead ( "MyPresentation.pptx" );
api . DeleteEmbeddedFontOnline ( file , "Arial" );
Console . WriteLine ( "Arial has been removed from the embedded fonts." );
Java
SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
byte [] file = Files . readAllBytes ( Paths . get ( "MyPresentation.pptx" ));
api . deleteEmbeddedFontOnline ( file , "Arial" , null );
System . out . println ( "Arial has been removed from the embedded fonts." );
PHP
use Aspose\Slides\Cloud\Sdk\Api\Configuration ;
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi ;
use Aspose\Slides\Cloud\Sdk\Model\FontsData ;
$config = new Configuration ();
$config -> setAppSid ( "MyClientId" );
$config -> setAppKey ( "MyClientSecret" );
$api = new SlidesApi ( null , $config );
$file = fopen ( "MyPresentation.pptx" , 'r' );
$api -> deleteEmbeddedFontOnline ( $file , "Arial" );
print ( "Arial has been removed from the embedded fonts." );
Ruby
configuration = AsposeSlidesCloud :: Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
api = AsposeSlidesCloud :: SlidesApi . new ( configuration )
#Code example will be added soon.
Python
import asposeslidescloud
from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
configuration = Configuration ()
configuration . app_sid = 'MyClientId'
configuration . app_key = 'MyClientSecret'
api = SlidesApi ( configuration )
with open ( "MyPresentation.pptx" , 'rb' ) as f :
source = f . read ()
api . delete_embedded_font_online ( source , "Arial" )
print ( "Arial has been removed from the embedded fonts." )
Node.js
const CloudSdk = require ( "asposeslidescloud" );
const fs = require ( 'fs' );
const api = new CloudSdk . SlidesApi ( "MyClientId" , "MyClientSecret" );
const stream = fs . createReadStream ( "MyPresentation.pptx" );
let result = await api . deleteEmbeddedFontOnline ( stream , "Arial" );
console . log ( "Arial has been removed from the embedded fonts." );
Go
cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
document , e := ioutil . ReadFile ( "MyPresentation.pptx" )
fontName := "Arial"
_ , _ , e = api . SlidesApi . DeleteEmbeddedFontOnline ( document , fontName , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "Arial has been removed from the embedded fonts." )
C++
Perl
use AsposeSlidesCloud::Configuration ;
use AsposeSlidesCloud::SlidesApi ;
use AsposeSlidesCloud::Object::SlideComment ;
my $config = AsposeSlidesCloud::Configuration -> new ();
$config -> { app_sid } = "MyClientId" ;
$config -> { app_key } = "MyClientSecret" ;
my $api = AsposeSlidesCloud::SlidesApi -> new ( config => $config );
#Code example will be added soon.
Swift
SDK Source
The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs