RadFixedDocument.Merge throwing error (invalid URI)

0 Answers 67 Views
PdfProcessing
Jerome
Top achievements
Rank 1
Jerome asked on 18 Jan 2022, 03:17 PM | edited on 18 Jan 2022, 11:35 PM

Greetings,

any clue on why this is misbehaving on one environment but works fine on another? File exists on both boxes and path is valid.

Its basically adding a doc to a blank doc, however when it use in production will be more than one.

 

Throws exception Invalid URI - Hostname could not be parsed.

Dim MainDoc as New RadFixedDocument()

Dim childDoc as RadFixedDocument = LoadFile('c:\folder\sample.pdf')

MainDoc.Merge(childDoc) <--- error occurs here. the error is when it attempts to clone in the merge

 

Private Function LoadFile(byval strFilePath as String) as RadFixedDocument

      Dim pdfProvider as new PDFFormatProvider()

      Dim returnRad as RadFixedDocument

      Using input as FileStream = File.OpenRead(strFilePath)

             returnRad = pdfProvider.Import(input)

     End Using

     returnRad

End Function



 

 

Jerome
Top achievements
Rank 1
commented on 20 Jan 2022, 05:38 PM | edited

after filing an ticket, the response is there is something URI related in the pdf that it cant resolve when it tries to merge it. (aka clone).

Still hunting as i have no idea which URI its complaining about (image, sub doc)?

Tanya
Telerik team
commented on 21 Jan 2022, 11:43 AM

Hi Jerome,

We have just discovered an issue with the cloning functionality and it is already logged on our backlog: PdfProcessing: UriFormatException is thrown when merging/cloning a document containing UriAction with invalid URI. The report also contains a description of how you can remove the invalid links until we introduce a fix for that behavior.

Hope this is helpful.

No answers yet. Maybe you can help?

Tags
PdfProcessing
Asked by
Jerome
Top achievements
Rank 1
Share this question
or