Dompdf is not working is download empty pdf
Sorry it looks like I misunderstood your query.. I have tried myself and it is working for me. I m doing as below. Hope it will help.. I tried stripping the view markup back to basics removing tables and such but it still fails.
Very strange indeed. The same template and data attaches as an uncorrupt PDF no problem, but when downloaded directly, it produces a corrupt file every time. I am just guessing.. For me it was the same and I had to remove all styling bit.. Hope it will help. Tried adding title , and also removing everything and simply outputting 'test'. Still having problems. ErrorException in AdobeFontMetrics. No worries. The differences between attach and download produce different file content.
Comparing them with a hex editor shows that they are not the same, and one --for whatever reason-- is corrupt. I checked: laravel. Using Laravel 5. This is for future reference in case anyone runs into the same problem.
I spent way too long reinstalling composer and clearing cache. Copy link. Thanks :. I'm having this issue. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. Asked 9 years, 2 months ago. Active 8 months ago. Viewed 5k times. Ersel Aker. Ersel Aker Ersel Aker 8 8 silver badges 25 25 bronze badges. A blank PDF or a completely blank page? Do you get any errors from PHP? I am facing this exact problem and am getting nowhere with it. Skip to content. Star 4. New issue. Jump to bottom. Copy link. Did it ever work, or did you just started using it? Are you on the latest dev-master?
If so, could you try an older version? Here is info Does this happen with all your pdf's? Can you send me the code you are using? Did you try the most basic pdf possible? Can you paste the code you are using?
0コメント