Hi Moondrop,
PDFs are generated and saved on the web server when using the ‘notifications’ configuration option. The folder they are saved in has a htaccess file to prevent access to the PDFs via the web browser.
If you don’t need to have PDFs sent via email then the PDFs won’t be saved to disk.
Great to hear and thanks for the reply!
Hello,
Sorry to re-open this topic, however I can not seems to stop .pdf files from being generated in the “PDF_EXTENDED_TEMPLATES/output” folder.
My “PDF_EXTENDED_TEMPLATES/configuration.php” file contains:
global $gf_pdf_default_configuration;
$gf_pdf_default_configuration = array(
'notifications' => false,
'template' => 'default-template-two-rows.php',
'pdf_size' => 'A4'
);
define('GFPDF_SET_DEFAULT_TEMPLATE', true);
/*
* MEMORY ISSUES?
* Try setting the options below to true to help reduce the memory footprint of the package.
*/
define('PDF_ENABLE_MPDF_LITE', false);
/* strip out advanced features like advanced table borders, terms and conditions, columns, index, bookmarks and barcodes. */
define('PDF_ENABLE_MPDF_TINY', false);
/* if your tried the lite version and are still having trouble the tiny version includes the bare minimum features. There's no positioning, float, watermark or form support */
define('PDF_DISABLE_FONT_SUBSTITUTION', false);
/* reduced memory by stopping font substitution */
define('PDF_ENABLE_SIMPLE_TABLES', false);
/* disable the advanced table feature and forces all cells to have the same border, background etc. */
I also tried setting 'notifications' => '',
However, each form submission still generates a .pdf file in the “output” folder. How can I stop PDF files from being written to the server?
Thank you for the feedback Moondrop. I’ve verified this is an issue and have fixed it for the next release. We’ll be running beta testing next week. You can sign up to our mailing list to keep apprised.