Save up to 50% off during Black Friday!

fg_fillablepdfs_pdf_args

Description

This filter allows you to modify the details of the PDF before it is sent to ForGravity to be generated.

Usage

PHP
add_filter( 'fg_fillablepdfs_pdf_args', 'your_function_name', 10, 4 );

Parameters

$pdf_meta array
An array containing all the PDF meta data. Example:

PHP
array(
	'template_id'   => '996e96e0-6763-4bf1-bdc7-c5cc6d4e40db',
	'file_name'     => 'My Generated PDF.pdf',
	'field_values'  => array(
		'First Name' => 'John',
		'Last Name'  => 'Doe',
	),
	'password'      => null,
	'user_password' => 'Open Sesame',
	'permissions'   => array( 'Printing', 'DegradedPrinting', 'ModifyContents', 'Assembly', 'CopyContents', 'ScreenReaders', 'ModifyAnnotations', 'FillIn' ),
	'flatten'       => false,
);

$feed array
The current Feed object.

$entry array
The current Entry object.

$form array
The current Form object.

Examples

Populating Data From List Field

This example uses the contents of a multiple column List field to populate PDF fields matching the days of the week.