Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Header / Footer in PDF #645

Closed
jozefvaclavik opened this issue Aug 21, 2015 · 1 comment
Closed

Header / Footer in PDF #645

jozefvaclavik opened this issue Aug 21, 2015 · 1 comment

Comments

@jozefvaclavik
Copy link

Hey guys,

I'm not sure how much is this a bug, or maybe I'm just missing something. In README in the section about screenshots and export to PDF there is a link how to set up paperSize..

The problem I'm hitting is that I'm unable to set up header/footer on a page (page content get shifted based on height, but no header/footer content is displayed). contents requires phantom.callback with javascript function. Capybara gives page variable, but I don't think I can access directly phantom object. Whatever I try I cant make it work. Any ideas?

I don't have deep understanding of capybara and poltergeist, but if you would send me right direction I could work on a PR.

Jozef

@twalpole
Copy link
Contributor

twalpole commented Nov 9, 2015

the contents setting takes a JS function which can't be passed via JSON from the ruby to JS portion of the app, so it's not possible to use.

@twalpole twalpole closed this as completed Nov 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants