We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting an error when trying to sign a PDF

This is the error that we are receiving when trying to sign a PDF

2021-09-13 20:27:46.066 +00:00 [Error] Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID “13907115650930824835”, Request ID “8001d69a-0000-c100-b63f-84710c7967bb”: An unhandled exception was thrown by the application.Aspose.Pdf.InvalidValueFormatException: Time Zone value has incorrect formatat #=zoZbZ78XusXM_nzRHEWgXZQ_DvwYEPE2WDg==.#=zvHaX89Vhf$wm()at #=zoZbZ78XusXM_nzRHEWgXZQ_DvwYEPE2WDg==…ctor(#=zigq$vRhhssCKlySjE7FcyuYIvNCvPK$$4A== #=zJpalYhFaO9df)at Aspose.Pdf.Forms.SignatureField…ctor(#=zhpmOKhZNkklNFQND2tldc4hzkRdwnTByIw== #=zLTx3NxU=, Document #=zjHvFwv4=)at Aspose.Pdf.Forms.Field.#=zow8vp0M=(#=zhpmOKhZNkklNFQND2tldc4hzkRdwnTByIw== #=zHUKFxVI=, Document #=zjHvFwv4=)at Aspose.Pdf.Forms.Form.#=z4Ur8WcE=.get_Current()at Aspose.Pdf.Document.#=zwcebqMARAXIAYqeFyw==()at Aspose.Pdf.Facades.PdfFileSignature.#=zUr6zKDip3xsC()at Aspose.Pdf.Facades.PdfFileSignature.Sign(Int32 page, String SigReason, String SigContact, String SigLocation, Boolean visible, Rectangle annotRect, Signature sig)at Aspose.Pdf.Facades.PdfFileSignature.Sign(Int32 page, Boolean visible, Rectangle annotRect, Signature sig)at Api.Services.Signing.Signing.SignPdf(ExternalSignature externalSignature, MemoryStream file) in C:\git\

@myrdraal0

Can you please share the following files and information with us so that we can test the scenario in our environment and address it accordingly:

  • Sample Source PDF
  • Used Certificate file with password
  • Complete sample code snippet to replicate the issue