PDF in an iFrame larger than window

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

PDF in an iFrame larger than window

Postby ScottV » Wed Dec 28, 2016 2:53 pm

In Windows when a displaying a PDF in an iFrame the full iFrame is not filled with the PDF viewer.

This can be demonstrated in the "cefclient.exe" application by modifying the "pdf.html" file in the ".\tests\shared\resources" folder to the following (see attached).

<html>
<head>
<title>PDF Test</title>
</head>
<body bgcolor="white">
<iframe src="pdf.pdf" width="500" height="500"></iframe>
<iframe src="pdf.pdf" width="500" height="1500"></iframe>
</body>
</html>

Is there any way to fix this?

Thank you,
--Scott
Attachments
pdftests.png
Screen Shot
pdftests.png (14.07 KiB) Viewed 12365 times
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: PDF in an iFrame larger than window

Postby ScottV » Wed Jan 04, 2017 2:43 pm

Any information on this?

--Scott
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: PDF in an iFrame larger than window

Postby amaitland » Wed Jan 04, 2017 5:09 pm

What about using the html5 embed tag?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: PDF in an iFrame larger than window

Postby ScottV » Thu Jan 05, 2017 11:56 am

The problem is on any PDF embedded in an iFrame on any web page the frame is only rendered to what is visible on the page. Any portion of the iFrame that is not visible on the page is rendered as black.

--Scott
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: PDF in an iFrame larger than window

Postby amaitland » Thu Jan 05, 2017 7:38 pm

Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: PDF in an iFrame larger than window

Postby ScottV » Fri Jan 06, 2017 10:11 am

I am testing with cefclient.exe 12/14/2016 - CEF 3.2883.1540.gedbfb20 / Chromium 55.0.2883.59 both 32 and 64 bit.

From:
http://opensource.spotify.com/cefbuilds/index.html

Testing method:

1. Run cefclient.exe.
2. Shrink window.
3. Use cefclient.exe menu item: Tests, Other Tests, click on "PDF Viewer iframe".
4. Expand window.

Expected:
normal.png
normal.png (14.64 KiB) Viewed 12338 times


Results: bottom portion of PDF obscured by window is black when resized.
resized.png
resized.png (12.11 KiB) Viewed 12338 times


--Scott
ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm

Re: PDF in an iFrame larger than window

Postby magreenblatt » Mon Jan 09, 2017 2:38 pm

Please add a bug.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: PDF in an iFrame larger than window

Postby ScottV » Mon Jan 09, 2017 3:21 pm

ScottV
Techie
 
Posts: 27
Joined: Thu Mar 27, 2014 1:22 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 89 guests