gfpdfe_signature_width

For optimal image resolution at 96dpi we'll divide the original width by 3.

Description

apply_filters( 'gfpdfe_signature_width', (integer) $signature_details_0_3, (integer) $signature_details_0 ); 

Add filters to allow the user to change the signature image width in the PDF.

Parameters (2)

0. $signature_details_0_3 (integer)
The original image width divided by 3
1. $signature_details_0 (integer)
The signature details 0.

Usage

To run the hook, copy the example below.
  1. $signature_details_0_3 = apply_filters( 'gfpdfe_signature_width', $signature_details_0_3, $signature_details_0 ); 
  2.  
  3. if ( !empty( $signature_details_0_3 ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdfe_signature_width callback 
  2. function filter_gfpdfe_signature_width( $signature_details_0_3, $signature_details_0 ) { 
  3. // make filter magic happen here... 
  4. return $signature_details_0_3
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdfe_signature_width', 'filter_gfpdfe_signature_width', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdfe_signature_width', 'filter_gfpdfe_signature_width', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/src/helper/fields/Field_Signature.php  
  1. $optimised_width = apply_filters( 'gfpdfe_signature_width', $signature_details[0] / 3, $signature_details[0] ); /** backwards compat */