Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorqdubois
    • CommentTimeMar 4th 2010 edited
     
    Hello everyone !
    First of all I want to thanks Ian for is great work, I have been using it for a week now and I must say that I'm a big Fan.

    I just have an issue with margin-right within an @page in a css.

    when I use for pdf :
    $mpdf=new mPDF();
    @page {
    margin-left: 5mm;
    margin-right: 5mm;
    }

    The right margin is not taken into account.

    but if I use : $mpdf=new mPDF('','','','',5,5); it works as reqested.

    It seems that in Css the margin-right is not being parsed correctly .

    Hope somebody can help me with it.

    good day

    quentin

    • CommentAuthorIanBack
    • CommentTimeMar 6th 2010
     
    This is a bug. I will fix in future releases. You can change for now by adding one line to mpdf.php

    Find function _beginpage()
    then find the lines:

    // mPDF 4.2 Moved page-box stuff
    // Moved in v1.4 to allow for changes in page orientation (Sets lMargin, rMargin, MarginCorrection)
    $this->ResetMargins();
    $this->SetAutoPageBreak($this->autoPageBreak,$this->bMargin);

    Add the line:

    // mPDF 4.2 Moved page-box stuff
    // Moved in v1.4 to allow for changes in page orientation (Sets lMargin, rMargin, MarginCorrection)
    $this->ResetMargins();
    $this->pgwidth = $this->w - $this->lMargin - $this->rMargin;
    $this->SetAutoPageBreak($this->autoPageBreak,$this->bMargin);

    • CommentAuthorqdubois
    • CommentTimeMar 8th 2010
     
    Thanks man !! Have a great day Quentin