gfpdf_get_paper_size

Return our paper size.

Description

(array) apply_filters( 'gfpdf_get_paper_size', (unknown) $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended, (string) $letter_esc_html_letter_8_5_x_11in_gravity_forms_pdf_extended, (string) $legal_esc_html_legal_8_5_x_14in_gravity_forms_pdf_extended, (string) $ledger_esc_html_ledger_tabloid_11_x_17in_gravity_forms_pdf_extended, (string) $executive_esc_html_executive_7_x_10in_gravity_forms_pdf_extended, (string) $custom_esc_html_custom_paper_size_gravity_forms_pdf_extended, (unknown) $var, (unknown) $esc_html, (string) $a1_esc_html_a1_594_x_841mm_gravity_forms_pdf_extended, (string) $a2_esc_html_a2_420_x_594mm_gravity_forms_pdf_extended, (string) $a3_esc_html_a3_297_x_420mm_gravity_forms_pdf_extended, (string) $a5_esc_html_a5_210_x_297mm_gravity_forms_pdf_extended, (string) $a6_esc_html_a6_105_x_148mm_gravity_forms_pdf_extended, (string) $a7_esc_html_a7_74_x_105mm_gravity_forms_pdf_extended, (string) $a8_esc_html_a8_52_x_74mm_gravity_forms_pdf_extended, (string) $a9_esc_html_a9_37_x_52mm_gravity_forms_pdf_extended, (string) $a10_esc_html_a10_26_x_37mm_gravity_forms_pdf_extended, (unknown) $var, (unknown) $esc_html, (string) $b1_esc_html_b1_1000_x_707mm_gravity_forms_pdf_extended, (string) $b2_esc_html_b2_707_x_500mm_gravity_forms_pdf_extended, (string) $b3_esc_html_b3_500_x_353mm_gravity_forms_pdf_extended, (string) $b4_esc_html_b4_353_x_250mm_gravity_forms_pdf_extended, (string) $b5_esc_html_b5_250_x_176mm_gravity_forms_pdf_extended, (string) $b6_esc_html_b6_176_x_125mm_gravity_forms_pdf_extended, (string) $b7_esc_html_b7_125_x_88mm_gravity_forms_pdf_extended, (string) $b8_esc_html_b8_88_x_62mm_gravity_forms_pdf_extended, (string) $b9_esc_html_b9_62_x_44mm_gravity_forms_pdf_extended, (string) $b10_esc_html_b10_44_x_31mm_gravity_forms_pdf_extended, (unknown) $var, (unknown) $esc_html, (string) $c1_esc_html_c1_917_x_648mm_gravity_forms_pdf_extended, (string) $c2_esc_html_c2_648_x_458mm_gravity_forms_pdf_extended, (string) $c3_esc_html_c3_458_x_324mm_gravity_forms_pdf_extended, (string) $c4_esc_html_c4_324_x_229mm_gravity_forms_pdf_extended, (string) $c5_esc_html_c5_229_x_162mm_gravity_forms_pdf_extended, (string) $c6_esc_html_c6_162_x_114mm_gravity_forms_pdf_extended, (string) $c7_esc_html_c7_114_x_81mm_gravity_forms_pdf_extended, (string) $c8_esc_html_c8_81_x_57mm_gravity_forms_pdf_extended, (string) $c9_esc_html_c9_57_x_40mm_gravity_forms_pdf_extended, (string) $c10_esc_html_c10_40_x_28mm_gravity_forms_pdf_extended, (unknown) $var, (unknown) $esc_html, (string) $ra1_esc_html_ra1_610_x_860mm_gravity_forms_pdf_extended, (string) $ra2_esc_html_ra2_430_x_610mm_gravity_forms_pdf_extended, (string) $ra3_esc_html_ra3_305_x_430mm_gravity_forms_pdf_extended, (string) $ra4_esc_html_ra4_215_x_305mm_gravity_forms_pdf_extended, (string) $sra0_esc_html_sra0_900_x_1280mm_gravity_forms_pdf_extended, (string) $sra1_esc_html_sra1_640_x_900mm_gravity_forms_pdf_extended, (string) $sra2_esc_html_sra2_450_x_640mm_gravity_forms_pdf_extended, (string) $sra3_esc_html_sra3_320_x_450mm_gravity_forms_pdf_extended, (string) $sra4_esc_html_sra4_225_x_320mm_gravity_forms_pdf_extended, (unknown) $var, (unknown) $var ); 

Returns (array)

The array of paper sizes available

Parameters (54)

0. $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended — Optional. (unknown) => [ esc_html__( 'Common Sizes', 'gravity-forms-pdf-extended' ) => [ 'A4' => esc_html__( 'A4 (210 x 297mm)', 'gravity-forms-pdf-extended' )
The esc html common sizes gravity forms pdf extended a4 esc html a4 210 x 297mm gravity forms pdf extended.
1. $letter_esc_html_letter_8_5_x_11in_gravity_forms_pdf_extended — Optional. (string) => 'LETTER' => esc_html__( 'Letter (8.5 x 11in)', 'gravity-forms-pdf-extended' )
The letter esc html letter 8 5 x 11in gravity forms pdf extended.
2. $legal_esc_html_legal_8_5_x_14in_gravity_forms_pdf_extended — Optional. (string) => 'LEGAL' => esc_html__( 'Legal (8.5 x 14in)', 'gravity-forms-pdf-extended' )
The legal esc html legal 8 5 x 14in gravity forms pdf extended.
3. $ledger_esc_html_ledger_tabloid_11_x_17in_gravity_forms_pdf_extended — Optional. (string) => 'LEDGER' => esc_html__( 'Ledger / Tabloid (11 x 17in)', 'gravity-forms-pdf-extended' )
The ledger esc html ledger tabloid 11 x 17in gravity forms pdf extended.
4. $executive_esc_html_executive_7_x_10in_gravity_forms_pdf_extended — Optional. (string) => 'EXECUTIVE' => esc_html__( 'Executive (7 x 10in)', 'gravity-forms-pdf-extended' )
The executive esc html executive 7 x 10in gravity forms pdf extended.
5. $custom_esc_html_custom_paper_size_gravity_forms_pdf_extended — Optional. (string) => 'CUSTOM' => esc_html__( 'Custom Paper Size', 'gravity-forms-pdf-extended' )
The custom esc html custom paper size gravity forms pdf extended.
6. $var (unknown) => ]
The var.
7. $esc_html — Optional. (unknown) => esc_html__( '"A" Sizes', 'gravity-forms-pdf-extended' ) => [ 'A0' => esc_html__( 'A0 (841 x 1189mm)', 'gravity-forms-pdf-extended' )
The esc html.
8. $a1_esc_html_a1_594_x_841mm_gravity_forms_pdf_extended — Optional. (string) => 'A1' => esc_html__( 'A1 (594 x 841mm)', 'gravity-forms-pdf-extended' )
The a1 esc html a1 594 x 841mm gravity forms pdf extended.
9. $a2_esc_html_a2_420_x_594mm_gravity_forms_pdf_extended — Optional. (string) => 'A2' => esc_html__( 'A2 (420 x 594mm)', 'gravity-forms-pdf-extended' )
The a2 esc html a2 420 x 594mm gravity forms pdf extended.
10. $a3_esc_html_a3_297_x_420mm_gravity_forms_pdf_extended — Optional. (string) => 'A3' => esc_html__( 'A3 (297 x 420mm)', 'gravity-forms-pdf-extended' )
The a3 esc html a3 297 x 420mm gravity forms pdf extended.
11. $a5_esc_html_a5_210_x_297mm_gravity_forms_pdf_extended — Optional. (string) => 'A5' => esc_html__( 'A5 (210 x 297mm)', 'gravity-forms-pdf-extended' )
The a5 esc html a5 210 x 297mm gravity forms pdf extended.
12. $a6_esc_html_a6_105_x_148mm_gravity_forms_pdf_extended — Optional. (string) => 'A6' => esc_html__( 'A6 (105 x 148mm)', 'gravity-forms-pdf-extended' )
The a6 esc html a6 105 x 148mm gravity forms pdf extended.
13. $a7_esc_html_a7_74_x_105mm_gravity_forms_pdf_extended — Optional. (string) => 'A7' => esc_html__( 'A7 (74 x 105mm)', 'gravity-forms-pdf-extended' )
The a7 esc html a7 74 x 105mm gravity forms pdf extended.
14. $a8_esc_html_a8_52_x_74mm_gravity_forms_pdf_extended — Optional. (string) => 'A8' => esc_html__( 'A8 (52 x 74mm)', 'gravity-forms-pdf-extended' )
The a8 esc html a8 52 x 74mm gravity forms pdf extended.
15. $a9_esc_html_a9_37_x_52mm_gravity_forms_pdf_extended — Optional. (string) => 'A9' => esc_html__( 'A9 (37 x 52mm)', 'gravity-forms-pdf-extended' )
The a9 esc html a9 37 x 52mm gravity forms pdf extended.
16. $a10_esc_html_a10_26_x_37mm_gravity_forms_pdf_extended — Optional. (string) => 'A10' => esc_html__( 'A10 (26 x 37mm)', 'gravity-forms-pdf-extended' )
The a10 esc html a10 26 x 37mm gravity forms pdf extended.
17. $var (unknown) => ]
The var.
18. $esc_html — Optional. (unknown) => esc_html__( '"B" Sizes', 'gravity-forms-pdf-extended' ) => [ 'B0' => esc_html__( 'B0 (1414 x 1000mm)', 'gravity-forms-pdf-extended' )
The esc html.
19. $b1_esc_html_b1_1000_x_707mm_gravity_forms_pdf_extended — Optional. (string) => 'B1' => esc_html__( 'B1 (1000 x 707mm)', 'gravity-forms-pdf-extended' )
The b1 esc html b1 1000 x 707mm gravity forms pdf extended.
20. $b2_esc_html_b2_707_x_500mm_gravity_forms_pdf_extended — Optional. (string) => 'B2' => esc_html__( 'B2 (707 x 500mm)', 'gravity-forms-pdf-extended' )
The b2 esc html b2 707 x 500mm gravity forms pdf extended.
21. $b3_esc_html_b3_500_x_353mm_gravity_forms_pdf_extended — Optional. (string) => 'B3' => esc_html__( 'B3 (500 x 353mm)', 'gravity-forms-pdf-extended' )
The b3 esc html b3 500 x 353mm gravity forms pdf extended.
22. $b4_esc_html_b4_353_x_250mm_gravity_forms_pdf_extended — Optional. (string) => 'B4' => esc_html__( 'B4 (353 x 250mm)', 'gravity-forms-pdf-extended' )
The b4 esc html b4 353 x 250mm gravity forms pdf extended.
23. $b5_esc_html_b5_250_x_176mm_gravity_forms_pdf_extended — Optional. (string) => 'B5' => esc_html__( 'B5 (250 x 176mm)', 'gravity-forms-pdf-extended' )
The b5 esc html b5 250 x 176mm gravity forms pdf extended.
24. $b6_esc_html_b6_176_x_125mm_gravity_forms_pdf_extended — Optional. (string) => 'B6' => esc_html__( 'B6 (176 x 125mm)', 'gravity-forms-pdf-extended' )
The b6 esc html b6 176 x 125mm gravity forms pdf extended.
25. $b7_esc_html_b7_125_x_88mm_gravity_forms_pdf_extended — Optional. (string) => 'B7' => esc_html__( 'B7 (125 x 88mm)', 'gravity-forms-pdf-extended' )
The b7 esc html b7 125 x 88mm gravity forms pdf extended.
26. $b8_esc_html_b8_88_x_62mm_gravity_forms_pdf_extended — Optional. (string) => 'B8' => esc_html__( 'B8 (88 x 62mm)', 'gravity-forms-pdf-extended' )
The b8 esc html b8 88 x 62mm gravity forms pdf extended.
27. $b9_esc_html_b9_62_x_44mm_gravity_forms_pdf_extended — Optional. (string) => 'B9' => esc_html__( 'B9 (62 x 44mm)', 'gravity-forms-pdf-extended' )
The b9 esc html b9 62 x 44mm gravity forms pdf extended.
28. $b10_esc_html_b10_44_x_31mm_gravity_forms_pdf_extended — Optional. (string) => 'B10' => esc_html__( 'B10 (44 x 31mm)', 'gravity-forms-pdf-extended' )
The b10 esc html b10 44 x 31mm gravity forms pdf extended.
29. $var (unknown) => ]
The var.
30. $esc_html — Optional. (unknown) => esc_html__( '"C" Sizes', 'gravity-forms-pdf-extended' ) => [ 'C0' => esc_html__( 'C0 (1297 x 917mm)', 'gravity-forms-pdf-extended' )
The esc html.
31. $c1_esc_html_c1_917_x_648mm_gravity_forms_pdf_extended — Optional. (string) => 'C1' => esc_html__( 'C1 (917 x 648mm)', 'gravity-forms-pdf-extended' )
The c1 esc html c1 917 x 648mm gravity forms pdf extended.
32. $c2_esc_html_c2_648_x_458mm_gravity_forms_pdf_extended — Optional. (string) => 'C2' => esc_html__( 'C2 (648 x 458mm)', 'gravity-forms-pdf-extended' )
The c2 esc html c2 648 x 458mm gravity forms pdf extended.
33. $c3_esc_html_c3_458_x_324mm_gravity_forms_pdf_extended — Optional. (string) => 'C3' => esc_html__( 'C3 (458 x 324mm)', 'gravity-forms-pdf-extended' )
The c3 esc html c3 458 x 324mm gravity forms pdf extended.
34. $c4_esc_html_c4_324_x_229mm_gravity_forms_pdf_extended — Optional. (string) => 'C4' => esc_html__( 'C4 (324 x 229mm)', 'gravity-forms-pdf-extended' )
The c4 esc html c4 324 x 229mm gravity forms pdf extended.
35. $c5_esc_html_c5_229_x_162mm_gravity_forms_pdf_extended — Optional. (string) => 'C5' => esc_html__( 'C5 (229 x 162mm)', 'gravity-forms-pdf-extended' )
The c5 esc html c5 229 x 162mm gravity forms pdf extended.
36. $c6_esc_html_c6_162_x_114mm_gravity_forms_pdf_extended — Optional. (string) => 'C6' => esc_html__( 'C6 (162 x 114mm)', 'gravity-forms-pdf-extended' )
The c6 esc html c6 162 x 114mm gravity forms pdf extended.
37. $c7_esc_html_c7_114_x_81mm_gravity_forms_pdf_extended — Optional. (string) => 'C7' => esc_html__( 'C7 (114 x 81mm)', 'gravity-forms-pdf-extended' )
The c7 esc html c7 114 x 81mm gravity forms pdf extended.
38. $c8_esc_html_c8_81_x_57mm_gravity_forms_pdf_extended — Optional. (string) => 'C8' => esc_html__( 'C8 (81 x 57mm)', 'gravity-forms-pdf-extended' )
The c8 esc html c8 81 x 57mm gravity forms pdf extended.
39. $c9_esc_html_c9_57_x_40mm_gravity_forms_pdf_extended — Optional. (string) => 'C9' => esc_html__( 'C9 (57 x 40mm)', 'gravity-forms-pdf-extended' )
The c9 esc html c9 57 x 40mm gravity forms pdf extended.
40. $c10_esc_html_c10_40_x_28mm_gravity_forms_pdf_extended — Optional. (string) => 'C10' => esc_html__( 'C10 (40 x 28mm)', 'gravity-forms-pdf-extended' )
The c10 esc html c10 40 x 28mm gravity forms pdf extended.
41. $var (unknown) => ]
The var.
42. $esc_html — Optional. (unknown) => esc_html__( '"RA" and "SRA" Sizes', 'gravity-forms-pdf-extended' ) => [ 'RA0' => esc_html__( 'RA0 (860 x 1220mm)', 'gravity-forms-pdf-extended' )
The esc html.
43. $ra1_esc_html_ra1_610_x_860mm_gravity_forms_pdf_extended — Optional. (string) => 'RA1' => esc_html__( 'RA1 (610 x 860mm)', 'gravity-forms-pdf-extended' )
The ra1 esc html ra1 610 x 860mm gravity forms pdf extended.
44. $ra2_esc_html_ra2_430_x_610mm_gravity_forms_pdf_extended — Optional. (string) => 'RA2' => esc_html__( 'RA2 (430 x 610mm)', 'gravity-forms-pdf-extended' )
The ra2 esc html ra2 430 x 610mm gravity forms pdf extended.
45. $ra3_esc_html_ra3_305_x_430mm_gravity_forms_pdf_extended — Optional. (string) => 'RA3' => esc_html__( 'RA3 (305 x 430mm)', 'gravity-forms-pdf-extended' )
The ra3 esc html ra3 305 x 430mm gravity forms pdf extended.
46. $ra4_esc_html_ra4_215_x_305mm_gravity_forms_pdf_extended — Optional. (string) => 'RA4' => esc_html__( 'RA4 (215 x 305mm)', 'gravity-forms-pdf-extended' )
The ra4 esc html ra4 215 x 305mm gravity forms pdf extended.
47. $sra0_esc_html_sra0_900_x_1280mm_gravity_forms_pdf_extended — Optional. (string) => 'SRA0' => esc_html__( 'SRA0 (900 x 1280mm)', 'gravity-forms-pdf-extended' )
The sra0 esc html sra0 900 x 1280mm gravity forms pdf extended.
48. $sra1_esc_html_sra1_640_x_900mm_gravity_forms_pdf_extended — Optional. (string) => 'SRA1' => esc_html__( 'SRA1 (640 x 900mm)', 'gravity-forms-pdf-extended' )
The sra1 esc html sra1 640 x 900mm gravity forms pdf extended.
49. $sra2_esc_html_sra2_450_x_640mm_gravity_forms_pdf_extended — Optional. (string) => 'SRA2' => esc_html__( 'SRA2 (450 x 640mm)', 'gravity-forms-pdf-extended' )
The sra2 esc html sra2 450 x 640mm gravity forms pdf extended.
50. $sra3_esc_html_sra3_320_x_450mm_gravity_forms_pdf_extended — Optional. (string) => 'SRA3' => esc_html__( 'SRA3 (320 x 450mm)', 'gravity-forms-pdf-extended' )
The sra3 esc html sra3 320 x 450mm gravity forms pdf extended.
51. $sra4_esc_html_sra4_225_x_320mm_gravity_forms_pdf_extended — Optional. (string) => 'SRA4' => esc_html__( 'SRA4 (225 x 320mm)', 'gravity-forms-pdf-extended' )
The sra4 esc html sra4 225 x 320mm gravity forms pdf extended.
52. $var (unknown) => ]
The var.
53. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended = apply_filters( 'gfpdf_get_paper_size', $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended, $letter_esc_html_letter_8_5_x_11in_gravity_forms_pdf_extended, $legal_esc_html_legal_8_5_x_14in_gravity_forms_pdf_extended, $ledger_esc_html_ledger_tabloid_11_x_17in_gravity_forms_pdf_extended, $executive_esc_html_executive_7_x_10in_gravity_forms_pdf_extended, $custom_esc_html_custom_paper_size_gravity_forms_pdf_extended, $var, $esc_html, $a1_esc_html_a1_594_x_841mm_gravity_forms_pdf_extended, $a2_esc_html_a2_420_x_594mm_gravity_forms_pdf_extended, $a3_esc_html_a3_297_x_420mm_gravity_forms_pdf_extended, $a5_esc_html_a5_210_x_297mm_gravity_forms_pdf_extended, $a6_esc_html_a6_105_x_148mm_gravity_forms_pdf_extended, $a7_esc_html_a7_74_x_105mm_gravity_forms_pdf_extended, $a8_esc_html_a8_52_x_74mm_gravity_forms_pdf_extended, $a9_esc_html_a9_37_x_52mm_gravity_forms_pdf_extended, $a10_esc_html_a10_26_x_37mm_gravity_forms_pdf_extended, $var, $esc_html, $b1_esc_html_b1_1000_x_707mm_gravity_forms_pdf_extended, $b2_esc_html_b2_707_x_500mm_gravity_forms_pdf_extended, $b3_esc_html_b3_500_x_353mm_gravity_forms_pdf_extended, $b4_esc_html_b4_353_x_250mm_gravity_forms_pdf_extended, $b5_esc_html_b5_250_x_176mm_gravity_forms_pdf_extended, $b6_esc_html_b6_176_x_125mm_gravity_forms_pdf_extended, $b7_esc_html_b7_125_x_88mm_gravity_forms_pdf_extended, $b8_esc_html_b8_88_x_62mm_gravity_forms_pdf_extended, $b9_esc_html_b9_62_x_44mm_gravity_forms_pdf_extended, $b10_esc_html_b10_44_x_31mm_gravity_forms_pdf_extended, $var, $esc_html, $c1_esc_html_c1_917_x_648mm_gravity_forms_pdf_extended, $c2_esc_html_c2_648_x_458mm_gravity_forms_pdf_extended, $c3_esc_html_c3_458_x_324mm_gravity_forms_pdf_extended, $c4_esc_html_c4_324_x_229mm_gravity_forms_pdf_extended, $c5_esc_html_c5_229_x_162mm_gravity_forms_pdf_extended, $c6_esc_html_c6_162_x_114mm_gravity_forms_pdf_extended, $c7_esc_html_c7_114_x_81mm_gravity_forms_pdf_extended, $c8_esc_html_c8_81_x_57mm_gravity_forms_pdf_extended, $c9_esc_html_c9_57_x_40mm_gravity_forms_pdf_extended, $c10_esc_html_c10_40_x_28mm_gravity_forms_pdf_extended, $var, $esc_html, $ra1_esc_html_ra1_610_x_860mm_gravity_forms_pdf_extended, $ra2_esc_html_ra2_430_x_610mm_gravity_forms_pdf_extended, $ra3_esc_html_ra3_305_x_430mm_gravity_forms_pdf_extended, $ra4_esc_html_ra4_215_x_305mm_gravity_forms_pdf_extended, $sra0_esc_html_sra0_900_x_1280mm_gravity_forms_pdf_extended, $sra1_esc_html_sra1_640_x_900mm_gravity_forms_pdf_extended, $sra2_esc_html_sra2_450_x_640mm_gravity_forms_pdf_extended, $sra3_esc_html_sra3_320_x_450mm_gravity_forms_pdf_extended, $sra4_esc_html_sra4_225_x_320mm_gravity_forms_pdf_extended, $var, $var ); 
  2.  
  3. if ( !empty( $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_get_paper_size callback 
  2. function filter_gfpdf_get_paper_size( $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended, $letter_esc_html_letter_8_5_x_11in_gravity_forms_pdf_extended, $legal_esc_html_legal_8_5_x_14in_gravity_forms_pdf_extended, $ledger_esc_html_ledger_tabloid_11_x_17in_gravity_forms_pdf_extended, $executive_esc_html_executive_7_x_10in_gravity_forms_pdf_extended, $custom_esc_html_custom_paper_size_gravity_forms_pdf_extended, $var, $esc_html, $a1_esc_html_a1_594_x_841mm_gravity_forms_pdf_extended, $a2_esc_html_a2_420_x_594mm_gravity_forms_pdf_extended, $a3_esc_html_a3_297_x_420mm_gravity_forms_pdf_extended, $a5_esc_html_a5_210_x_297mm_gravity_forms_pdf_extended, $a6_esc_html_a6_105_x_148mm_gravity_forms_pdf_extended, $a7_esc_html_a7_74_x_105mm_gravity_forms_pdf_extended, $a8_esc_html_a8_52_x_74mm_gravity_forms_pdf_extended, $a9_esc_html_a9_37_x_52mm_gravity_forms_pdf_extended, $a10_esc_html_a10_26_x_37mm_gravity_forms_pdf_extended, $var, $esc_html, $b1_esc_html_b1_1000_x_707mm_gravity_forms_pdf_extended, $b2_esc_html_b2_707_x_500mm_gravity_forms_pdf_extended, $b3_esc_html_b3_500_x_353mm_gravity_forms_pdf_extended, $b4_esc_html_b4_353_x_250mm_gravity_forms_pdf_extended, $b5_esc_html_b5_250_x_176mm_gravity_forms_pdf_extended, $b6_esc_html_b6_176_x_125mm_gravity_forms_pdf_extended, $b7_esc_html_b7_125_x_88mm_gravity_forms_pdf_extended, $b8_esc_html_b8_88_x_62mm_gravity_forms_pdf_extended, $b9_esc_html_b9_62_x_44mm_gravity_forms_pdf_extended, $b10_esc_html_b10_44_x_31mm_gravity_forms_pdf_extended, $var, $esc_html, $c1_esc_html_c1_917_x_648mm_gravity_forms_pdf_extended, $c2_esc_html_c2_648_x_458mm_gravity_forms_pdf_extended, $c3_esc_html_c3_458_x_324mm_gravity_forms_pdf_extended, $c4_esc_html_c4_324_x_229mm_gravity_forms_pdf_extended, $c5_esc_html_c5_229_x_162mm_gravity_forms_pdf_extended, $c6_esc_html_c6_162_x_114mm_gravity_forms_pdf_extended, $c7_esc_html_c7_114_x_81mm_gravity_forms_pdf_extended, $c8_esc_html_c8_81_x_57mm_gravity_forms_pdf_extended, $c9_esc_html_c9_57_x_40mm_gravity_forms_pdf_extended, $c10_esc_html_c10_40_x_28mm_gravity_forms_pdf_extended, $var, $esc_html, $ra1_esc_html_ra1_610_x_860mm_gravity_forms_pdf_extended, $ra2_esc_html_ra2_430_x_610mm_gravity_forms_pdf_extended, $ra3_esc_html_ra3_305_x_430mm_gravity_forms_pdf_extended, $ra4_esc_html_ra4_215_x_305mm_gravity_forms_pdf_extended, $sra0_esc_html_sra0_900_x_1280mm_gravity_forms_pdf_extended, $sra1_esc_html_sra1_640_x_900mm_gravity_forms_pdf_extended, $sra2_esc_html_sra2_450_x_640mm_gravity_forms_pdf_extended, $sra3_esc_html_sra3_320_x_450mm_gravity_forms_pdf_extended, $sra4_esc_html_sra4_225_x_320mm_gravity_forms_pdf_extended, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $esc_html_common_sizes_gravity_forms_pdf_extended_a4_esc_html_a4_210_x_297mm_gravity_forms_pdf_extended
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_get_paper_size', 'filter_gfpdf_get_paper_size', 10, 54 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_get_paper_size', 'filter_gfpdf_get_paper_size', 10, 54 ); 

Defined (1)

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

/src/helper/abstract/Helper_Abstract_Options.php  
  1. return apply_filters( 'gfpdf_get_paper_size', [