flutter_html_to_pdf icon indicating copy to clipboard operation
flutter_html_to_pdf copied to clipboard

Use @page

Open akrost opened this issue 4 years ago • 2 comments

Hi,

is there a way to use @page to set the page margin and add a page counter? Something like this:

@page {
    size: A4;
    margin: 25mm 25mm 25mm 25mm;  
    @bottom-right {
        content: counter(page) " of " counter(pages);
    }
}

If it's not currently supported it would be a great improvement, I think.

akrost avatar May 04 '20 15:05 akrost

I'm waitig for this feature too. Maybe add support for Paged.JS framework too.

rlbartz avatar Jul 16 '20 21:07 rlbartz

Yeah, the problem is that we're using default printer api provided by the system itself. I'm not sure if we can make with this.

Afur avatar Mar 08 '21 16:03 Afur