Giter Club home page Giter Club logo

pdf-laravel5's Introduction

Hi there ๐Ÿ‘‹

pdf-laravel5's People

Contributors

kezkankrayon avatar pinotequal3 avatar rankovic avatar vsmoraes 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdf-laravel5's Issues

Could not download large set of data

When trying to download the data amount of data (more than 2000 rows), then I got site not reach error. For low amount of data it works fine.
capture

Title doesn't display properly

Is there anyway to have the title display the text of the title rather than the route? My title tags don't seem to be working no matter where they're placed. Thank you!

cannot update

hi there, im using pdf-laravel5 version 1.0.3. i tried to update to latest version but my composer give message nothing to update and install. how can i fix it?

Laravel 6 support

Is the package still maintained, will it receive the update for supporting Laravel 6?

"Not Instantiable"

BindingResolutionException in Container.php line 785:
Target [Vsmoraes\Pdf\Pdf] is not instantiable.

The package was just working until I updated composer, never worked since.

How can i load dynamic view with the source form database

I'm passing the $cv_info to view to show dynamic result.But it's said

Undefined variable: cv_info (View: D:\xampp\htdocs\FreelancerJob\resources\views\ui\UserInfo\viewCV.blade.php)

Here is my controller

$cv_info=CV::where('id','=',$cv_id)->first();
        $html = view('ui.userinfo.viewCV',$cv_info)->render();

        return $this->pdf
        ->load($html)
        ->show();

How can i fix it.Thanks for your help

Does not allow for multiple PDF generation in a single request.

When generating multiple PDF's in a single request I get the following error message on the 2nd attempt to generate the PDF.

DOMPDF_Exception in inline_positioner.cls.php line 37:
No block-level parent found. Not good.

It appears that the PDF object is only able to create a single PDF per request.

Unfortunately the PDF object is only instantiated when the service provider is registered and theres doesn't seem to be anyway way to re-isntatantiate the DOMPDF object at runtime. Is it possible to provide an additional method to create a new instantiation of DOMPDF? Could the current instance be unset and new instance created with a new method?

Image not found or type unknown

Hi, I am using the example which is in github, but the images are not aparecendeo always get this message "Image not found or type unknown".

I'm trying to images of type png and jpg

can not support genernate unicode pdf

can not support genernate unicode pdf. For example the Chinese , the reason is the font did not support.
But i have try to use dompdf load_font.php to install font ,but fail.

PHP Fatal error: require_once(): Failed opening required '/home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/../vendor/phenx/php-font-lib/classes/Font.php"' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/dompdf_config.inc.php on line 333
PHP Stack trace:
PHP 1. {main}() /home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/load_font.php:0
PHP 2. require_once() /home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/load_font.php:11

Fatal error: require_once(): Failed opening required '/home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/../vendor/phenx/php-font-lib/classes/Font.php"' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vagrant/Code/PersonalInfoPushCenter/vendor/dompdf/dompdf/dompdf_config.inc.php on line 333

Maximum Time out Exceed

Really confuse when I try to export HTML to PDF alwyas got this exception

FatalErrorException in functions.inc.php line 859:
Maximum execution time of 60 seconds exceeded

It only work when I try just load really simple HTML like
<html>Hello</html>

But when try the complex one which is use blade for templating doesn't work out.
This is how I try to export to PDF
$html = view("/grid-barcode")->with('data',$data)->render(); return PDF::load($html)->download();

Then i get this.
image

Please solve this issue
Thank you

Problem including HTML tables

I get this error when i try to export views with tables

FatalErrorException in cellmap.cls.php line 437:
Call to undefined method DOMText::getAttribute()

Update Dompdf to version 0.7.0

Due to the number of problems, I've decide to upgrade the version of the Dompdf lib to the last version available. Most of the issues that remain open are related to the lib itself and not the Laravel integration.

wrong url font

/laravel/vendor/dompdf/dompdf/lib/fonts\Helvetica-Oblique

how to change \ to / ?

Can't open pdf new tab

hallo, how to open pdf in new tab broswer, i try always file is downloaded.
help me please,

Generating multiple pdf using foreach

DOMPDF_Exception in inline_positioner.cls.php line 37:
No block-level parent found. Not good.

Please let me know if some solution is there for this issue. I am getting this error while generating multiple pdf together using foreach in laravel 5.0.

Thanks in advance
Neeteesh Mishra

download() ignoring filename

Laravel Framework version 5.2.7
Since the last "pdf-laravel5" update from 2015-01-11, the download() method ignores the filename() method and stores every pdf as "dompdf_out.pdf"

$html = view('invoice')->render();

// DOWNLOAD
return \PDF::load($html)
    ->filename('newFilename.pdf')
    ->download();

output() method not working

Laravel Framework version 5.2.6
show() and download() methods working fine, so setup shouldn't be the problem.
Trying to store the pdf on the filesystem returns no error, but the file is not stored on the filesystem.

$html = view('invoice', compact('invoice'))->render();

$result = \PDF::load($html)
            ->filename(storage_path('app/invoices/inv-123.pdf'))
            ->output();

Constant DOMPDF_ENABLE_AUTOLOAD already defined

I'd like to use Vsmoraes\Pdf\Pdf in several places, but i catch an error "Constant DOMPDF_ENABLE_AUTOLOAD already defined"

As i see, code in your Vsmoraes\Pdf\PdfServiceProvider should be like this:
defined('DOMPDF_ENABLE_AUTOLOAD') || define('DOMPDF_ENABLE_AUTOLOAD', false);
instead of
define('DOMPDF_ENABLE_AUTOLOAD', false);

And i think, it will be a good idea to bind Vsmoraes\Pdf\Pdf as shared.

Not Working For Large Content HTML in AWS

This Library is working fine in My Localhost. But When I push Code to My AWS Server, It is working fine for small contents but not working for big contents. Any Idea to Fix This.

I use Like,

return PDF::load($html)->download();

Please Help Me.

Class 'Vsmoraes\Pdf\PdfServiceProvider' not found

I have installed this package at windows local server working fine when im doing live at linux shared hosting it is showing this error

FatalErrorException in ProviderRepository.php line 146:
Class 'Vsmoraes\Pdf\PdfServiceProvider' not found

app.php
Vsmoraes\Pdf\PdfServiceProvider::class, ///provider
'PDF' => 'Vsmoraes\Pdf\PdfFacade', //aliases

in vendor folder vsmoraes/laravel-pdf/src/..... ///all files

Please let me what is the issue at linux.

Supporting UTF-8

Hi,
I see you plugin not support UTF-8, for non-Latin characters I get '?'
Pls help, tnx

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.