Version: 5
CAUTION
️Version 5 of Gravity PDF does not have full support for Gravity Forms 2.5 and you should consider upgrading to version 6. If you cannot, version 5 will still function but have a degraded admin experience. Support and bug/security fixes will be provided until 27 April 2023.gfpdf_signature_width
Description
To get an optimal display for the signature in our PDFs we decrease the size of the image by about 66%. This creates a signature at a good size and resolution in your PDF. However, you can use this filter to make a signature smaller or larger.
Parameters
$optimised_width | mixed
- The optimal width of the signature for quality. Reduced by 66% of the original size.
$original_width | string
- The original width of the signature in pixels.
Usage
This snippet shows you how you increase the signature size and instead only reduce the width by 50%:
add_action( 'gfpdf_signature_width', function( $optimised_width, $original_width ) {
return $original_width / 2;
}, 10, 2 );
Source Code
This filter is located in the Field_Signature::value()
method of /src/helper/fields/Field_Signature.php
.