Support » Plugin: Gravity PDF » How to set gfpdf_tmp_location on Windows IIS Server.

  • Resolved cwolff


    Can you point me to documentation for setting gfpdf_tmp_location on a Windows IIS Server? The V5 documentation seems to be outdated.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Jackson



    There should be no major differences between Windows / Linux, aside from the usual path discrepancies (Linux using forward slashes in the path, while Windows uses back slashes). What exactly in the v5 documentation for gfpdf_tmp_location appears outdated?

    Thread Starter cwolff


    Thanks Jake,

    The code in our Model_Install.php is different than that in the documentation.

    		/* See for more details about this filter */
    		$this->data->template_tmp_location = apply_filters( 'gfpdf_tmp_location', $this->data->template_location . 'tmp/', $working_folder, $upload_dir_url ); /* encouraged to move this to a directory not accessible via the web */

    Maybe I am not understanding. Do I need to add the filter code from the documentation to my functions.php?

    Thank you for this plugin, by the way, we use it extensively.

    Plugin Author Jake Jackson


    Yes, it’s supposed to be different. Model_Install.php is where the filter gfpdf_tmp_location gets called. The examples in our documentation is how you can manipulate/replace the tmp location path.

    Usually you would add a modified version of the example code in a child theme’s functions.php file (but it can go elsewhere, like custom plugins or mu-plugins).

    Here’s a great read for non-developers about what WordPress Actions / Filters / Hooks are, and how to use them:

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set gfpdf_tmp_location on Windows IIS Server.’ is closed to new replies.