Firtly, the getPath method was being required however the define wasn’t receiving the hole paste’s folder. Its *dirname wasn’t working so I switched to app_path().'/Libraries/FPDF/font/' and, in the ending of the method, I’ve put exit; after *$pdf->Output. If not, the browser would show the following characters:
%PDF-1.3 3 0 obj <> endobj 4 0 obj <> stream x�e��N�0��} �R<��?W$@�g(�g^�� ��r���~��w&)����Z�^�cx;Ώ��g���G���W|�E> ���i̔4c{��:� r�+���L&�Ʉs"Hh&h�F2c�2��nڢ�,���"���L��<�i ��e�i � +I�φi���i4;,��ۜf�:���� ���
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community