sliknl / dompdfbundle Goto Github PK
View Code? Open in Web Editor NEWWith this bundle you can easily use DOMPDF to generate pdf documents from anywhere in Symfony2
License: MIT License
With this bundle you can easily use DOMPDF to generate pdf documents from anywhere in Symfony2
License: MIT License
In PHP 7.1 there are a number of situations in the code where you'd get this error. This error comes from the Dompdf library and it was already fixed in a recent version.
i think the solution is to upgrade the packed version of Dompdf.
Hello,
There is a bug in the version of dompdf that this bundle uses that causes broken images if you try to generate multiple pdfs containing the same image. (for example, to include them in a zip file).
You can read here about the issue:
https://code.google.com/p/dompdf/issues/detail?id=17
https://groups.google.com/forum/#!topic/dompdf/7perv5jGKvs
Looks like they have fixed it, as this code shows:
https://github.com/dompdf/dompdf/blob/master/include/image_cache.cls.php#L151
But the code here has not been updated. I suggest either update code or manually apply fix.
Is there a reason for us to use and older version of dompdf? Is there a way to update it inside this wrapper?
The readme does only cover installation using composer
Hi, it seems that your package DompdfBundle are stable, but you didn't added any tag.
Could you add it? Because work with branch dev-master not good.
Thank you in advance.
To make it possible to generate a dynamic page size and orientation "on the fly", it would be very nice to have the following extra parameters available in the wrapper's "getpdf" function:
$paper_size
$paper_orientation
It is easy to edit this my self, but composer updates erase all the enhancements on new deployments. So it would be very nice to have these options build in inside this repository.
Thanks in advance.
Using php 5.4 or higher:
ContextErrorException: Warning: Illegal string offset 'hex' in /Applications/MAMP/htdocs/.../vendor/slik/dompdf-bundle/Slik/DompdfBundle/DomPDF/include/style.cls.php line 1419
The issue is in the version of dompdf used in this bundle:
$this->_props["color"] = $col["hex"];
This is fixed in dompdf 6.0. Is there a way to update the dompdf version using the bundle config (not changing the files manually) ?
When you change the DOMPDF_DEFAULT_PAPER_SIZE in https://github.com/SlikNL/DompdfBundle/blob/master/dompdf_config.inc.php.dist#L208 to "a4" it generates a non-functioning PDF file. Only value "letter" works.
Will this support for symfony 3 version in the future?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.