Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to delete digital signature for PDF file programatically

New Here ,
Nov 22, 2018 Nov 22, 2018

How to delete digital signature for PDF file programatically.

Deleting one signature from PDF file, other signatures in the same  PDF file are becoming InvalidInvalid Signature.JPG

TOPICS
Security digital signatures and esignatures
5.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
LEGEND ,
Nov 27, 2018 Nov 27, 2018
LATEST

It is absolutely impossible by design to remove an earlier signature without invalidating the others, that could never work. But it should be possible to remove the latest if the file is not locked. To check if PDFBox is the problem, try with signature adding and removal in Acrobat. If this works the problem is PDFBox, and/or your removal process.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 22, 2018 Nov 22, 2018

How are you deleting them now? Were you removing the LAST signature applied or an EARLIER one?

I don't think Acrobat has any API for signature removal.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 22, 2018 Nov 22, 2018

API Used: PDFBox2.0.4

PDF signed with Multiple signatures.

We are able to remove the signature, but it makes other signatures invalid in the PDF.

Any help is appreciated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 23, 2018 Nov 23, 2018

Were you removing the LAST signature applied or an EARLIER one?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 26, 2018 Nov 26, 2018

Sorry for the delay in response.

Two use-cases are involved.

First usecase, will delete Last applied signature.

Second usecase, will delete earlier signature.

In either of the use cases, other signature should not be invalidated.

Please help us out. our product delivery depend on this.

Adding Signature: To add multiple signature using incremental save using PDFBOX2.0.4 API.

Tried methodology (To delete signature): Removed signature filed from found in ‘AcroForm”.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 27, 2018 Nov 27, 2018
LATEST

It is absolutely impossible by design to remove an earlier signature without invalidating the others, that could never work. But it should be possible to remove the latest if the file is not locked. To check if PDFBox is the problem, try with signature adding and removal in Acrobat. If this works the problem is PDFBox, and/or your removal process.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines