This is a migrated thread and some comments may be shown as answers.

Viewing PDF documents

3 Answers 118 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
NrupalC
Top achievements
Rank 1
NrupalC asked on 18 Nov 2010, 07:16 PM
Hi,

I am getting an unsupported exception when converting a pdf document into a RadDocument. Here is the setup I am currently using.

1. Pdf file is embeded in XAP and I would like to show it in Silverlight (or show the generic 'Open', 'Save' and 'Cancel' dialog, which I have realized is not possible with a file embedded in the XAP).
2. Using Application.GetResourceStream to get to the stream. (I have checked the stream and it looks fine with lots of bytes... :))
3. Using DocumentFormatProvidersManager.GetProviderByExtension(extension)n to get the IDocumentFormatProvider.
4. I get the right format provider which is pdf.
5. on  doing provider.Import(stream) i get a NotSupportedException.
6. I have referenced all the dlls from telerik for silverlight (just being safe, this is a test app only anyway).

Any help is appreciated.

And it would be great if anyone out there knows how to show the generic 'Open', 'Save' and 'Cancel' dialog of a browser for a file in the silverlight xap (NOT with a http url)

Thanks in advance
Nrupal

 

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 19 Nov 2010, 05:17 PM
Hello NrupalC,

PDF importing/visualization is not supported for now. It's in our to-do list, but we don't have specific timeline.
Let us know if you have any other questions or proposals.

Sincerely yours,
Boby
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tim Tos
Top achievements
Rank 1
answered on 20 Jul 2011, 12:41 PM
Hello there!

Any news when it will be perhaps possible to view pdf documents?
That would be soooooooooooo awesome!!!

Thanks for any information!
All the best and greetings,
Tim.
0
Iva Toteva
Telerik team
answered on 22 Jul 2011, 01:32 PM
Hello Tim Tos,

We are already considering implementing a PDF viewer for Silverlight, however, due to time constraints, we're not sure exactly when it will be available.
I am creating a PITS issue regarding this item, which you can use to track our development plans:
You can follow the PITS Issue by its ID: 7075 
Here you can find the PITS Issue: Public URL 

Best wishes,
Iva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RichTextBox
Asked by
NrupalC
Top achievements
Rank 1
Answers by
Boby
Telerik team
Tim Tos
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or