Re: [iText-questions] Emptying a signature field

2010-10-11 Thread djdjdj

Paulo, 

No rush, but did you have a chance to look at my digital signature clearing
issue this weekend?

Thanks!
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/About-this-mailing-list-tp2968159p2989644.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Emptying a signature field

2010-10-08 Thread Bruno Lowagie
On 8/10/2010 14:43, djdjdj wrote:
 For me, there is a bit of a disconnect to that logic.  For example, if I'm
 creating a web form and want to clear the value of a field in a web form I
 certainly wouldn't delete the field and recreate it but would instead set
 the value to an empty string.

That is: if you're talking about a Text field.
What you say isn't true for a Button field.
Suppose you want to replace the icon on a button field,
than you have to getNewPushbuttonFromField() and
replacePushbuttonField() as is done in this example:
http://itextpdf.com/examples/iia.php?id=156

Why do you need to copy the field, throw away the
original field and then add the copied field?
Because there's more to a button than just a /V value.

As replacing a button is a more common request than
replacing a signature field, convenience methods were
added to iText. There are no such convenience methods
(yet) to empty a signature field.

 Similarly, if I'm clearing a value of a form
 field in a pdf why would it make sense to delete the whole field instead of
 simply clearing the field's value?

I should check ISO-32000 to see what keys are
important in the signature dictionary.
Did you look inside the PDF? Aren't there any other
keys (other than /V and /AP) left in the signature
dictionary? And also: if you remove the /AP value,
you throw away the visual appearance of the signature,
won't that be a problem?

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Emptying a signature field

2010-10-08 Thread djdjdj


Bruno Lowagie (iText) wrote:
 
 
That is: if you're talking about a Text field.
What you say isn't true for a Button field.
Suppose you want to replace the icon on a button field,
than you have to getNewPushbuttonFromField() and
replacePushbuttonField() as is done in this example:
http://itextpdf.com/examples/iia.php?id=156
 
Why do you need to copy the field, throw away the
original field and then add the copied field?
Because there's more to a button than just a /V value.
 

I see what you mean there.  That makes sense.


Bruno Lowagie (iText) wrote:
 
As replacing a button is a more common request than
replacing a signature field, convenience methods were
added to iText. There are no such convenience methods
(yet) to empty a signature field.
 

Makes sense.  I would think that clearing a digital signature field would be
more of a common request than replacing a button though.  That's just me I
guess...


Bruno Lowagie (iText) wrote:
 
 I should check ISO-32000 to see what keys are
 important in the signature dictionary.
 Did you look inside the PDF? Aren't there any other
 keys (other than /V and /AP) left in the signature
 dictionary? And also: if you remove the /AP value,
 you throw away the visual appearance of the signature,
 won't that be a problem?
 

There are other keys in the signature dictionary.  For example in the values
section the keys are:

/AP
/P
/FT
/MK
/F
/T
/Subtype
/V
/Type
/Rect


I would think it would be a problem, but again as I stated in the other
thread, that's the only code I've found that has anything to do with what
I'm trying to accomplish.  I think it was Paulo who actually suggested
deleting the /V and /AP values from the field in the thread I reference
before.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/About-this-mailing-list-tp2968159p2968303.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Emptying a signature field

2010-10-08 Thread Paulo Soares
It's funny that I thought that I had provided a method in AcroFields to empty a 
signature field but it looks like I didn't. I'll add it this weekend.

Paulo 

-Original Message-
From: djdjdj [mailto:d...@donaldlaing.com] 
Sent: Friday, October 08, 2010 2:20 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Emptying a signature field



Bruno Lowagie (iText) wrote:
 
 
That is: if you're talking about a Text field.
What you say isn't true for a Button field.
Suppose you want to replace the icon on a button field,
than you have to getNewPushbuttonFromField() and
replacePushbuttonField() as is done in this example:
http://itextpdf.com/examples/iia.php?id=156
 
Why do you need to copy the field, throw away the
original field and then add the copied field?
Because there's more to a button than just a /V value.
 

I see what you mean there.  That makes sense.


Bruno Lowagie (iText) wrote:
 
As replacing a button is a more common request than
replacing a signature field, convenience methods were
added to iText. There are no such convenience methods
(yet) to empty a signature field.
 

Makes sense.  I would think that clearing a digital signature field would be
more of a common request than replacing a button though.  That's just me I
guess...


Bruno Lowagie (iText) wrote:
 
 I should check ISO-32000 to see what keys are
 important in the signature dictionary.
 Did you look inside the PDF? Aren't there any other
 keys (other than /V and /AP) left in the signature
 dictionary? And also: if you remove the /AP value,
 you throw away the visual appearance of the signature,
 won't that be a problem?
 

There are other keys in the signature dictionary.  For example in the values
section the keys are:

/AP
/P
/FT
/MK
/F
/T
/Subtype
/V
/Type
/Rect


I would think it would be a problem, but again as I stated in the other
thread, that's the only code I've found that has anything to do with what
I'm trying to accomplish.  I think it was Paulo who actually suggested
deleting the /V and /AP values from the field in the thread I reference
before.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/About-this-mailing-list-tp2968159p2968303.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Emptying a signature field

2010-10-08 Thread djdjdj

Wow Paulo, that's great!

Just for my own information though, what keys should I be paying attention
to in order to do a clear of a signature field?  The /V and /AP still or
would all the keys need to be cleaned?
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/About-this-mailing-list-tp2968159p2968382.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Emptying a signature field

2010-10-08 Thread Paulo Soares
Those keys will have to be removed and some others will have to be modified. 
For example, it's customary to lock the field when signing but a locked empty 
field has not much use if trying to sign with Acrobat.

Paulo

-Original Message-
From: djdjdj [mailto:d...@donaldlaing.com] 
Sent: Friday, October 08, 2010 3:05 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Emptying a signature field


Wow Paulo, that's great!

Just for my own information though, what keys should I be paying attention
to in order to do a clear of a signature field?  The /V and /AP still or
would all the keys need to be cleaned?
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/About-this-mailing-list-tp2968159p2968382.html
Sent from the iText - General mailing list archive at Nabble.com.

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php