Delete Embedded Fonts 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#
Copy SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
FontsData response = api . DeleteEmbeddedFont ( "MyPresentation.pptx" , "Calibri Light" );
Console . WriteLine ( "Calibri Light has been removed from the embedded fonts." );
Java
Copy SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
FontsData response = api . deleteEmbeddedFont ( "MyPresentation.pptx" , "Calibri Light" , null , null , null );
System . out . println ( "Calibri Light has been removed from the embedded fonts." );
PHP
Copy 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" , "Calibri Light" );
print ( "Calibri Light has been removed from the embedded fonts." );
Ruby
Copy configuration = AsposeSlidesCloud :: Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
api = AsposeSlidesCloud :: SlidesApi . new ( configuration )
Python
Copy 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" , "Calibri Light" )
print ( "Calibri Light has been removed from the embedded fonts." )
Node.js
Copy const CloudSdk = require ( "asposeslidescloud" );
const api = new CloudSdk . SlidesApi ( "MyClientId" , "MyClientSecret" );
let result = await api . deleteEmbeddedFont ( "MyPresentation.pptx" , "Calibri Light" );
console . log ( "Calibri Light has been removed from the embedded fonts." );
Go
Copy cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
fileName := "MyPresentation.pptx"
fontName := "Calibri Light"
_ , _ , e := api . SlidesApi . DeleteEmbeddedFont ( fileName , fontName , "" , "" , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "Calibri Light has been removed from the embedded fonts." )
C++
Perl
Copy 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 );
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#
Copy SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
Stream file = File . OpenRead ( "MyPresentation.pptx" );
api . DeleteEmbeddedFontOnline ( file , "Calibri Light" );
Console . WriteLine ( "Calibri Light has been removed from the embedded fonts." );
Java
Copy SlidesApi api = new SlidesApi ( "MyClientId" , "MyClientSecret" );
byte [] file = Files . readAllBytes ( Paths . get ( "MyPresentation.pptx" ));
api . deleteEmbeddedFontOnline ( file , "Calibri Light" , null );
System . out . println ( "Calibri Light has been removed from the embedded fonts." );
PHP
Copy 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 , "Calibri Light" );
print ( "Calibri Light has been removed from the embedded fonts." );
Ruby
Copy configuration = AsposeSlidesCloud :: Configuration . new
configuration . app_sid = "MyClientId"
configuration . app_key = "MyClientSecret"
api = AsposeSlidesCloud :: SlidesApi . new ( configuration )
Python
Copy 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 , "Calibri Light" )
print ( "Calibri Light has been removed from the embedded fonts." )
Node.js
Copy 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 , "Calibri Light" );
console . log ( "Calibri Light has been removed from the embedded fonts." );
Go
Copy cfg := asposeslidescloud . NewConfiguration ()
cfg . AppSid = "MyClientId"
cfg . AppKey = "MyClientSecret"
api := asposeslidescloud . NewAPIClient ( cfg )
document , e := ioutil . ReadFile ( "MyPresentation.pptx" )
fontName := "Calibri Light"
_ , _ , e = api . SlidesApi . DeleteEmbeddedFontOnline ( document , fontName , "" )
if e != nil {
fmt . Printf ( "Error: %v." , e )
return
}
fmt . Printf ( "Calibri Light has been removed from the embedded fonts." )
C++
Perl
Copy 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 );
Swift
SDK Source
The Aspose for Cloud SDKs can be downloaded from the following page: Available SDKs