Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

No spacing between heading and table on page-break #12082

Closed
moleculezz opened this issue Mar 21, 2014 · 1 comment
Closed

No spacing between heading and table on page-break #12082

moleculezz opened this issue Mar 21, 2014 · 1 comment
Labels

Comments

@moleculezz
Copy link

There seems to be an issue with spacing between the table and heading on page-break when generating a PDF file. Not sure if this also happens normally without a page-break.

UPDATE: Tested and it only happens on page-break.

casper.page.paperSize = {
    format: 'a4',
    margin: '0.1in',
    header: {
        height: "1.5cm",
        contents: phantom.callback(function(pageNum, numPages) {
            return '<div style="background-color:#000; height:1.5cm"><img src="http://example.com/images/logo.png" style="height:1cm; margin:0.25cm 0 0 0.25cm" /></div>';
        })
    }
};

Table PDF

There's no space between the header (black block) and the table. I tried adding CSS margin to the table, but that didn't work.

Platform: Debian 6
Phantomjs: 1.9.7 & 1.10.0 (master branch)
I've compiled the master branch to try out patches for #11291 & #11490

@stale stale bot added the stale label Dec 27, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant