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

Update README.md with examples for Super Advanced Usage #603

Merged
merged 2 commits into from
Jan 5, 2017

Conversation

shiroginne
Copy link
Contributor

Hello,

It might be obvious how to use

render_to_string('templates/pdf', layout: 'pdfs/layout_pdf.html')

method, but I faced the same issue several times: if footer / header is used with content option, PDF is generated with multiple footers for every string of a general template, if there is no layout option. No errors, no warnings 🤔 And templates look fine and everything is fine ("I just fix some css" 😄) but PDF contains 64 pages with footers. A couple of hours later I got it: the document was an incorrect HTML document.
I've added examples and a note, I think it can be helpful

@unixmonkey unixmonkey merged commit c10010c into mileszs:master Jan 5, 2017
@unixmonkey
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants