Unplanned
Last Updated: 02 Mar 2020 13:11 by ADMIN
ADMIN
Georgi
Created on: 06 Nov 2018 13:12
Category: PdfProcessing
Type: Bug Report
2
PdfProcessing: InvalidCastException is thrown when importing predefined ToUnicode CMap
When importing document with predefined ToUnicode CMaps (e.g. Identity-H), an InvalidCastException is thrown with cause: 

Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfName' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.CMaps.ToUnicodeCMap'.
2 comments
ADMIN
Tanya
Posted on: 02 Mar 2020 13:11

Hello Ilya,

The error is thrown while parsing the document content and I am afraid that we cannot suggest a workaround for this behavior. If it is an option for you, you can try to modify the document before importing it with PdfProcessing so that it doesn't contain a predefined ToUnicode CMap.

Please, make sure to subscribe to this item so you can receive notifications about status changes on it.

Regards,
Tanya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Ilya
Posted on: 28 Feb 2020 17:45
Did you ever figure out how to get around this? I'm getting same error!