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
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)?
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.