Dear Bruno, Pablo and other Colleagues!

Please, forgive me for the ignorance, I perceived now, after trying and
trying, that it was necessary to use the PDFStamp object in set with the
PDFReader.

But already are appearing new you doubt, and need with the support of the
participants.

Grateful.

Em 04/05/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
escreveu:

Hi Bruno and All!

I am new in iText and I am making one "software" for signing PDFs.

This software have any acrofields tagged "Obligatory", and I make the pdf
template with Acrobat Professional (Designer Module) 7.0.

But I run the software I get this:

com.lowagie.text.DocumentException: This AcroFields instance is read-only.
    at com.lowagie.text.pdf.AcroFields.setField(AcroFields.java:965)
    at com.lowagie.text.pdf.AcroFields.setField (AcroFields.java:948)
    at
org.cejug.certificates.local.LocalCertificateBuilder.createEventCertificateEvent
(LocalCertificateBuilder.java:67)
    at org.cejug.certificates.Main.main(Main.java:36)

The iText Version is 2.0.2.

Attached in this mail I send the PDF, and below I put the Code:

PdfReader l_pdf = new PdfReader("CertificadoOriginal.pdf ");
AcroFields l_acrofields = l_pdf.getAcroFields();

l_acrofields.setField("evento", "teste");
l_acrofields.setField("participante", "Carlos Delfino");

Thanks for Attention.


--
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
----------------------------------------------------------
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a
Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja
louvado acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)




--
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
----------------------------------------------------------
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to