Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

Capture whole page Options
Andreas Müller
Posted: Friday, May 8, 2020 10:08:06 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2020
Posts: 3
Hi All,

we try to get a capture of the whole page loaded into a WebControl. With the "Capture" Method of the inner WebView we are only able to get a capture of the current shown part of the page. Is there a way of capturing the whole web page?

Best regards
Andreas
eo_support
Posted: Monday, May 11, 2020 5:55:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,187
Hi,

Sorry about the delay. We have investigated this issue and confirmed it is a bug. We will fix it in our next build.

In our next build you should be able to capture outside of the visible area. However there are still other constrains that may cause capture to fail. For example, the entire capturing buffer must be in the bitmap format, as such if the area is too large, then you may run into out of memory error.

We will reply here again when the new build is ready.

Thanks!
eo_support
Posted: Friday, May 15, 2020 12:49:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,187
Hi,

This is just to let you know that we have posted a new build (2020.1.45) that should resolve this issue. You can download it from our download page. Please take a look and let us know how it goes.

Thanks!
Andreas Müller
Posted: Monday, May 18, 2020 5:36:49 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2020
Posts: 3
Hi,

thanks for the information. It works better now, but for long pages we just get a "null" from the capture method. Is there a limit of size the capture method will deliver as an image?

E.g. this site is not captureable currently:
https://www.wolterskluwer.de/service-kontakt/schriftenreihen/ahw/

We use this code to try to capture the image:
var webPageSize = webView.GetPageSize();
var image = webView.Capture(new System.Drawing.Rectangle(0, 0, webPageSize.Width, webPageSize.Height));
image is just "null" for the given page.

Best regards,
Andreas
eo_support
Posted: Monday, May 18, 2020 10:04:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,187
Hi,

That is exactly what we mentioned in our original reply ---- you should not rely on this feature to capture 1 to 1 rendering on the entire page for large pages. The capture feature relies on available screen memory buffer and this can vary greatly from system to system. This is similar to that there is a File.ReadAllBytes function that would allow you to read the entire file to a byte array, but the file system would support file size up to 4TB and most likely this function won't work on a 4TB file. Obviously you will have to change your application design to avoid needing to read such a large file into memory in its entirety. The same is for the Capture feature.

Thanks!
Andreas Müller
Posted: Monday, May 18, 2020 10:12:16 AM
Rank: Newbie
Groups: Member

Joined: 5/8/2020
Posts: 3
OK understood. I just expected to see any OutOfMemoryException or something like that. Now we just get null as result, I just wanted to clarify this.

We tried to use another way, we tried to print the current view on a PDF printer, but your product told us, that this is not allowed and we should by another component from you. We will investigate if this is feasable for us to put the additional cost to be able to implement this feature in a then hopefully fully working way.

Thanks so far.

Regards
Andreas


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.