I read your answer and it works perfectly for what I was looking for. I only have trouble with adding another javascript to the pdf. For example, besides the contact list, I will also want to have a dropdown menu for "guests". If I do this in a separate javascript, the previous one stops working. If I add it in the same javascript, the previous stops working too. What do you think might be my problem?