Reputation: 1602
Is it possible to get wicked-pdf to render different footers of a single multipage document? So page 1 would have a footer that says one thing and page 2 would have a footer that says another thing.
Upvotes: 2
Views: 3481
Reputation: 3339
For doing such thing I think it's better to use Partial Files!Then in the main Page you can Specify width,heights and use <%= yield %>
or <%= rende 'partial_file' %>
.
Break a Leg :)
Upvotes: 0
Reputation: 18784
If you check the example here for custom page numbering with javascript:
https://github.com/mileszs/wicked_pdf#page-numbering
You should be able to write some javascript logic to say if page > 1, then do something special.
Another way would be to use WickedPdf.new.pdf_from_string to build your page 1 pdf, then the rest of the document in another pdf_from_string, and use PDFtk to stitch them together.
Upvotes: 1