Duplicated
Last Updated: 06 May 2020 11:25 by ADMIN
Pochun
Created on: 06 May 2020 10:11
Category: PdfProcessing
Type: Bug Report
1
PdfProcessing: open pdf and throw UriFormatException

Telerik Pdf Processing Cannot open the attached pdf file and exception occur.

How do i slove it?

Code :
  RadFixedDocument document = new PdfFormatProvider().Import(input);

Exception Message :
   System.UriFormatException  無效的 URI: 無法剖析主機名稱。

Source :
   Telerik.Windows.Documents.Fixed

Stack Trace :

於 System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   於 System.Uri..ctor(String uriString, UriKind uriKind)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Actions.UriActionObject.ToAction(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.LinkObject.ToAnnotationOverride(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.Annotations.AnnotationObject.ToAnnotation(PostScriptReader reader, IRadFixedDocumentImportContext context, Double pageHeightInDip)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.Page.CopyPropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context, RadFixedPage fixedPage)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPagePropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.DocumentStructure.DocumentCatalog.CopyPropertiesTo(PostScriptReader reader, IRadFixedDocumentImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.RadFixedDocumentImportContext.BeginImportOverride()
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.BaseImportContext.BeginImport(Stream pdfFileStream)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import.PdfImporter.Import(Stream input, IPdfImportContext context)
   於 Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.ImportOverride(Stream input)
   於 Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Import(Stream input)
   於 Telerik.Windows.Documents.Common.FormatProviders.BinaryFormatProviderBase`1.Import(Byte[] input)
Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
1 comment
ADMIN
Martin
Posted on: 06 May 2020 11:25

Hello Pochun,

I already gave you an answer in the ticket you opened about this issue.

I am declining this bug report as a duplicated of the following: PdfProcessing: UriFormatException is thrown when importing UriAction with invalid URI

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.