Zealot
Zealot

Reputation: 697

Prawn: specify page for content to be placed

I'm currently using Prawn to generate a billing PDF, the problem is that the total amount of the bill is known at the end of the rendering. I'd like to place this variable's content on the first page of PDF but I don't how to add content to a page once I used the start_new_page function.

Is that possible to go back on the fist page and add content once I used start_new_page?

Thank you in advance.

Upvotes: 1

Views: 995

Answers (1)

cschroed
cschroed

Reputation: 6834

You may want to check out the go_to_page method.

Upvotes: 3

Related Questions