Posted 28 November 2017, 5:25 pm EST
Hello,
When try to load pdf document using C1PdfViewer, it will cause the web browser crash, the exception messages as followed:
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)
Timestamp: Wed, 29 Nov 2017 06:14:24 UTC
Message: Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control ‘SilverlightControl’: System.Windows.Markup.XamlParseException: [Line: 0 Position: 0] —> System.IndexOutOfRangeException: [Arg_IndexOutOfRangeException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.50428.00&File=mscorlib.dll&Key=Arg_IndexOutOfRangeException
at C1.Silverlight.PdfViewer.CIDFontType2.GetGlyphId(Int32 cid)
at C1.Silverlight.PdfViewer.CIDFontType2.InitializeCharObjects(IEnumerable
1 charObjects) at C1.Silverlight.PdfViewer.Type0.GetCharObject(Byte[] value) at C1.Silverlight.PdfViewer.PdfPageElement.RenderText(Byte[] bytes) at C1.Silverlight.PdfViewer.PdfPageElement.ShowTj() at C1.Silverlight.PdfViewer.PdfPageElement.ExecuteCommand(String command, BinaryReader br) at C1.Silverlight.PdfViewer.PdfPageElement.RunLoop(BinaryReader reader, TimeSpan timeOut, Func
2 onExectuingCommand)at C1.Silverlight.PdfViewer.PdfPagesList.get_Item(Int32 index)
at System.Windows.Controls.ItemCollection.GetGenericItem[T](Int32 index)
— End of inner exception stack trace —
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue cvData)
at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
at MS.Internal.XcpImports.FrameworkElement_ApplyTemplateInternal(FrameworkElement frameworkElement)
at System.Windows.Controls.ScrollContentPresenter.HookupScrollingComponents()
at System.Windows.Controls.ScrollContentPresenter.OnApplyTemplate()
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
The C1.Silverlight.PdfViewer.dll version: 5.0.20162.516
How can we solve this problem?
Regards,
Julian.Chen