Comments (2)
Hi Sukhpal,
Seems like JPGRAPH_PATH can also be defined in examples/example_test.php but just as for the variables you mention, there is a fallback in mpdf.php which points back to the mPDF installation directory:
if (!defined('_JPGRAPH_PATH')) define("_JPGRAPH_PATH", _MPDF_PATH.'jpgraph/')
It seems like a good idea to do the same for the graph_cache path, please try modifying graph.php lines 13-16:
if ($handle = opendir(_MPDF_PATH.'graph_cache'))
while (false !== ($file = readdir($handle))) {
if (((filemtime(_MPDF_PATH.'graph_cache/'.$file)+$interval) < time()) && ($file != "..") && ($file != ".")) {
@Unlink(_MPDF_PATH.'graph_cache/'.$file); // mPDF 4.0
and line 231:
$figure_file = "graph_cache/".rand(11111,999999999).".".$img_type;
and if it works OK, please send a pull request.
from mpdf.
see #56
from mpdf.
Related Issues (20)
- Change ! to isset() on line 654 of Mpdf.php to remove warning
- https://www.exploit-db.com/exploits/50995 HOT 1
- Quickfix for color containing CSS variable is bad
- Hyphenation of words with hyphens not as expected HOT 3
- Add security reporting feature to the repo HOT 1
- There are some bugs related to border-collapse and padding and border with tables HOT 3
- Mpdf.php (#16141): Trying to access array offset on value of type null HOT 10
- Adding text to existing PDF file, can not move pdf file
- converting a .xlsx file to .pdf not retain the specified print area
- Undefined array key "VALUE" HOT 1
- htmlpagefooter element does not respect z-index HOT 4
- Error in pdf generation - Invalid argument supplied for foreach()
- Document structure is invalid or damaged HOT 6
- Getting Fatal error sometimes with the ColorConverter HOT 2
- Attribute value truncated when containing double quote character and using single quote delimiter
- Warning: Undefined array key "s" HOT 6
- Nesting a table inside a tfoot element results in "Trying to access array offset on null"
- PDF/A : endobj is missing EOL-Marker
- ArrayAccess::offsetSet()" might add "void" as a native return type
- Error while trying to save pdf to a folder. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdf.