#18 Download / Print PDF File In Laravel |Laravel Ecommerce Project Tutorial For Beginner to Advance

  Рет қаралды 10,671

Web Tech Knowledge

Web Tech Knowledge

Күн бұрын

Пікірлер: 31
@WebTechKnowledge
@WebTechKnowledge 2 жыл бұрын
Command for install package for PDF : composer require barryvdh/laravel-dompdf Then go to config/app.php and make some changes 'providers' => [ .... Barryvdh\DomPDF\ServiceProvider::class, ], 'aliases' => [ .... 'PDF' => Barryvdh\DomPDF\Facade::class, ],
@ashikrahman1036
@ashikrahman1036 5 ай бұрын
bro pin this comment
@WebTechKnowledge
@WebTechKnowledge 5 ай бұрын
Okay
@hashilankeshwara834
@hashilankeshwara834 Жыл бұрын
I have an error msg. "The PHP GD extension is required, but is not installed."🤔 can you help?
@accountaccount4217
@accountaccount4217 Жыл бұрын
Great vid, I successfully downloaded the pdf but the image isn't. Instead, it displays "Image not found or type unknown". How should I fix it?, I did "myfolder/{{$order->image}}" and my data type in my database is BLOB. The image is visible in loadview but every time I download it "Image not found or type unknown" is displayed. What am I missing? and what should I do?
@MUHAMMADSHOAIB-ol8cl
@MUHAMMADSHOAIB-ol8cl 11 ай бұрын
sir im facing an error can u please help me to solve it "The PHP GD extension is required, but is not installed."
@PerwinNonjida
@PerwinNonjida 3 күн бұрын
fopen(C:\xampp1\htdocs\ecommercelaravel\storage\fonts/material_design_icons_normal_db5bc81853778eb65f3eca8935e49013.ufm): Failed to open stream: No such file or directory ....what is the solution for this?
@trongnhanle7658
@trongnhanle7658 Жыл бұрын
hello teacher, when i dowload pdf file, my font-family of pdf file is error because my language is VietNamese. How can i fix it ?
@HungLe-uj1ky
@HungLe-uj1ky 2 жыл бұрын
Thanks bro
@usamakhilji8274
@usamakhilji8274 Жыл бұрын
in your system the user have only one item in his cart if he order more then what..?
@nishusapkota9990
@nishusapkota9990 11 ай бұрын
Order id is passed as a parameter
@03_polashmia57
@03_polashmia57 Жыл бұрын
$pdf = PDF::loadView('student-detail'); return $pdf->download('studentId.pdf'); Error: Non-static method Barryvdh\DomPDF\PDF::loadView() cannot be called statically. how to solve it?
@worshiplord8267
@worshiplord8267 Жыл бұрын
I have the same issue. have you solved it?
@tqnmusic5612
@tqnmusic5612 Жыл бұрын
@@worshiplord8267 yes i have the same issue, you can fix it ?
@rewaj56
@rewaj56 Жыл бұрын
Alias: 'PDF' => Barryvdh\DomPDF\Facade\Pdf::class In your controller: use Barryvdh\DomPDF\Facade\Pdf as PDF; In your function: $pdf = PDF::loadView('admin.pdf', compact('order')); Hope it helps !
@RizaHaryadi-rg6wg
@RizaHaryadi-rg6wg 8 ай бұрын
is it any different from the one in the video?@@rewaj56
@rewaj56
@rewaj56 8 ай бұрын
@@RizaHaryadi-rg6wg yes
@abdessamadelhaddad6553
@abdessamadelhaddad6553 10 ай бұрын
if the image doesn't appear try this
@jankisingh3692
@jankisingh3692 2 жыл бұрын
Clickbait you have written print pdf but it is just download pdf
@WebTechKnowledge
@WebTechKnowledge 2 жыл бұрын
Bro in order to print you need to download pdf
@muslimtechnology230
@muslimtechnology230 Жыл бұрын
I can not download the package. The problem is below . C:\Users\USER\Desktop\color design\EcommorceWebsite\daraze>composer require barryvdh/laravel-dompdf Using version ^2.0 for barryvdh/laravel-dompdf ./composer.json has been updated Running composer update barryvdh/laravel-dompdf Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Downloading dompdf/dompdf (v2.0.1) - Downloading dompdf/dompdf (v2.0.1)
@好きな事で生きるプロゲーマー自
@好きな事で生きるプロゲーマー自 2 жыл бұрын
Lesson19:kzbin.info/www/bejne/lafWiJelbLyhias
@code4life332
@code4life332 Жыл бұрын
Done 1/20/2023 ပီးပီ
@ryzizzle5615
@ryzizzle5615 2 жыл бұрын
I have an error. Can not print pdf with image My code didn't work :(
@WebTechKnowledge
@WebTechKnowledge Жыл бұрын
try adding another / before product
@accountaccount4217
@accountaccount4217 Жыл бұрын
Have you successfully fixed this? I'm having the same trouble can't find from google or yt's their suggestions aren't working. The image is being displayed in my blade file or LoadView but every time I download it as pdf it disappears.
@ryzizzle5615
@ryzizzle5615 Жыл бұрын
@@accountaccount4217no I didn't. Sorry
@accountaccount4217
@accountaccount4217 Жыл бұрын
@@ryzizzle5615 Ohh, ty for responding
@rodrigoaraujoei
@rodrigoaraujoei Жыл бұрын
@@WebTechKnowledge adding "/" just resolves the error, but when u see the pdf, the image is like blanc with some cross in the middle...
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,8 МЛН
File Upload in Laravel: Main Things You Need To Know
13:58
Laravel Daily
Рет қаралды 23 М.
Generate PDF files in Laravel 11 using DomPDF Package
15:50
Error Solution
Рет қаралды 4,3 М.
Generate PDF file in LARAVEL | Export data to PDF file
15:10
Hike Coding Knowledge
Рет қаралды 27 М.
Adding multi tenancy to an existing Laravel web application
21:45
Kompute’s Edge
Рет қаралды 28 М.
Generate PDF Using Form in Laravel 8 with AJAX
39:47
AB Nation Programmers
Рет қаралды 3,4 М.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,8 МЛН