Coder Social home page Coder Social logo

Comments (17)

barryvdh avatar barryvdh commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

Tagged in 0.4.4, let me know if you still have problems.

from laravel-dompdf.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

Can you send a stripped down version, so I can compare it between two versions?

from laravel-dompdf.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

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.

barryvdh avatar barryvdh commented on May 20, 2024

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.

jonkristian avatar jonkristian commented on May 20, 2024

Could not figure this out.
Revert to 0.3.1 == Problem solved.

from laravel-dompdf.

Related Issues (20)

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.