|
Rank: Newbie Groups: Member
Joined: 5/12/2015 Posts: 9
|
When I call webview.capture(), the resulting image always seems to be 96 dpi. Is there anyway to change this? This resolution is pretty poor for our purposes and we would like to have more control. Our printer is printing at about 203 dpi, so we're only using half of the resolution capabilities. Thanks.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
There is no way to do that in the current version. Capture method works by reading from the screen buffer --- which is the rasterized rendering of the current page at screen resolution. As such if your screen is 96, then the result will be 96. If your screen has higher resolution, the result will have higher resolution. It is not possible to have a different resolution than the current screen resolution.
One of the feature we are considering in the future is to allow you to export the current page to PDF using our EO.Pdf product. That can produce high quality output because most data in the PDF are in vector format so you can zoom in infinitely without losing quality. Right now EO.Pdf can convert any web page to PDF but it does not other programming interface EO.WebBrowser provides.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/12/2015 Posts: 9
|
Thanks for the quick reply. Is the 96 DPI the default when this is being run through thread runner and it's not shown on screen? My screen resolution definitely isn't that low, but since we're not displaying the browser on screen anywhere, I can see it using some default.
If I'm not able to increase the resolution that way, is it possible to achieve a higher resolution image by using the HtmlToPDF feature in EO.Pdf and then converting that into an Image? At first glance I don't see any methods to convert the PDF to an image, but I could be missing it.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Resolution generally is not an issue for PDF since almost everything in PDF is in vector format, this is one of the most important reason why PDF is so popular. However in the current version we do not have a way to flat out a PDF file into an image. So if your final format must be an image, then that route won't work either. If your final result can be PDF, then yes EO.Pdf will be idea for you. Rendering a web page into a PDF is very popular because the high output quality and PDF file can be viewed virtualy anywhere --- almost all major browser have built-in PDF viewer. Comparing with a flat image, the benefit of PDF file is unbeatable: 1. It can be zoomed out infinitely without losing quality; 2. It's much smaller than an image file.
We do plan to add a PDF render feature into our EO.Pdf product soon. In the test build that we are testing now EO.WebBrowser already have a PDF render (inherited from Chromium project). So the code is already there, as such all we need to do is to make it available to EO.Pdf. However the main focus for that feature will still be displaying a PDF file on screen, not for rendering high quality image from PDF file since it doesn't make much sense --- if you want high quality, it makes more sense to stay with PDF.
Thanks!
|
|