Nelson - 2014-02-28

Hello, i have a question, how can i duplicate my document and at the same time change some vars?

Example:

I have an invoice and the only thing i have to change is the original duplicate or more, i can replicate the same document with same header and stuff using ->

#for($i = 1; $i<=$ncopys; $i++)
#$pdf->copyPage($i);

Is there a way of doing it painless?

Thanks