Gravity PDF - Version 3.7.4

Version Description

  • Housekpeeing - Revert patch made in last update as Gravity Forms 1.9.9 fixes the issue internally.
Download this release

Release Info

Developer Blue Liquid Designs
Plugin Icon 128x128 Gravity PDF
Version 3.7.4
Comparing to
See all releases

Code changes from version 3.7.3 to 3.7.4

README.md DELETED
@@ -1,29 +0,0 @@
1
- Gravity PDF
2
- ==========================
3
-
4
- Gravity PDF is a Wordpress plugin that allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission.
5
-
6
- Find out more at [https://gravitypdf.com](http://gravitypdf.com/).
7
-
8
-
9
- # Documentation
10
-
11
- All documentation can be found at [https://gravitypdf.com](http://gravitypdf.com/documentation/).
12
-
13
- # Branches
14
-
15
- ## master
16
-
17
- The master branch contains the latest stable release of the software. It's the same version [avaliable in the Wordpress repository](https://wordpress.org/plugins/gravity-forms-pdf-extended/).
18
-
19
- ## beta
20
-
21
- If we are currently running a beta edition of the software, this version will be avalible in the beta branch. This is a stable development version *but should not be used in a production environment*.
22
-
23
- ## development
24
-
25
- This is our work in progress, bleeding edge edition of the software. Consider this an alpha edition.
26
-
27
- # Pull Requests
28
-
29
- Pull requests are always welcome.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://gravitypdf.com
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
- Stable tag: 3.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl.txt
10
 
@@ -13,7 +13,7 @@ Automatically generate, email and download PDF documents with Gravity Forms and
13
  == Description ==
14
 
15
 
16
- If you have ever used Gravity Forms you’ll know just how powerful it is to build forms and capture information with WordPress. But what it lacks is an easy way to display that information as a document. That’s where our plugin comes into the picture. The software allows you to generate a PDF document, that includes data captured through Gravity Forms, by using HTML/CSS templates. Use the tools you know and love to easily create PDFs.
17
 
18
  Note: The software is a [developer toolkit](https://developer.gravitypdf.com/) with limited UX controls. To create custom PDF templates you need to be familiar with PHP, HTML and CSS. [Alternativly we offer development services](https://gravitypdf.com/) and can create and install the PDF templates for you.
19
 
@@ -55,8 +55,6 @@ We put together five demos showcasing how powerful the PDF software can be. [Tak
55
  3. GD Library
56
  4. RAM: Recommended: 128MB. Minimum: 64MB.
57
 
58
- *Note:* We've had clients report slow PDF generation times and problems meeting the RAM requirements on cheap shared web hosting. If you experience these problems [we recommend you look into WP Engine's managed hosting platform](http://www.shareasale.com/r.cfm?B=398776&U=955815&M=41388&urllink=) as our software works correctly out of the box.
59
-
60
  **Software Requirements**
61
 
62
  1. [Purchase and install Gravity Forms](https://www.e-junkie.com/ecom/gb.php?cl=54585&c=ib&aff=235154)
@@ -78,7 +76,7 @@ To view the Development Documentation head to [https://developer.gravitypdf.com]
78
 
79
  == Frequently Asked Questions ==
80
 
81
- All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs).
82
 
83
  == Screenshots ==
84
 
@@ -88,25 +86,28 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
88
 
89
  == Changelog ==
90
 
 
 
 
91
  = 3.7.3 =
92
  * Bug - Gravity Forms 1.9 didn't automatically nl2br paragraph text mergetags. Fixed this issue in custom PDF templates.
93
 
94
  = 3.7.2 =
95
- * Bug - Updated $form_data['date_created'], $form_data['date_created_usa'], $form_data['misc']['date_time'], $form_data['misc']['time_24hr'] and $form_data['misc']['time_12hr'] to factor in the website's timezone settings.
96
 
97
  = 3.7.1 =
98
  * Housekeeping - Allow control over signature width in default template using the 'gfpdfe_signature_width' filter
99
  * Housekeeping - Add better error checking when migrating PDF template folder
100
  * Housekeeping - Add unit testing to the directory migration function
101
- * Bug - Fixed backwards-compatiiblity PHP error when viewing custom PDF templates on Gravity Forms 1.8.3 or below.
102
- * Bug - Ensure checkbox field names are included in the $form_data array
103
 
104
  = 3.7.0 =
105
- * Feature - Added 'default-show-section-content' configuration option. You can now display the section break content in the default template. Note: if this option is enabled and the section break is empty it will still be displayed on the PDF.
106
  * Feature - Added hooks 'gfpdfe_template_location' and 'gfpdfe_template_location_uri' to change PDF template location
107
- * Housekeeping - Migrate your template and configuration files. As of Gravity PDF 3.7 we'll be dropping the 'site_name' folder for single WordPress installs and changing the multisite install directory to the site ID.
108
  * Housekeeping - Added $form_data['html_id'] key which has the HTML fields added by their ID (much like the signature_details_id key).
109
- * Housekeeping - Add large number of unit tests
110
  * Housekeeping - Derestrict certain pages software loads on.
111
  * Housekeeping - Split up PDF viewing security components into smaller chunks (easier to unit test)
112
  * Housekeeping - Remove CLI-checking override in RAM settings
@@ -153,13 +154,13 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
153
 
154
  = 3.5.10 =
155
  * Housekeeping - Include individual scoring for Gravity Form Survey Likert field in the $form_data['survey'] array
156
- * Bug - Fix fatal error when Gravity Forms isn't activated, but Gravity PDF is.
157
 
158
  = 3.5.9 =
159
  * Bug - Rollback recent changes that introduced the GFAPI as introduces errors for older versions of Gravity Forms. Will reintroduce in next major release and increase the minimum Gravity Forms version.
160
 
161
  = 3.5.8 =
162
- * Bug - Fixed issue affected some users where a depreciated function was causing a fatal error
163
 
164
  = 3.5.7 =
165
  * Bug - Fixed issue where the PDF settings page was blank for some users
@@ -180,13 +181,13 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
180
 
181
  = 3.5.4 =
182
  * Bug - Fixed issue with incorrect PDF name showing on the entry details page
183
- * Bug - Fixed issue with custom fonts being inaccessible without manually reinstalling after upgrading.
184
  * Housekeeping - Added in two new filters to modify the $mpdf object. 'gfpdfe_mpdf_class' and 'gfpdfe_mpdf_class_pre_render' (replaces the gfpdfe_pre_render_pdf filter).
185
 
186
  = 3.5.3 =
187
  * Bug - Mergetags braces ({}) were being encoded before conversion
188
  * Bug - Fixed issue with empty string being passed to array filter
189
- * Housekeeping - Enabled mergetag usage in the pdf_password and pdf_master_password configuration options
190
  * Housekeeping - Correctly call $wpdb->prepare so the variables in are in the second argument
191
 
192
  = 3.5.2 =
@@ -200,29 +201,29 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
200
  * Housekeeping - Remove legacy notices from mPDF package
201
 
202
  = 3.5.0 =
203
- * Feature - No longer need to reinitialise every time the software is updated.
204
  * Feature - Add auto-initialiser on initial installation for sites that have direct write access to their server files
205
- * Feature - Add auto-initialiser on initial installation across entire multisite network for sites who have direct write access to their server files.
206
  * Feature - Add auto-PDF_EXTENDED_TEMPLATES theme syncer for sites that have direct write access to their server files
207
  * Feature - Correctly added language support. The .PO file is located in the /language/ folder if anyone would like to do a translation.
208
 
209
  * Housekeeping - Restrict initialisation process to 64MB or greater to counter problems with users reporting a 'white screen' when running in a low-RAM environment.
210
  * Housekeeping - Refractor the admin notices code
211
  * Housekeeping - Create responsive PDF settings page
212
- * Housekeeping - Minify CSS and Javascript files
213
  * Housekeeping - Remove FontAwesome fonts from package and use Wordpress' build-in 'dashicons'
214
- * Housekeeping - Refine action and error messages
215
  * Housekeeping - Update initialisation tab copy for both pre- and post- initialisation
216
  * Housekeeping - Use Gravity Forms get_ip() function instead of custom function
217
- * Housekeeping - The in-built support form uses SSL once again (disabled in the past due to some servers being unable to verify the certificate).
218
 
219
  * Bug - When testing write permissions, file_exist() is throwing false positives for some users which would generate a warning when unlink() is called. Hide warning using '@'.
220
 
221
  = 3.4.1 =
222
- * Bug - Fix typo that effected sites running PHP5.2 or below.
223
 
224
  = 3.4.0.3 =
225
- * Bug - Define array_replace_recursive() if it doesn't exist, as it is PHP 5.3 only.
226
 
227
  = 3.4.0.2 =
228
  * Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()
@@ -230,8 +231,8 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
230
  * Bug - Fix notice errors with new 'save' PDF hook
231
 
232
  = 3.4.0.1 =
233
- * Housekeeping - Add commas on the last line of every config node in the configuration.php file
234
- * Housekeeping - Fix up initialisation error messages
235
  * Bug - Fix up mPDF bugs - soft hyphens, watermarks over SVG images, inline CSS bug
236
 
237
  = 3.4.0 =
@@ -243,23 +244,23 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
243
  * Feature - Updated mPDF to 3.7.1
244
  * Feature - Enable text/image watermark support. Added new example template example-watermark09.php showing off its usage (see http://gravitypdf.com/documentation-v3-x-x/templates/watermarks/)
245
  * Feature - Added full survey, poll and quiz support to both the default template and $form_data (see https://developer.gravitypdf.com/documentation/accessing-survey-poll-quiz-data/)
246
- * Feature - Shortcodes will now be processed in all templates, including default template (but only in the HTML field).
247
  * Feature - Added 'save' configuration option so PDFs are saved to the local disk when 'notifications' aren't enabled.
248
  * Feature - Added 'dpi' configuration option to modify the PDF image DPI. Default 96dpi. Use 300dpi for printing.
249
  * Feature - Added PDF/A1-b compliance option. Enable with 'pdfa1b' => true. See http://mpdf1.com/manual/index.php?tid=420&searchstring=pdf/a1-b for more details.
250
  * Feature - Added PDF/X1-a compliance option. Enable with 'pdfx1a' => true. See http://mpdf1.com/manual/index.php?tid=481&searchstring=pdf/x-1a for more details.
251
  * Feature - Added new constant option 'PDF_REPACK_FONT' which when enabled may improve function with some PostScript printers (disabled by default). Existing sites will need to add define('PDF_REPACK_FONT', true); to the bottom of their configuration.php file.
252
  * Feature - Added a sleuth of new hooks and filters for developers. See https://developer.gravitypdf.com/documentation/filters-and-hooks/ for examples.
253
- * Feature - Added $form_data['form_description'] key to $form_data array
254
- * Feature - Update $form_data['products'] array key to field ID
255
- * Feature - Added survey Likert output function for custom templates (much like the product table function). It can be used with the following command 'echo GFPDFEntryDetails::get_likert($form, $lead, $field_id);' where $field_id is substituted for the form field ID.
256
  * Feature - Added field descriptions to the $form_data array under the $form_data['field_descriptions'] key.
257
  * Feature - Added pre and post PDF generation filters and actions to pdf-render.php. These include gfpdfe_pre_render_pdf, gfpdfe_pdf_output_type, gfpdfe_pdf_filename and gfpdf_post_pdf_save.
258
- * Feature: $form_data['signature'] et al. keys now contain the signature width and height attributes
259
 
260
  * Housekeeping - Ensure the form and lead IDs are correctly passed throughout the render functions.
261
- * Housekeeping - Update settings page link to match new Gravity Forms URL structure
262
- * Housekeeping - Check if $lead['gfsurvey_score'] exists before assigning to $form_data array
263
  * Housekeeping - Removed table and font checksum debugging from mPDF when WP_DEBUG enabled as they produced inaccurate results.
264
  * Housekeeping - Fixed up mPDF logging location when WP_DEBUG enabled. Files now stored in wp-content/themes/Active_Theme_Folder/PDF_EXTENDED_TEMPLATES/output/ folder.
265
  * Housekeeping - Removed API logging locally when WP_DEBUG is enabled.
@@ -280,9 +281,9 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
280
  * Housekeeping - Apply same CSS styles (padding, border and line height) to HTML fields as done to form values in default templates
281
  * Housekeeping - Replaced arbitrary wrapper IDs in the default templates with the actual field ID
282
 
283
- * Bug - Fixed signature rendering issue when custom signature size was being used
284
  * Bug - Fixed static error types in helper/install-update-manager.php file.
285
- * Bug - Fixed redeployment error message which wasn't showing correctly
286
  * Bug - Fixed issue with PDF not attaching to notification using Paypal's delayed notification feature
287
  * Bug - Fixed strict standard warning about calling GFPDF_Settings::settings_page();
288
  * Bug - Fixed strict standard warning about calling GFPDFEntryDetail::pdf_get_lead_field_display();
@@ -295,7 +296,7 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
295
 
296
 
297
  = 3.3.4 =
298
- * Bug - Fixed issue linking to PDF from front end
299
  * Housekeeping - Removed autoredirect to initialisation page
300
 
301
  = 3.3.3 =
@@ -334,7 +335,7 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
334
  * Housekeeping - Updated header/footer examples to use @page in example.
335
 
336
  = 3.2.0 =
337
- * Feature - Can now view multiple PDFs assigned to a single form via the admin area. Note: You must provide a unique 'filename' parameter in configuration.php for multiple PDFs assigned to a single form.
338
  * Feature - You can exclude a field from the default templates using the class name 'exclude'. See our [FAQ topic](https://gravitypdf.com/#faqs) for more details.
339
  * Bug - Fixed issue viewing own PDF entry when logged in as anything lower than editor.
340
  * Bug - Fixed data return bug in pdf-entry-details.php that was preventing all data returning correctly.
@@ -367,16 +368,16 @@ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs
367
  * Bug - Fixed incorrect URL pointing to signature in $form_data
368
 
369
  = 3.1.1 =
370
- * Bug - Users whose server only supports FTP file manipulation using the WP_Filesystem API moved the files into the wrong directory due to FTP usually being rooted to the Wordpress home directory. To fix this the plugin attempts to determine the FTP directory, otherwise assumes it is the WP base directory.
371
- * Bug - Initialisation error message was being called but the success message was also showing.
372
 
373
  = 3.1.0 =
374
- * Feature - Added defaults to configuration.php which allows users to define the default PDF settings for all Gravity Forms. See the [installation and configuration documentation](https://developer.gravitypdf.com/documentation/getting-started-with-gravity-pdf-configuration/) for more details.
375
  * Feature - Added three new configuration options 'default-show-html', 'default-show-empty' and 'default-show-page-names' which allow different display options to the three default templates. See the [installation and configuration documentation](http://gravitypdf.com/documentation-v3-x-x/installation-and-configuration/#default-template) for more details.
376
  * Feature - Added filter hooks 'gfpdfe_pdf_name' and 'gfpdfe_template' which allows developers to further modify a PDF name and template file, respectively, outside of the configuration.php. This is useful if you have a special case naming convention based on user input. See [https://developer.gravitypdf.com/documentation/filters-and-hooks/](https://developer.gravitypdf.com/documentation/filters-and-hooks/) for more details about using these filters.
377
  * Feature - Custom font support. Any .ttf font file added to the PDF_EXTENDED_TEMPLATES/fonts/ folder will be automatically installed once the plugin has been initialised. Users also have the option to just initialise the fonts via the settings page. See the [font/language documentation ](https://developer.gravitypdf.com/documentation/language-support/#install-custom-fonts) for details.
378
  * Compatability - Use Gravity Forms get_upload_root() and get_upload_url_root() instead of hard coding the signature upload directory in pdf-entry-detail.php
379
- * Compatability - Changed depreciated functions get_themes() and get_theme() to wp_get_theme() (added in Wordpress v3.4).
380
  * Compatability - The plugin now needs to be initialised on fresh installation and upgrade. This allows us to use the WP_Filesystem API for file manipulation.
381
  * Compatability - Automatic copying of PDF_EXTENDED_TEMPLATES folder on a theme change was removed in favour of a user prompt. This allows us to take advantage of the WP_Filesystem API.
382
  * Compatability - Added Wordpress compatibility checker (minimum now 3.4 or higher).
@@ -419,7 +420,7 @@ Users will no longer place code in their active theme's functions.php file. Inst
419
 
420
  Other changes include
421
  * Improved security - further restrictions were placed on non-administrators viewing template files.
422
- * $form_data array tidied up - images won't be wrapped in anchor tags.
423
 
424
  For more details [view the 3.x.x online documentation](https://developer.gravitypdf.com/).
425
 
@@ -428,7 +429,7 @@ For more details [view the 3.x.x online documentation](https://developer.gravity
428
 
429
  = 2.2.2 =
430
  * DOMPDF - We updated to the latest version of DOMPDF - DOMPDF 0.6.0 beta 3.
431
- * DOMPDF - We've enabled font subsetting by default which should help limit the increased PDF size when using DejaVu Sans (or any other font).
432
 
433
  = 2.2.1 =
434
  * Bug - Fixed HTML error which caused list items to distort on PDF
@@ -441,7 +442,7 @@ For more details [view the 3.x.x online documentation](https://developer.gravity
441
  * Bug - Images and stylesheets will now try and be accessed with a local path instead of a URL. It fixes problem where some hosts were preventing read access from a URL. No template changes are required.
442
 
443
  = 2.1.1 =
444
- * Bug - Signatures stopped displaying after 2.1.0 update. Fixed issue.
445
  * Bug - First time install code now won't execute if already have configuration variables in database
446
 
447
  = 2.1.0 =
@@ -466,7 +467,7 @@ For more details [view the 3.x.x online documentation](https://developer.gravity
466
 
467
  = 2.0.1 =
468
  * Fixed Signature bug when checking if image file exists using URL instead of filesystem path
469
- * Fixed PHP Constants Notice
470
 
471
  = 2.0.0 =
472
  * Moved templates to active theme folder to prevent custom themes being removed on upgrade
@@ -487,7 +488,7 @@ For more details [view the 3.x.x online documentation](https://developer.gravity
487
  * Fixed problem when all_url_fopen was turned off on server and failed to retreive remote images. Now uses WP_HTTP class.
488
 
489
  = 1.2.1 =
490
- * Fixed path to custom css file included in PDF template
491
 
492
  = 1.2.0 =
493
  * Template files moved to the plugin's template folder
@@ -501,7 +502,7 @@ For more details [view the 3.x.x online documentation](https://developer.gravity
501
  * Fixed bug when using product information
502
 
503
  = 1.0.0 =
504
- * First release.
505
 
506
  == Upgrade Notice ==
507
 
4
  Tags: gravity, forms, pdf, automation, attachment
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
+ Stable tag: 3.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl.txt
10
 
13
  == Description ==
14
 
15
 
16
+ If you have ever used Gravity Forms you’ll know just how powerful it is to build forms and capture information with WordPress. But what it lacks is an easy way to display that information as a document. That’s where our plugin comes into the picture. The software allows you to generate a PDF document, that includes data captured through Gravity Forms, by using HTML/CSS templates. Use the tools you know and love to easily create PDFs.
17
 
18
  Note: The software is a [developer toolkit](https://developer.gravitypdf.com/) with limited UX controls. To create custom PDF templates you need to be familiar with PHP, HTML and CSS. [Alternativly we offer development services](https://gravitypdf.com/) and can create and install the PDF templates for you.
19
 
55
  3. GD Library
56
  4. RAM: Recommended: 128MB. Minimum: 64MB.
57
 
 
 
58
  **Software Requirements**
59
 
60
  1. [Purchase and install Gravity Forms](https://www.e-junkie.com/ecom/gb.php?cl=54585&c=ib&aff=235154)
76
 
77
  == Frequently Asked Questions ==
78
 
79
+ All FAQs can be [viewed on the Gravity PDF website](https://gravitypdf.com/#faqs).
80
 
81
  == Screenshots ==
82
 
86
 
87
  == Changelog ==
88
 
89
+ = 3.7.4 =
90
+ * Housekpeeing - Revert patch made in last update as Gravity Forms 1.9.9 fixes the issue internally.
91
+
92
  = 3.7.3 =
93
  * Bug - Gravity Forms 1.9 didn't automatically nl2br paragraph text mergetags. Fixed this issue in custom PDF templates.
94
 
95
  = 3.7.2 =
96
+ * Bug - Updated $form_data['date_created'], $form_data['date_created_usa'], $form_data['misc']['date_time'], $form_data['misc']['time_24hr'] and $form_data['misc']['time_12hr'] to factor in the website's timezone settings.
97
 
98
  = 3.7.1 =
99
  * Housekeeping - Allow control over signature width in default template using the 'gfpdfe_signature_width' filter
100
  * Housekeeping - Add better error checking when migrating PDF template folder
101
  * Housekeeping - Add unit testing to the directory migration function
102
+ * Bug - Fixed backwards-compatiiblity PHP error when viewing custom PDF templates on Gravity Forms 1.8.3 or below.
103
+ * Bug - Ensure checkbox field names are included in the $form_data array
104
 
105
  = 3.7.0 =
106
+ * Feature - Added 'default-show-section-content' configuration option. You can now display the section break content in the default template. Note: if this option is enabled and the section break is empty it will still be displayed on the PDF.
107
  * Feature - Added hooks 'gfpdfe_template_location' and 'gfpdfe_template_location_uri' to change PDF template location
108
+ * Housekeeping - Migrate your template and configuration files. As of Gravity PDF 3.7 we'll be dropping the 'site_name' folder for single WordPress installs and changing the multisite install directory to the site ID.
109
  * Housekeeping - Added $form_data['html_id'] key which has the HTML fields added by their ID (much like the signature_details_id key).
110
+ * Housekeeping - Add large number of unit tests
111
  * Housekeeping - Derestrict certain pages software loads on.
112
  * Housekeeping - Split up PDF viewing security components into smaller chunks (easier to unit test)
113
  * Housekeeping - Remove CLI-checking override in RAM settings
154
 
155
  = 3.5.10 =
156
  * Housekeeping - Include individual scoring for Gravity Form Survey Likert field in the $form_data['survey'] array
157
+ * Bug - Fix fatal error when Gravity Forms isn't activated, but Gravity PDF is.
158
 
159
  = 3.5.9 =
160
  * Bug - Rollback recent changes that introduced the GFAPI as introduces errors for older versions of Gravity Forms. Will reintroduce in next major release and increase the minimum Gravity Forms version.
161
 
162
  = 3.5.8 =
163
+ * Bug - Fixed issue affected some users where a depreciated function was causing a fatal error
164
 
165
  = 3.5.7 =
166
  * Bug - Fixed issue where the PDF settings page was blank for some users
181
 
182
  = 3.5.4 =
183
  * Bug - Fixed issue with incorrect PDF name showing on the entry details page
184
+ * Bug - Fixed issue with custom fonts being inaccessible without manually reinstalling after upgrading.
185
  * Housekeeping - Added in two new filters to modify the $mpdf object. 'gfpdfe_mpdf_class' and 'gfpdfe_mpdf_class_pre_render' (replaces the gfpdfe_pre_render_pdf filter).
186
 
187
  = 3.5.3 =
188
  * Bug - Mergetags braces ({}) were being encoded before conversion
189
  * Bug - Fixed issue with empty string being passed to array filter
190
+ * Housekeeping - Enabled mergetag usage in the pdf_password and pdf_master_password configuration options
191
  * Housekeeping - Correctly call $wpdb->prepare so the variables in are in the second argument
192
 
193
  = 3.5.2 =
201
  * Housekeeping - Remove legacy notices from mPDF package
202
 
203
  = 3.5.0 =
204
+ * Feature - No longer need to reinitialise every time the software is updated.
205
  * Feature - Add auto-initialiser on initial installation for sites that have direct write access to their server files
206
+ * Feature - Add auto-initialiser on initial installation across entire multisite network for sites who have direct write access to their server files.
207
  * Feature - Add auto-PDF_EXTENDED_TEMPLATES theme syncer for sites that have direct write access to their server files
208
  * Feature - Correctly added language support. The .PO file is located in the /language/ folder if anyone would like to do a translation.
209
 
210
  * Housekeeping - Restrict initialisation process to 64MB or greater to counter problems with users reporting a 'white screen' when running in a low-RAM environment.
211
  * Housekeeping - Refractor the admin notices code
212
  * Housekeeping - Create responsive PDF settings page
213
+ * Housekeeping - Minify CSS and Javascript files
214
  * Housekeeping - Remove FontAwesome fonts from package and use Wordpress' build-in 'dashicons'
215
+ * Housekeeping - Refine action and error messages
216
  * Housekeeping - Update initialisation tab copy for both pre- and post- initialisation
217
  * Housekeeping - Use Gravity Forms get_ip() function instead of custom function
218
+ * Housekeeping - The in-built support form uses SSL once again (disabled in the past due to some servers being unable to verify the certificate).
219
 
220
  * Bug - When testing write permissions, file_exist() is throwing false positives for some users which would generate a warning when unlink() is called. Hide warning using '@'.
221
 
222
  = 3.4.1 =
223
+ * Bug - Fix typo that effected sites running PHP5.2 or below.
224
 
225
  = 3.4.0.3 =
226
+ * Bug - Define array_replace_recursive() if it doesn't exist, as it is PHP 5.3 only.
227
 
228
  = 3.4.0.2 =
229
  * Housekeeping - Wrapped the View PDF and Download buttons in correct language functions - _e()
231
  * Bug - Fix notice errors with new 'save' PDF hook
232
 
233
  = 3.4.0.1 =
234
+ * Housekeeping - Add commas on the last line of every config node in the configuration.php file
235
+ * Housekeeping - Fix up initialisation error messages
236
  * Bug - Fix up mPDF bugs - soft hyphens, watermarks over SVG images, inline CSS bug
237
 
238
  = 3.4.0 =
244
  * Feature - Updated mPDF to 3.7.1
245
  * Feature - Enable text/image watermark support. Added new example template example-watermark09.php showing off its usage (see http://gravitypdf.com/documentation-v3-x-x/templates/watermarks/)
246
  * Feature - Added full survey, poll and quiz support to both the default template and $form_data (see https://developer.gravitypdf.com/documentation/accessing-survey-poll-quiz-data/)
247
+ * Feature - Shortcodes will now be processed in all templates, including default template (but only in the HTML field).
248
  * Feature - Added 'save' configuration option so PDFs are saved to the local disk when 'notifications' aren't enabled.
249
  * Feature - Added 'dpi' configuration option to modify the PDF image DPI. Default 96dpi. Use 300dpi for printing.
250
  * Feature - Added PDF/A1-b compliance option. Enable with 'pdfa1b' => true. See http://mpdf1.com/manual/index.php?tid=420&searchstring=pdf/a1-b for more details.
251
  * Feature - Added PDF/X1-a compliance option. Enable with 'pdfx1a' => true. See http://mpdf1.com/manual/index.php?tid=481&searchstring=pdf/x-1a for more details.
252
  * Feature - Added new constant option 'PDF_REPACK_FONT' which when enabled may improve function with some PostScript printers (disabled by default). Existing sites will need to add define('PDF_REPACK_FONT', true); to the bottom of their configuration.php file.
253
  * Feature - Added a sleuth of new hooks and filters for developers. See https://developer.gravitypdf.com/documentation/filters-and-hooks/ for examples.
254
+ * Feature - Added $form_data['form_description'] key to $form_data array
255
+ * Feature - Update $form_data['products'] array key to field ID
256
+ * Feature - Added survey Likert output function for custom templates (much like the product table function). It can be used with the following command 'echo GFPDFEntryDetails::get_likert($form, $lead, $field_id);' where $field_id is substituted for the form field ID.
257
  * Feature - Added field descriptions to the $form_data array under the $form_data['field_descriptions'] key.
258
  * Feature - Added pre and post PDF generation filters and actions to pdf-render.php. These include gfpdfe_pre_render_pdf, gfpdfe_pdf_output_type, gfpdfe_pdf_filename and gfpdf_post_pdf_save.
259
+ * Feature: $form_data['signature'] et al. keys now contain the signature width and height attributes
260
 
261
  * Housekeeping - Ensure the form and lead IDs are correctly passed throughout the render functions.
262
+ * Housekeeping - Update settings page link to match new Gravity Forms URL structure
263
+ * Housekeeping - Check if $lead['gfsurvey_score'] exists before assigning to $form_data array
264
  * Housekeeping - Removed table and font checksum debugging from mPDF when WP_DEBUG enabled as they produced inaccurate results.
265
  * Housekeeping - Fixed up mPDF logging location when WP_DEBUG enabled. Files now stored in wp-content/themes/Active_Theme_Folder/PDF_EXTENDED_TEMPLATES/output/ folder.
266
  * Housekeeping - Removed API logging locally when WP_DEBUG is enabled.
281
  * Housekeeping - Apply same CSS styles (padding, border and line height) to HTML fields as done to form values in default templates
282
  * Housekeeping - Replaced arbitrary wrapper IDs in the default templates with the actual field ID
283
 
284
+ * Bug - Fixed signature rendering issue when custom signature size was being used
285
  * Bug - Fixed static error types in helper/install-update-manager.php file.
286
+ * Bug - Fixed redeployment error message which wasn't showing correctly
287
  * Bug - Fixed issue with PDF not attaching to notification using Paypal's delayed notification feature
288
  * Bug - Fixed strict standard warning about calling GFPDF_Settings::settings_page();
289
  * Bug - Fixed strict standard warning about calling GFPDFEntryDetail::pdf_get_lead_field_display();
296
 
297
 
298
  = 3.3.4 =
299
+ * Bug - Fixed issue linking to PDF from front end
300
  * Housekeeping - Removed autoredirect to initialisation page
301
 
302
  = 3.3.3 =
335
  * Housekeeping - Updated header/footer examples to use @page in example.
336
 
337
  = 3.2.0 =
338
+ * Feature - Can now view multiple PDFs assigned to a single form via the admin area. Note: You must provide a unique 'filename' parameter in configuration.php for multiple PDFs assigned to a single form.
339
  * Feature - You can exclude a field from the default templates using the class name 'exclude'. See our [FAQ topic](https://gravitypdf.com/#faqs) for more details.
340
  * Bug - Fixed issue viewing own PDF entry when logged in as anything lower than editor.
341
  * Bug - Fixed data return bug in pdf-entry-details.php that was preventing all data returning correctly.
368
  * Bug - Fixed incorrect URL pointing to signature in $form_data
369
 
370
  = 3.1.1 =
371
+ * Bug - Users whose server only supports FTP file manipulation using the WP_Filesystem API moved the files into the wrong directory due to FTP usually being rooted to the Wordpress home directory. To fix this the plugin attempts to determine the FTP directory, otherwise assumes it is the WP base directory.
372
+ * Bug - Initialisation error message was being called but the success message was also showing.
373
 
374
  = 3.1.0 =
375
+ * Feature - Added defaults to configuration.php which allows users to define the default PDF settings for all Gravity Forms. See the [installation and configuration documentation](https://developer.gravitypdf.com/documentation/getting-started-with-gravity-pdf-configuration/) for more details.
376
  * Feature - Added three new configuration options 'default-show-html', 'default-show-empty' and 'default-show-page-names' which allow different display options to the three default templates. See the [installation and configuration documentation](http://gravitypdf.com/documentation-v3-x-x/installation-and-configuration/#default-template) for more details.
377
  * Feature - Added filter hooks 'gfpdfe_pdf_name' and 'gfpdfe_template' which allows developers to further modify a PDF name and template file, respectively, outside of the configuration.php. This is useful if you have a special case naming convention based on user input. See [https://developer.gravitypdf.com/documentation/filters-and-hooks/](https://developer.gravitypdf.com/documentation/filters-and-hooks/) for more details about using these filters.
378
  * Feature - Custom font support. Any .ttf font file added to the PDF_EXTENDED_TEMPLATES/fonts/ folder will be automatically installed once the plugin has been initialised. Users also have the option to just initialise the fonts via the settings page. See the [font/language documentation ](https://developer.gravitypdf.com/documentation/language-support/#install-custom-fonts) for details.
379
  * Compatability - Use Gravity Forms get_upload_root() and get_upload_url_root() instead of hard coding the signature upload directory in pdf-entry-detail.php
380
+ * Compatability - Changed depreciated functions get_themes() and get_theme() to wp_get_theme() (added in Wordpress v3.4).
381
  * Compatability - The plugin now needs to be initialised on fresh installation and upgrade. This allows us to use the WP_Filesystem API for file manipulation.
382
  * Compatability - Automatic copying of PDF_EXTENDED_TEMPLATES folder on a theme change was removed in favour of a user prompt. This allows us to take advantage of the WP_Filesystem API.
383
  * Compatability - Added Wordpress compatibility checker (minimum now 3.4 or higher).
420
 
421
  Other changes include
422
  * Improved security - further restrictions were placed on non-administrators viewing template files.
423
+ * $form_data array tidied up - images won't be wrapped in anchor tags.
424
 
425
  For more details [view the 3.x.x online documentation](https://developer.gravitypdf.com/).
426
 
429
 
430
  = 2.2.2 =
431
  * DOMPDF - We updated to the latest version of DOMPDF - DOMPDF 0.6.0 beta 3.
432
+ * DOMPDF - We've enabled font subsetting by default which should help limit the increased PDF size when using DejaVu Sans (or any other font).
433
 
434
  = 2.2.1 =
435
  * Bug - Fixed HTML error which caused list items to distort on PDF
442
  * Bug - Images and stylesheets will now try and be accessed with a local path instead of a URL. It fixes problem where some hosts were preventing read access from a URL. No template changes are required.
443
 
444
  = 2.1.1 =
445
+ * Bug - Signatures stopped displaying after 2.1.0 update. Fixed issue.
446
  * Bug - First time install code now won't execute if already have configuration variables in database
447
 
448
  = 2.1.0 =
467
 
468
  = 2.0.1 =
469
  * Fixed Signature bug when checking if image file exists using URL instead of filesystem path
470
+ * Fixed PHP Constants Notice
471
 
472
  = 2.0.0 =
473
  * Moved templates to active theme folder to prevent custom themes being removed on upgrade
488
  * Fixed problem when all_url_fopen was turned off on server and failed to retreive remote images. Now uses WP_HTTP class.
489
 
490
  = 1.2.1 =
491
+ * Fixed path to custom css file included in PDF template
492
 
493
  = 1.2.0 =
494
  * Template files moved to the plugin's template folder
502
  * Fixed bug when using product information
503
 
504
  = 1.0.0 =
505
+ * First release.
506
 
507
  == Upgrade Notice ==
508
 
helper/pdf-common.php CHANGED
@@ -145,11 +145,6 @@ class PDF_Common
145
  */
146
  public static function do_mergetags($string, $form_id, $lead_id)
147
  {
148
- /*
149
- * Add custom filters to process mergetag results further
150
- */
151
- add_filter('gform_merge_tag_filter', array(__CLASS__, 'process_paragraph_mergetag'), 10, 5); /* ensure paragraph mergetags in PDF template automatically nl2br */
152
-
153
  /*
154
  * Unconvert { and } symbols from HTML entities
155
  */
@@ -167,26 +162,12 @@ class PDF_Common
167
 
168
  $results = trim(GFCommon::replace_variables($string, $form, $lead, false, false, false));
169
 
170
- /*
171
- * Remove custom filters to prevent any conflict with Gravity Forms
172
- */
173
- remove_filter('gform_merge_tag_filter', array(__CLASS__, 'process_paragraph_mergetag'));
174
-
175
  /*
176
  * Return results
177
  */
178
  return $results;
179
 
180
  }
181
-
182
- public static function process_paragraph_mergetag($value, $input_id, $modifier, $field, $raw_value) {
183
- global $gfpdfe_data;
184
-
185
- if(version_compare($gfpdfe_data->gf_version, 1.9, '>=') && $field['type'] == 'textarea') {
186
- $value = nl2br($value);
187
- }
188
- return $value;
189
- }
190
 
191
  /*
192
  * Allow users to view the $form_data array, if it exists
145
  */
146
  public static function do_mergetags($string, $form_id, $lead_id)
147
  {
 
 
 
 
 
148
  /*
149
  * Unconvert { and } symbols from HTML entities
150
  */
162
 
163
  $results = trim(GFCommon::replace_variables($string, $form, $lead, false, false, false));
164
 
 
 
 
 
 
165
  /*
166
  * Return results
167
  */
168
  return $results;
169
 
170
  }
 
 
 
 
 
 
 
 
 
171
 
172
  /*
173
  * Allow users to view the $form_data array, if it exists
pdf.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Gravity PDF
5
  * Plugin URI: https://gravitypdf.com
6
  * Description: Gravity PDF allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
- * Version: 3.7.3
8
  * Author: Blue Liquid Designs
9
  * Author URI: http://www.blueliquiddesigns.com.au
10
  */
@@ -41,7 +41,7 @@
41
  /*
42
  * Define our constants
43
  */
44
- define('PDF_EXTENDED_VERSION', '3.7.3');
45
  define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.8');
46
  define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.9');
47
  define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5');
4
  * Plugin Name: Gravity PDF
5
  * Plugin URI: https://gravitypdf.com
6
  * Description: Gravity PDF allows you to save/view/download a PDF from the front- and back-end, and automate PDF creation on form submission. Our Business Plus package also allows you to overlay field onto an existing PDF.
7
+ * Version: 3.7.4
8
  * Author: Blue Liquid Designs
9
  * Author URI: http://www.blueliquiddesigns.com.au
10
  */
41
  /*
42
  * Define our constants
43
  */
44
+ define('PDF_EXTENDED_VERSION', '3.7.4');
45
  define('GF_PDF_EXTENDED_SUPPORTED_VERSION', '1.8');
46
  define('GF_PDF_EXTENDED_WP_SUPPORTED_VERSION', '3.9');
47
  define('GF_PDF_EXTENDED_PHP_SUPPORTED_VERSION', '5');
view/templates/settings/changelog.php CHANGED
@@ -40,6 +40,12 @@
40
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
41
 
42
  <h3><?php echo PDF_EXTENDED_VERSION; ?></h3>
 
 
 
 
 
 
43
  <ul>
44
  <li>Bug - Gravity Forms 1.9 didn't automatically nl2br paragraph text mergetags. Fixed this issue in custom PDF templates.</li>
45
  </ul>
40
  <p><strong>Current Version: <?php echo PDF_EXTENDED_VERSION; ?></strong></p>
41
 
42
  <h3><?php echo PDF_EXTENDED_VERSION; ?></h3>
43
+
44
+ <ul>
45
+ <li>Housekpeeing - Revert patch made in last update as Gravity Forms 1.9.9 fixes the issue internally.</li>
46
+ </ul>
47
+
48
+ <h3>3.7.3</h3>
49
  <ul>
50
  <li>Bug - Gravity Forms 1.9 didn't automatically nl2br paragraph text mergetags. Fixed this issue in custom PDF templates.</li>
51
  </ul>