Igor-Vladyka / leaflet.browser.print

A leaflet plugin which allows users to print the map directly from the browser
https://igor-vladyka.github.io/leaflet.browser.print/
MIT License
154 stars 76 forks source link

Print additional content section on another page #133

Open alexfaley opened 3 months ago

alexfaley commented 3 months ago

Hey there

I want to print addtional section on another page. For this issue i tried use css rule like this

       @media print {
            .story {
                page-break-after: always;
                page-break-before: always;
                page-break-inside: avoid;
            }
        }

Here you can find full example https://jsfiddle.net/an8e9ovc/1/

When is printing via standard way (Ctrl+P) in result document three page, but when I print via leaflet.browser.print in result document only single page. How I can insert page break inn generation result.

Igor-Vladyka commented 2 months ago

Hey. you can try to play with printing-additional-content-section. Add to each story item an attribute and see what will happen.