RadPdfViewer Not Working

31 posts, 0 answers
  1. David
    David avatar
    13 posts
    Member since:
    Aug 2012

    Posted 24 Feb 2012 Link to this post

    I have spent a number of hours trying to get a PDF to display in the RadPdfViewer.

    For something that should have taken minutes I am frustrated!

    I can't get any PDF documents to load, either through stream or open file dialog.

    My RadPdfViewer is hosted in a childwindow, why does this not work, I know the memory stream is being made available the control just doesn't seem to render anything.
  2. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 25 Feb 2012 Link to this post

    I'm having a similar problem.

    I created a sample application to test the control inside a RadWinow and in the main xaml, works both time like a charm.

    When imported inside my application, the pdf only show the table that is inside the PDF and no text or image whatsoever.
    Does the PDF control has incompatibiliy with any Silverlight control ?
  3. DevCraft banner
  4. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 29 Feb 2012 Link to this post

    Hi all,

    We are sorry to hear that you are experiencing difficulties with the use of RadPdfViewer.

    @David: Did you try to first load the PDF file in our online demo? You should be aware that sometimes if there is an exception during the import of a file, the content of the document stays blank. If this is your case there might be a problem with the PDF file you are trying to open. For example, this may happen if your PDF has encrypted data.

    @Subileaus: We have tried your scenario and RadPdfViewer works with both RadWindow and ChildWindow as expected. Can you provide us a sample demo in a support ticket that shows the issue to further investigate the problem?

    Kind regards,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  5. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 02 Mar 2012 Link to this post

    Hi Kammen,

    The online demo does not work as well. I can't even view the document. It shows that is it trying to load the document and then it greys out. Exactly what happens when you are running the code in my machine with the Q1 Release.

  6. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 02 Mar 2012 Link to this post

    Hello Deepak,

    In that case the problem is probably with the parsing of the document. Could you open a support ticket and send us this document? Then, we could investigate the problem and try to find a solution.

    Looking forward to your reply.

    All the best,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  7. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 06 Mar 2012 Link to this post

    Hi Kammen,

    I personally cannot open the support ticket as it is registered under IT Department. But I have provided with the latest Hotfix for silverlight 4 and 5 and installed the Q1 2012 release. I still can't view the PDFViewer online or using the locahost. I can view other demos perfectly. It's just the PDFviewer that I cannot view. As I said earlier, page loads, the Loading sign appears and then I get PageError in IE and blanks out in Chrome.

    When I add the control in blend, I cannot even see the control. I can select it though.

    Any help?
  8. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 07 Mar 2012 Link to this post

    Hello Deepak,

    If you are using Win XP or Mac OS, you should download LIB 2012.2.306. There was a bug in the older versions that caused RadPdfViewer to crash on these two operation systems. In LIB 2012.2.306 this should be fixed and everything should work.
    If this is not the case, please provide some more details on your OS, the version of the browser and the version of Silverlight you have installed, so that we can reproduce the issue.

    Kind regards,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  9. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 07 Mar 2012 Link to this post

    Hi Kammen,

    I am using Windows XP Service Pack 3; VS 2010 SP1; Q1 2012 Release; Silverlight 5 Tools, toolkit, Developer tools.

    The IT department said that they cannot see the internal build 2012.2.306 for download. Only 2012.1.306 (see attached)

    Another thing is, what does this have to do with the online demos? Are online demos dependent on these as well?

    I still cannot view online demo for PDFViewer using demos.telerik.com/silverlight

    Thanks.
  10. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 08 Mar 2012 Link to this post

    Hi Deepak,

    You are right, the version of the LIB is 2012.1.306, it was a typo in Kammen's post.

    We had recently found about the bug when the PDF viewer is used on Mac and Windows XP. The issue is present in the official 2012 Q1 release (2012.1.215) - the version of controls that the demos use. However, we have fixed it as soon as the issue was reported and if you use the LIB, the problem should be resolved.

    Please, let us know if you experience any issues with the LIB.

    All the best,
    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  11. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 08 Mar 2012 Link to this post

    Thanks Iva,

    Will give it a shot tomorrow. WIsh the timezones were same so I didn't have to wait a whole day for an answer. ;-)

    Chees!
  12. Deepak Shakya
    Deepak Shakya avatar
    118 posts
    Member since:
    Aug 2007

    Posted 12 Mar 2012 Link to this post

    Hi Iva,

    Copied the 2012.1.306 binaries to the installation folder that overwrote the previous version. Created a new SIlverlight project in Expression Blend Preview for SIlverlight 5. Added RadPDFViewer to the layoutRoot. 

    I get an error. Please see attached.

    Any ideas?

  13. do
    do avatar
    6 posts
    Member since:
    Jul 2008

    Posted 14 Mar 2012 Link to this post

    Hi, this control is not support scan pdf file?
  14. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 15 Mar 2012 Link to this post

    Hi all,

    @Deepak - we failed to reproduce this issue. We did exactly what you have described, but the 2012.1.0306 version is working well on XP with Blend. Can you double check that you use the right references? 

    @do - RadPdfViewer does support scanned documents. However, sometimes a compression (usually CCITTFaxDecode) is used with some additional parameters that we do not support. If this functionality is vital for your application, you can create your own CCITTFaxDecode that handles this type of compression and replace our implementation. 

    All the best,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  15. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 19 Mar 2012 Link to this post

    On the latest binaries, I was having a huge problem with the radpdfviewer.

    On loading of my control, the InitializeComponent method was raising a framwork exception on themesetter method.
    Turns out the problem was caused by using the Summer theme provided by telerik.
    Reverting back to the default Office_Black fixed everything.

    Is this theme not up to date ?

    NB : This summer theme is also creating framworkstyle error on the RadRadialGauge control (haven't check the linear gauge, though)
  16. Hgem
    Hgem avatar
    1 posts
    Member since:
    Nov 2011

    Posted 19 Mar 2012 Link to this post

    We also get the theme setter issue whilst using the Metro Theme, but even after getting past the metro issue we still were unable to view PDF documents within the viewer, it doesn't crash any more but its still just as useless.

    Trying to get the viewer to display its white screen again so that i can send a screenshot to Telerik however I'm now stuck on the "Themesetter" exception again.

    Seems a lot of the issues we are having are to do with the Metro theme not being as up to date as the Office_Black themes, or having behaving differently.

    EDIT: Managed to get a PDF to display instead of a white screen. set the app theme back to default, before I was just setting the pdfviewer theme to office black instead of metro.

    This I suppose will have to do for now until they can release a fix for metro and the other themes
  17. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 20 Mar 2012 Link to this post

    Hi all,

    There are indeed some problems with the themes in the latest internal builds.
    We will try to fix these issues in the upcoming service pack, expected in less than a week. We are sorry for the inconvenience caused.

    All the best,
    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  18. Pascal
    Pascal avatar
    1 posts
    Member since:
    Dec 2007

    Posted 21 Mar 2012 Link to this post

    Hi Iva,

    Sorry for hijacking the thread here. We also have a crash, but using the Silverlight 4 runtime.
    We can load the control and display it, but as soon as a PDF gets loaded the loading screen appears and soon after the application crashes.

    When I update my machine's Silverlight runtime to version 5, but use the exact same controls, everything loads just fine.

    We had similar issues before with native Silverlight resource definitions that crashed the application on version 4. Unfortunately we cannot upgrade to version 5 since this is a criteria of the end product.

    Will this be fixed with the SP too?

    Edit:
    SL Version 4.1.10111.0 from http://www.microsoft.com/getsilverlight/locale/en-us/html/Microsoft%20Silverlight%20Release%20History.htm
    OS: Windows 7 64bit
    Dev: VS 2010 SP1
    Controls: Q1 installer + override from RadControls_for_Silverlight4_2012_1_0319_TRIAL_hotfix.zip

    Here's the stacktrace:
    at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
    at MS.Internal.XcpImports.Collection_AddValue[T](PresentationFrameworkCollection`1 collection, CValue value)
    at MS.Internal.XcpImports.Collection_AddDependencyObject[T](PresentationFrameworkCollection`1 collection, DependencyObject value)
    at System.Windows.PresentationFrameworkCollection`1.AddDependencyObject(DependencyObject value)
    at System.Windows.Controls.UIElementCollection.AddInternal(UIElement value)
    at System.Windows.PresentationFrameworkCollection`1.Add(T value)
    at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.GetPagePresenter(FixedPageLayoutInfo pageInfo)
    at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.UpdateVisiblePages(IEnumerable`1 visiblePages)
    at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.UpdatePagePresenters()
    at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.ViewportSizeChanged()
    at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.set_ViewportSize(Size value)
    at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
  19. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 26 Mar 2012 Link to this post

    Hello Pascal,

    We tested the behavior of RadPdfViewer from the lib with the set-up you have described, but unfortunately were not able to reproduce the issue.
    We would appreciate it if you could isolate the problem in a sample project and attach it to a support ticket. In this way, we could verify if the problem has been fixed.

    Looking forward to your reply.

    Kind regards,
    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  20. ben
    ben avatar
    2 posts
    Member since:
    Jan 2011

    Posted 26 Mar 2012 Link to this post

    Whenever I try to create an instance of the PDFViewer and set the DocumentSource VisualStudio 2010 crashes. Every, single, time. :(
  21. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 27 Mar 2012 Link to this post

    Hello Ben,

    Could you provide some more details on the issue. For example, which version of RadPdfViewer are you using?

    Regards,
    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  22. ben
    ben avatar
    2 posts
    Member since:
    Jan 2011

    Posted 27 Mar 2012 Link to this post

    I'm using:

    Telerik WPF 2012.1 326 release
    VS2010 Ultimate SP1

    Repro:

    Create a XAML
    Add <telerik:RadPdfViewer />
    Edit the tag to include DocumentSource
    As soon as you type DocumentSource, VS crashes/restarts.  No error details are provided.

    I have lots of other telerik controls on my forms and they work fine.  I can also assign other attributes to the tag and no crash occurs.
  23. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 28 Mar 2012 Link to this post

    Hi Ben,

    We have managed to reproduce this issue and have found a way to fix it. The fix should be available in the next LIB (Latest Internal Build) probably next week. Until then, as a workaround you can hide the designer and Visual Studio should not crash. 
    The Telerik points in your account have been updated in appreciation of your involvement.

    All the best,

    Kammen
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  24. Nick
    Nick avatar
    1 posts
    Member since:
    Aug 2012

    Posted 05 Sep 2012 Link to this post

    Hello, I’m using RadPDFViewer for Silverlight 4 and I faced a problem that I can’t open some PDF files.
    But in your demo that uses SL 5 this control can open those PDF files. Could you please confirm that functionality of
    RadPDFViewer for SL5 has been enhanced and such situation is normal for RadPDFViewer for SL4?

  25. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 10 Sep 2012 Link to this post

    Hi Nick,

    Generally, there are not major differences between SL 4 and SL 5 version of the RadPdfViewer (except the vector printing). So the reason that you can open some documents in our online demo but cannot open them locally may be that you are using different version of the control. Our online demo is version 2012.2.725. Which version do you use?

    All the best,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  26. Omar
    Omar avatar
    1 posts
    Member since:
    Jun 2012

    Posted 28 Dec 2012 Link to this post

    Hi
    I have a problem with the radpdfViewer.

    In my silverlight solution when i set the startUpProject on the web application project. the PdfPreview shows a grey screen
    but if i set the startup project on the silverlight project. the pdfpreview works fine.

    So when I publish the web site. the problem of the grey screen persist

    My telerik version is v. 2012.3.1017.1050
  27. Petya
    Admin
    Petya avatar
    975 posts

    Posted 02 Jan 2013 Link to this post

    Hello Omar,

    Can you please take a look at this article and make sure you are not missing anything? If you are still facing such an issue, please send us some additional details such as where the file you are trying to load is - i.e. is it embedded in your project or are you trying to load it from Uri. Also, what is the method you are using for showing the file as per the article referenced above?
    Any other details you feel are relevant will also be appreciated.

    I'm awaiting your reply.
     
    Regards,
    Petya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  28. Florin
    Florin avatar
    2 posts
    Member since:
    Feb 2013

    Posted 04 Feb 2013 Link to this post

    Hi

    I'm having a strange problem with the PdfViewer, it is not displaying accurate the original document. I can display most of the pdf documents but when comes to more complex documents with gradient images and picture inside of a frame the document is not well displayed. I'm getting the same behaviour using the online demo http://demos.telerik.com/silverlight/#PdfViewer/FirstLook. so I don't think is an implementation issue. I cannot attach a pdf document, it allows me only images so l attached screenshots.

    Best Regards
    Florin
  29. Florin
    Florin avatar
    2 posts
    Member since:
    Feb 2013

    Posted 04 Feb 2013 Link to this post

    Hi

    I'm having a strange problem with the PdfViewer, it is not displaying accurate the original document. I can display most of the pdf documents but when comes to more complex documents with gradient images and picture inside of a frame the document is not well displayed. I'm getting the same behaviour using the online demo http://demos.telerik.com/silverlight/#PdfViewer/FirstLook. so I don't think is an implementation issue. I cannot attach a pdf document, it allows me only images so l attached screenshots.

    Best Regards
    Florin
  30. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 07 Feb 2013 Link to this post

    Hi Florin,

    As you have noticed, RadPdfViewer does not support gradients. The list with all not supported features can be found here. In this case it is Pattern color space.

    I hope this information is helpful!

    Regards,
    Kammen
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  31. Mark
    Mark avatar
    15 posts
    Member since:
    Apr 2012

    Posted 11 Mar 2013 Link to this post

    I just upgraded to WPF version 2013.1.220.40.  Apparently, this version of the RadPdfViewer can't read pdf files produced with the ComponentOne C1PdfDocument control.

    This was not a problem with the previous version of the RadPdfViewer control.

    Version 2013.1.220.40 can read pdfs produced by Adobe.

    p.s. I am using C1PdfDocument because Telerik does not have an easy way to convert ascii files with new page control characters to pdfs. :(



Back to Top
DevCraft banner