CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

PDF Viewer in 53 does not work in WPF application

Open happyuk opened this issue 10 years ago • 3 comments

###Bug Report

  • What version of the product are you using? -53

  • What architecture x86 or x64?

    • Either
  • On what operating system?

    • Win7
  • Are you using WinForms, WPF or OffScreen?

    • Wpf
  • What steps will reproduce the problem?

  1. Download and compile the 'minimal' example: https://github.com/cefsharp/CefSharp.MinimalExample

  2. Set the 'Address' property in the MainWindow.xaml to point to a pdf file

(This is the only code change I have made to this example)

<wpf:ChromiumWebBrowser Grid.Row="0"
                            x:Name="Browser"
                            Address="http://www.cbu.edu.zm/downloads/pdf-sample.pdf" />
  1. Re-compile and run
  • What is the expected output? What do you see instead?

The PDF document does not materialize until the Wpf app is re-sized or maximized.

Once you do re-size, the PDF document becomes visible, but you cannot use any of the controls within it without ALSO doing an additional resize action eg + / - / use the scroll bar etc.

  • Please provide any additional information below.

Seems very similar to a previous issue raised and closed:

https://github.com/cefsharp/CefSharp/issues/1697

  • Does this problem also occur in the Cef TestApp from http://opensource.spotify.com/cefbuilds/index.html (http://cefbuilds.com for older version)?

This site is currently blocked by my employer (lumps the spotify bit in with 'Music') but I will try to have a look when I get the chance.

happyuk avatar Nov 09 '16 14:11 happyuk

I have the same issue. It also seems to work (but with very poor performance) if the dev tools are visible (browser.ShowDevTools();)

sloewhite avatar Nov 10 '16 12:11 sloewhite

Hi Marc thanks for your input do you know of a version that does not have this problem in wpf?

On Thursday, November 10, 2016, Marc Schleeweiß [email protected] wrote:

I have the same issue. It also seems to work (but with very poor performance) if the dev tools are visible (browser.ShowDevTools();)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cefsharp/CefSharp/issues/1858#issuecomment-259674977, or mute the thread https://github.com/notifications/unsubscribe-auth/AD9liAkNfmk7SG7OoJK-7_SObRlOwr1Kks5q8woUgaJpZM4Ktk24 .

happyuk avatar Nov 11 '16 07:11 happyuk

Duplicate of #1799

amaitland avatar Nov 19 '16 00:11 amaitland