Version: 4
🔥 Gravity PDF v4 end of life was 2019-10-04 and this version is no longer supported. This legacy documentation is kept for reference only.
Gravity PDF API – delete_pdf_font()
Jump To Section
Description
This function allows you to delete any installed custom PDF fonts using code. It accepts a single argument: the font name.
Version
This method was introduced in Gravity PDF 4.1.
Parameters
font_name | string | required : The name of the custom PDF font to delete
Return
boolean | WP_Error
: Returns true
if the font is installed correctly, or WP_Error
on failure
Usage
/* This should be used in a one-time filter or action */
$results = GPDFAPI::delete_pdf_font( 'Brandon Grotesque' );
if ( ! is_wp_error( $results ) ) {
/* Successfully deleted */
}
Source Code
This method is located in api.php
.