fullPage.js icon indicating copy to clipboard operation
fullPage.js copied to clipboard

Printable version of the site

Open alvarotrigo opened this issue 9 years ago • 8 comments

Right now only the active section gets printed. Ideally the whole site should be able to be printed at once.

alvarotrigo avatar Jun 05 '15 09:06 alvarotrigo

The screen closes when I try to print - it appears the url when it has sections linked in it effects the default print window and closes it. Have you experienced this as well? Is there a work around for now?

flatcapco avatar Aug 14 '15 16:08 flatcapco

The screen closes when I try to print

Sorry I can not reproduce it in the demo page. Probably not related with fullpage.js?

alvarotrigo avatar Aug 14 '15 16:08 alvarotrigo

Speedy! fair point actually neither can I... let me see if I can find something reproducible :).

flatcapco avatar Aug 14 '15 16:08 flatcapco

I added this to my print.css, overriding most of the inline styles from fullpage.js. Now it prints everything.

/* Override javascript inline styles */
html,
body {
    overflow: visible !important;
    height: auto !important;
}

.fullpage-wrapper {
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

.fp-section {
    height: auto !important;
}

.fp-slidesContainer {
    width: auto !important;
    transition: none !important;
    transform: none !important;
}

.fp-slides,
.fp-slides * {
    position: static !important;
}

.fp-slide {
    width: auto !important;
}

eystein avatar Aug 17 '15 10:08 eystein

I fixed my issue too... it was to do with the hashs in the url... not sure why sorry but clearing it first made print reliable for me:

        window.location.hash="";
        window.print();

flatcapco avatar Aug 20 '15 09:08 flatcapco

I was trying to force the page break after each section or slide with:

    .fp-section{
        page-break-after: always !important;
    }
    .fp-slide{
        page-break-after: always !important;
    }

But I never managed to see it working properly in Chrome.

alvarotrigo avatar Aug 20 '15 09:08 alvarotrigo

Had that issue on another project (none fullpage) and chrome is a bit fussy with some specifics.

"Parent elements can not have float on them.

Setting float:none on all parent elements makes page-break-before:always work correctly.

Other things that can break page-break are: using page-break inside tables, floating elements, inline-block elements, and block elements with borders."

flatcapco avatar Aug 20 '15 11:08 flatcapco

I don't know English well

.fp-tableCell {height: auto !important;} .fp-scrollable {height: auto !important;}

add Css source :D

ParkJinHyoung avatar Aug 22 '19 02:08 ParkJinHyoung