Hi there,
 
I'm quite new to itext and I bounced into a little problem.
 
I have a PDF-file with one page (a graphic) and I'd like to insert a page before.
This worked realy fine with PdfStampers "insertPage()-method".
Now I want to fill this new page with a button.
On the one hand I thought drawing the button with the moethod from PdfContentByte should work. But in this case I don't know how to attach an action to this button.
On the other hand I thought this button should be an AcroField (FIELD_TYPE_PUSHBUTTON). But in this case I don't know how to attach a new Form to the Pdf. I learned how to read existing AcroFields and concatening two different forms - but this is not what I want. I'd like to create a comlete new one for this particular page.
 
Can anyone help me with this?
Hope you know what I mean - sorry for bad spelling and grammar :/
 
greetings from Berlin. Germany
Beate

Reply via email to