Comments (12)
Check your server can write to the /var/www/svn_data/skeletonapp/mpdf/ttfontdata/
directory. Once it can you should be able to generate the PDF.
from mpdf.
@blueliquiddesigns,
This is my perm on ttfontdata
drwxrwxrwx 1 www-data www-data 102 Aug 13 14:11 ttfontdata/
from mpdf.
All of my folder in vendor/mpdf
is now chmod to 777
.
But it got the same error.
drwxrwxrwx 1 www-data www-data 1224 Aug 13 15:38 vendor/
from mpdf.
Very strange. Maybe one of the other devs can shed some light on the issue.
from mpdf.
I think this is issue only on devs that use linux or unix
. Because I try to use it on Windows
and it work!.
But my dev tools is mac, So now it very hard for me to code with this libs.
from mpdf.
I'm glad you've been able to get it working.
I have my doubts about it being specific to Linux / Unix (I use the software exclusively on this platform). The error still suggests a misconfiguration or permissions problems at play here.
from mpdf.
Hello @blueliquiddesigns , I fixed this problem by using version 6.0.
from mpdf.
I have the same issue. Why is this closed when there is no solution?
from mpdf.
The latest version, and the permissions change seems to be the solution people gave.
I believe I abandoned the library and the idea and urged the client to NOT use PDF's. I tried 3 solutions and none of them presented very good results. The pages we needed them on would of needed massive rewrites as they often used GRIDs and other things.
We use to do it for printing, and I got a client using DKPDF, but I will be wise and advise only the people who want to spend the cost for a custom version to be written. Its often what has been needed.
Also, Chrome support for PDF's is VERY broken leaving most users with white pages. There are fixes if you turn off "Accelerated Browsing" or if you download a 3rd party plugin. But Im finding the tech is hurting. These PDF's generators don't help the problem and even for printing they do not provide the save feature as the @print tags in CSS. I looked for commercially available products and they where as restrictive.
Its best to write the actual PDF, and not an interpretation off the rendering of some command line browser on the Linux platforms we run.
I suspect though that there maybe better solutions in .NET.
from mpdf.
Currently experiencing same issue with laravel 8 and mpdf 8: Fixed By adding the public folder to the export location file name
`
$pdf->setTitle($title);
$pdf->setDisplayMode('fullpage');
$pdf->WriteHTML($html);
$filename ="exports/pdf/".time().".pdf";
$exportLocation = "public/".$filename;
$pdf->Output($exportLocation, \Mpdf\Output\Destination::FILE); `
from mpdf.
And $html, $orientation, $title could be anything, e.g. $html='<p>Hallo World</p>'
?
Could you tell a bit about the permissions of the folder. Does this subfolder has different permissions then its parent?
is everybody in this thread with this issue using laravel?
from mpdf.
Please, stop resurrecting ancient closed threads with most likely unrelated information.
from mpdf.
Related Issues (20)
- 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
- Write HTML - NOTICE Uninitialized string offset - XXXX on Otl.php HOT 1
- Subsequent calls to Output() of pdf with images are missing images in 2++ data HOT 1
- SELECT don't show selected element HOT 6
- Signed PDF doesn't show signature
- Font size in absolute positioned div depends on position on page
- MPDF "Trying to access array offset on null" error during pdf generation
- Documentation Update Needed for Margin Property Syntax Change in mPDF Version 8 HOT 1
- Bug Report HOT 1
- Set margin-left and margin-right in @page :first { ... }
- text-align: justify add spases between letters not words
- Fatal error: Uncaught Error: Class "Mpdf\Mpdf" not found in C:\xampp\htdocs\CV Builder\index.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\CV Builder\index.php on line 5
- MPDF 8.2 with PHP 8.1 - cannot suppress PHP notices and warnings HOT 1
- PDF/A-3b support
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.