خرید بک لینک

Vote count: 0

I'm using DOMPDF, https://github.com/dompdf/dompdf, to render an html file to a PDF, yet I can't get the right and bottom margins to stretch all the way across. Here's the style I have applied to this page:

<style>
    @page { margin: 0px 0px 0px 0px; }
    body {
        background-image: url(../../image.jpg);
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
</style>

Yet Here's the output of the PDF I'm producing:

html 5 rendered PDF

Notice the white border on the very right, the same border is visible on the bottom of the page as well. I don't know how to make it stretch all the way on all sides, maybe it's a DOMPDF setting that I'm not setting right.

Am I missing some styling that could fix this? Or is anyone familiar with DOMPDF enough to advise me on a setting that I might have to change in order to eliminate those margins?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 27 فروردين 1395 ساعت: 2:59

صفحه بندی