In Development
Last Updated: 17 Apr 2025 17:12 by ADMIN
Jason
Created on: 02 Apr 2025 15:17
Category: PdfProcessing
Type: Bug Report
0
PdfProcessing: Type1FontSource.GetCapHeight() System.NotImplementedException: 'The method or operation is not implemented.'

I have a simple program that imports a PDF, calls AcroForm.FlattenFormFields(), and calls Export() on the PdfFormatProvider. With the attached example PDF I am seeing the following exception.

System.NotImplementedException: 'The method or operation is not implemented.'

Stack Trace

at Telerik.Windows.Documents.Core.Fonts.Type1.Type1Format.Type1FontSource.GetCapHeight()
   at Telerik.Windows.Documents.Core.Fonts.FontSource.get_CapHeight()
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Fonts.FontDescriptor.CopyRequiredButType3FontPropertiesFrom(FontBase font)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Fonts.FontDescriptor.CopyPropertiesFrom(IPdfExportContext context, FontBase font)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Fonts.SimpleFontObject.CopyPropertiesFromOverride(IPdfExportContext context, FontBase font)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfExporter.WriteFontsFromContext(PdfWriter writer, IPdfExportContext context)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Export.PdfExporter.Export(IRadFixedDocumentExportContext context, Stream output)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.ExceptionHandling.ExecutionHandler.TryHandleExecution[E](Action operation)
   at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ExportOverride(RadFixedDocument document, Stream output)

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 04 Apr 2025 15:24

Hello, Jason,

I am sorry to hear that you are facing any difficulties with Telerik Document Processing.

The provided sample document is greatly appreciated. I was able to observe the error message on my end with the latest version. I have updated the status of this item accordingly.

Due to the specificity of the issue, I am unable to suggest an appropriate solution. That is why I have escalated this item to our developers and we will do our best to introduce a fix accordingly. Make sure that you follow this item to get notified for any status changes. Please excuse us for any inconvenience this may be causing to your project.

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!