Need More Info
Last Updated: 08 Apr 2025 15:10 by ADMIN
Jason
Created on: 02 Apr 2025 15:25
Category: PdfProcessing
Type: Bug Report
0
Import of annotation with type Sig is not supported.

I have a simple program that imports a PDF, calls AcroForm.FlattenFormFields(), and calls Export() on the PdfFormatProvider. I am seeing the following exception during Import() on a signed W9 form a customer has uploaded into our system. Due to the sensitive nature of the document I cannot upload it, but below is the Sig section. I have tried other example signed PDFs which seem to work fine (See attached)

39 0 obj
<< /Type /Annot /Rotate 0 /AP 180 0 R /Rect [ 105.8515 149.2023 289.4443 261.1185
] /Border [ 0 0 0 ] /M (h<D[×¥\001.ƒ¶AB}«\006iÚ¿E@\024_”W±ÔÃ\030ÙL\020"É]a\012Ú6¡0\000¶Žm1@Ž)
/C [ 1 ] /DA (h<D[×¥\001.ƒ¶AB}«\006.\023âø‰\035\005íöu\002ÊÒ½ùwË@—‹måÿڏ[ ‹í!¨\001)
/F 4 /Subtype /Sig >>
endobj

 

Exception

System.NotSupportedException: 'Import of annotation with type Sig is not supported.'

Stack Trace

at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.AnnotationFactory.CreateUnsupportedAnnotationObject(PdfName type)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.TypeAwareConverter`1.CreateInstance(Type type, PostScriptReader reader, IPdfImportContext context, PdfDictionary dictionary)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.Converter.ConvertFromDictionary(Type type, PostScriptReader reader, IPdfImportContext context, PdfDictionary dictionary)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.Converter.Convert(Type type, PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Converters.Converter.Convert(Type type, PostScriptReader reader, IPdfImportContext context, IPdfPrimitive value)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfCollectionBase`1.ConvertElementToType[T](PostScriptReader reader, IPdfImportContext context, IPdfPrimitive element)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfCollectionBase`1.TryGetElement[T](PostScriptReader reader, IPdfImportContext context, TIndex index, T& element)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.<>c__DisplayClass21_0.<CopyPageAnnotationsTo>b__0()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExecutionHandler.TryHandleExecution[E](Action operation)

 

 

Attached Files:
3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 08 Apr 2025 15:10

Hello, Jason,

I understand completely your concerns about sharing the problematic document. That is why I put some efforts to create such a document on my own but without any success. After downloading the referred template and trying to sign it in Adobe, I noticed that it contains XFA forms and it is not possible to sign the document.

Since the XFA forms are no longer part of PDF 2.0 (ISO 32000-2), in Q1 2025 we provided only the functionality for preserving any already existing XFA forms in a document when importing/exporting a document. RadPdfProcessing still offers the interactive forms feature (also known as AcroForm). It allows you to create PDF files containing textboxes, buttons, list boxes and other interactive controls enabling the PDF file user to interactively fill some data in the PDF document and/or digitally sign the filled document. 

That is why any documents that do not follow the PDF specification are expected to face such a message expressing the not supported type of annotation.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Jason
Posted on: 04 Apr 2025 15:22

Thanks for the quick response. I understand the difficulty troubleshooting the issue without the file. Unfortunately my company is forbidding me from sharing this document with any third parties, even in a private support ticket. I have been unsuccessful at creating a sample pdf that has this exact /Sig annotation, and any attempts to redact or edit the document also removes the signature. I appreciate any research you can do without the file. If I do discover a way to recreate the issue in a sample PDF I will be sure to share it.

 

I attached a screenshot of some of the metadata. It appears to have been signed on a Mac.

The blank W9 PDF they are filling out and signing can be found on the IRS website: http://www.irs.gov/pub/irs-pdf/fw9.pdf

Attached Files:
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 04 Apr 2025 11:14

Hi, Jason,

The provided document is greatly appreciated. Indeed, it is successfully imported with the PdfProcessing library. I understand that the privacy of a document is treated with highest priority and it can't be exposed publicly in the feedback portal. However, it can be provided in a private support ticket directly submitted from your Telerik account. It would help us significantly to troubleshoot the precise case and replicate the issue locally.

It is hard for us to investigate the issue without actually having the problematic file. Please try and prepare a sample file without the sensitive information. If you decide you can also send us the original file and open a private support ticket from your Telerik account. You can be certain that it will be used only for investigation purposes of this case and your privacy will be respected.  

Thank you in advance for your cooperation. Looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!