EldoS | Feel safer!

Software components for data protection, secure storage and transfer

EIPDFDocument - Remove/Clear Signature

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#5532
Posted: 03/20/2008 11:16:26
by Gustavo Marçaro (Basic support level)
Joined: 03/20/2008
Posts: 14

People, I need to delete a digital signature of the PDF....
I add her in a PDF and now I need to delete...How I make this in Delphi??
I am using the component: TEIPDFDocument.

tks..
Gustavo - Brazil
#5533
Posted: 03/20/2008 11:20:06
by Eugene Mayevski (EldoS Corp.)

Did you try Search? The second result in this URL will give you what you need.


Sincerely yours
Eugene Mayevski
#5534
Posted: 03/20/2008 11:48:27
by Gustavo Marçaro (Basic support level)
Joined: 03/20/2008
Posts: 14

var
F: TFileStream;
Index: integer;
TempPath: string;
Success: boolean;
Sig: TElPDFSignature;
begin
Success := false;
F := TFileStream.Create(TempPath, fmOpenReadWrite or fmShareDenyWrite);
Document.Open(F);
try
Index := Document.SignatureCount;
Document.RemoveSignature(Index);

Success := true;
finally
Document.Close(Success);
end;
finally
FreeAndNil(F);
end;
end;

=================================================
The image is not excluded!!...
#5535
Posted: 03/20/2008 11:53:12
by Ken Ivanov (EldoS Corp.)

Here's the problem:

Index := Document.SignatureCount;
Document.RemoveSignature(­Index);

Signatures enumeration is 0-based, so you need to pass (Index - 1) to the RemoveSignature() method.
#5536
Posted: 03/20/2008 11:53:23
by Gustavo Marçaro (Basic support level)
Joined: 03/20/2008
Posts: 14

+....
Yes...But when I use RemoveSignature or ClearSignature, the picture doesn't disappear, but it is modified.

PS: I'm using the version DEMO.
#5537
Posted: 03/20/2008 11:56:18
by Eugene Mayevski (EldoS Corp.)

Modified to what? It's likely that the picture belongs not to the signature, but to the signature field (and these are different objects).


Sincerely yours
Eugene Mayevski
#5538
Posted: 03/20/2008 12:05:09
by Gustavo Marçaro (Basic support level)
Joined: 03/20/2008
Posts: 14

Please, check the button:Remove Assinatura..

tks


[ Download ]
#5540
Posted: 03/20/2008 12:22:22
by Ken Ivanov (EldoS Corp.)

We cannot use the code you provided without understanding of the exact problem, sorry. Please describe the issue in details and/or please provide us the document that exposes it.
#5542
Posted: 03/20/2008 12:31:36
by Gustavo Marçaro (Basic support level)
Joined: 03/20/2008
Posts: 14

Ok....No problems.
I need remove this PDF's Image...
And the method: RemoveSignature only changes the image.


#5543
Posted: 03/20/2008 12:52:11
by Ken Ivanov (EldoS Corp.)

Got it, thank you.

You are right, the widget is not removed. We are investigating the issue at the moment.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 4926 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!