Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover page not always rendered #576

Open
sandergroen opened this issue Sep 29, 2016 · 0 comments
Open

Cover page not always rendered #576

sandergroen opened this issue Sep 29, 2016 · 0 comments

Comments

@sandergroen
Copy link

sandergroen commented Sep 29, 2016

I'm having issues with the rendering of the cover page. This cover page is not always rendered. Any ideas what the problem can be?

I'm using the following code:

  pdf = WickedPdf.new.pdf_from_string(
    render_to_string(:action => 'someaction', :formats => :html, :layout => 'pdf'),
    cover: cover_url,
    header: {
       spacing: 20,
      content: header_url
    },
    toc: {
      header_text: 'Text'
    }
  )

I also tried to render the cover to a string but then only the cover page and toc are rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant