Title: Mpdf temp directory
Last modified: May 9, 2024

---

# Mpdf temp directory

 *  Resolved [piccart](https://wordpress.org/support/users/piccart/)
 * (@piccart)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/mpdf-temp-directory/)
 * Hello! I have previously opened a support topic [here](https://wordpress.org/support/topic/problems-with-generate_cookie_policy_snapshot/)
   in relation to a problem we had with the fact that Mpdf was creating temporary
   directories and files when generating the cookie policy pdf.
 * You’ve been very kind and created a patched version where that functionality 
   is disabled, and it works well for us. Thanks again!
 * though I was hoping that version 7 would include that patch, but I just checked
   and it doesn’t seem the case. Am I mistaken? I am looking at line 2991 of the
   file /class-document.php
 * We can keep using the patched branch, but it’d be great if we could update to
   the latest version at some point. Could you maybe just add a filter so we can
   eventually disable the temp_dir and you won’t have to refactor the default workflow?
 * many thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [daniub](https://wordpress.org/support/users/daniub/)
 * (@daniub)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/mpdf-temp-directory/#post-17746621)
 * Hi,
 * we are forwarding your question to our developers.
 * They will provide a response in the next days 🙂
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/mpdf-temp-directory/#post-17749651)
 * Hi [@piccart](https://wordpress.org/support/users/piccart/),
 * As discussed in that thread the temp directory was dropped, and a filter was 
   added: cmplz_mpdf_args
 * You can find the code in: documents/class-document.php, line 1984.
 * Possibly you are looking in that particular branch, while the latest version 
   lives in the main branch.
 * Based on the thread, it seems to me that the latest version should work out if
   the box for you.
 * Let me know if you have any questions.
 *  Thread Starter [piccart](https://wordpress.org/support/users/piccart/)
 * (@piccart)
 * [2 years ago](https://wordpress.org/support/topic/mpdf-temp-directory/#post-17772763)
 * hello [@rogierlankhorst](https://wordpress.org/support/users/rogierlankhorst/),
   sorry for the belated reply!
 * I updated the plugin to the latest version and it does indeed seem to work correctly
   in our enviornment. 🙂
 * I am not sure what I was looking at, I thought I downloaded the latest version
   from the WP repo, but I must have clicked the wrong thing at some point.
 * Apologies for the misunderstanding, and many thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Mpdf temp directory’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [mPDF](https://wordpress.org/support/topic-tag/mpdf/)

 * 3 replies
 * 3 participants
 * Last reply from: [piccart](https://wordpress.org/support/users/piccart/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/mpdf-temp-directory/#post-17772763)
 * Status: resolved