Comments (17)
Does this commit fix it? e65b0f7
(Should be installable with dev-master@dev
)
Will tag a new release if so. See also #51 and #48
from laravel-dompdf.
Tagged in 0.4.4, let me know if you still have problems.
from laravel-dompdf.
Thanks for quick reply:) No errors, but now the view is messed up. Almost like html5 and css floats doesn't work.
from laravel-dompdf.
Did that work before?
On Mon, Jul 14, 2014 at 4:58 PM, Jon Kristian [email protected]
wrote:
Thanks for quick reply:) No errors, but now the view is messed up. Almost
like html5 and css floats doesn't work.—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from laravel-dompdf.
Yes:)
Unless something has changed in dompdf that has to do with css or html5, not sure what happened. Floats does not work, not sure if that's the only thing though but it looks that way.
if it helps i can send you the old & new pdf.
from laravel-dompdf.
Can you send a stripped down version, so I can compare it between two versions?
from laravel-dompdf.
Stripped down version of?
Uploaded the pdf's here:
NEW: http://jonkristian.no/new_dompdf.pdf
OLD: http://jonkristian.no/old_dompdf.pdf
from laravel-dompdf.
Ow I meant the template / html
Op 14 jul. 2014 18:59 schreef "Jon Kristian" [email protected]:
Stripped down version of?
Uploaded the pdf's here:
NEW: http://jonkristian.no/new_dompdf.pdf
OLD: http://jonkristian.no/old_dompdf.pdf—
Reply to this email directly or view it on GitHub
#52 (comment)
.
from laravel-dompdf.
Sure, I've hardcoded most of it now and stripped.
You can find it here: http://jonkristian.no/template_dompdf.html
And here's the css: http://jonkristian.no/template_dompdf.css
from laravel-dompdf.
Did you publish the config and set DOMPDF_ENABLE_CSS_FLOAT
to true?
See image, true on the left, false on the right: http://i.imgur.com/wCN3K4g.jpg
from laravel-dompdf.
Yup. I also removed the folder from app/config/packages/ and published config again. Seems like it doesn't get picked up.
from laravel-dompdf.
No conflicting packages? You aren't loading any dompdf config files directly are you? Can you paste your exact php code to render to pdf?
from laravel-dompdf.
It's a very simple function. I use several templates hence the $page var.
function getPdf($id = null, $page)
{
// Check if the prospect exists
if (is_null($prospect = Prospect::find($id))) {
return Redirect::to('admin/prospects')->with('error', Lang::get('prospects/messages.does_not_exist'));
}
$pdf = App::make('dompdf');
$pdf->loadHTML( View::make('admin/prospects/export/pdf/'.$page, compact('prospect')) );
return $pdf->stream();
}
from laravel-dompdf.
Sorry I have no idea. Maybe check if the config is loaded at all? Maybe change the size or the orientation and see if it differs?
from laravel-dompdf.
Thanks for helping this far:)
It seems that the options inside 'defines' array does not work, however 'orientation' works from the config file, so it's definitely loaded.
from laravel-dompdf.
Could be the constants are already defined for some reason, for example because the default dompdf is loaded. But not sure why..
from laravel-dompdf.
Could not figure this out.
Revert to 0.3.1 == Problem solved.
from laravel-dompdf.
Related Issues (20)
- how can custom paper size define in px HOT 1
- Dompdf 2.0.4 fixes Possible DoS caused by infinite recursion when validating SVG images HOT 4
- Error 503. Service Unavailable HOT 4
- Not Supporting Gujarati Fonts HOT 1
- Incorrect file handling for symlinked paths HOT 3
- Laravel Dompdf rendering broken font on different laravel server HOT 1
- Watermark HOT 1
- Is it possible to indent within html? HOT 1
- open() argument #1 ($filename) must not contain any null bytes HOT 1
- Undefined array key "" HOT 2
- File(/.ufm) is not within the allowed path(s) HOT 8
- Security issue with dompdf/dompdf <2.0.4 dependency HOT 2
- Add support for Laravel 11
- CSS and Image not rendering on my PDF HOT 1
- Found 1 security vulnerability advisory affecting 1 package: in mpdf HOT 1
- installation problem
- Dompdf\\Options::validateArtifactPath(): Argument #1 ($path) must be of type string, null given, HOT 6
- Currency Symbol Error - Naira (₦) HOT 2
- > Just Replace ( dompdf\src\Image\Cache.php ) From dompdf 0.8.5 To All New Version Dompdf !
- Security vulnerability - phenx/php-svg-lib HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-dompdf.