Giter Site home page Giter Site logo

fpdf-laravel's People

Contributors

andrewmast avatar crabbly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fpdf-laravel's Issues

Blank output on chrome incognito

Hi,
ive been using the library successfully for the past few days.. but recently ive started using incognito mode on google chrome..
when i use incognito mode, the pdf shows fine for the first time output but if i repeat the process for other records, it shows a blank page.. no errors in inspect tool, no issues whatsoever but the window is blank..
on the other hand using simple browser mode never have this issue

can anyone please confirm if this is common or is it just me? and how to solve it?

my output code is:

$filename = 'invoice-' . $orderId . '.pdf';
file_put_contents('downloads/' . $filename, $pdf->Output('S'));
return $filename;

Language Problem

Hello,

how can i set language? i have Problem with accent. How can i fix this Problem?

Regards,
Gabor

Too few arguments to function

Hi,
I had received the error: Too few arguments to function Illuminate\Filesystem\FilesystemAdapter::put(), 1 passed in when trying your example in Laravel 5.7

I changed my code to this below for the output: -

$pdf->Output(); //save file
exit();

This seemed to allow it to work

Thought I would also share this : -

I could declare it like this at the top of my controller class: -

use Crabbly\FPDF\FPDF;

Then used my code like this in my method: -

$pdf = new FPDF; // Use this to instantiate FPDF to create PDFs
$pdf->AddPage(); // Create Page
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output(); //save file
exit();

Class 'Crabbly\FPDF\FPDF' not found

Hello

I installed composer require crabbly/fpdf-laravel in my lumen server and It's giving error of "Class 'Crabbly\FPDF\FPDF' not found" in my controller when I am trying to create PDF.

In my local server it's working fine, but in live server creating it's creating a problem.

Can you please tell me how can I solve this error?

PHP7.4

Just a short notice, that this library is not working anymore with PHP7.4.

The reason is, that the function get_magic_quotes_runtime was deprecated for a long time and now has been removed completely.

The library doesn't use it but checks for it in order to turn it off in Fpdf.php and makefont.php.
Not sure how you would handle that case.
Removing both checks worked for me.

Merge files

how can merge many pdf and images, to ouput only one pdf?

Adding scripts

Hi

New to Laravel but have used fpdf before. Just wondering if it is possible to add scripts to add functionality to fpdf and if so where I should be adding them.

Thanks.

Code128

Is there a way to call the barcode or QR Code fonts?

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.