Coder Social home page Coder Social logo

Comments (12)

jakejackson1 avatar jakejackson1 commented on September 24, 2024

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.

dogrocker avatar dogrocker commented on September 24, 2024

@blueliquiddesigns,

This is my perm on ttfontdata

drwxrwxrwx 1 www-data www-data     102 Aug 13 14:11 ttfontdata/

from mpdf.

dogrocker avatar dogrocker commented on September 24, 2024

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.

jakejackson1 avatar jakejackson1 commented on September 24, 2024

Very strange. Maybe one of the other devs can shed some light on the issue.

from mpdf.

dogrocker avatar dogrocker commented on September 24, 2024

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.

jakejackson1 avatar jakejackson1 commented on September 24, 2024

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.

dogrocker avatar dogrocker commented on September 24, 2024

Hello @blueliquiddesigns , I fixed this problem by using version 6.0.

from mpdf.

lizbanach avatar lizbanach commented on September 24, 2024

I have the same issue. Why is this closed when there is no solution?

from mpdf.

MGParisi avatar MGParisi commented on September 24, 2024

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.

divinecodes avatar divinecodes commented on September 24, 2024

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.

Klap-in avatar Klap-in commented on September 24, 2024

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.

finwe avatar finwe commented on September 24, 2024

Please, stop resurrecting ancient closed threads with most likely unrelated information.

from mpdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.