|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
I had upgraded to 2016 so I could use HtmlToPdfSession. It does not like to render Bing Maps very well. Now to be fair I am also using the new v8 version of Bing Maps which changed a lot. I am also sending this to MS to see if I can get enough data from both of you to figure out a solution. Here is an after and before showing the changes. The background tiles still look good. The street labels and my icons are very pixelated. I know the Icons are now drawn on the html canvas where as before they were img elements. I do not know what the difference on the street labels is. Are there any settings I can try to get the quality up? Thanks, Brad
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
I was doing a little more digging with different search criteria and I ran across this: https://www.essentialobjects.com/forum/postst10039_HtmlToPDF--Image-Quality-of-Google-Map-Lacking.aspxWould that also fix my issue? If I can be assured it would I will go ahead and upgrade so I can get that version. Otherwise, I may have to figure out how to backtrack to v2015. :( - Brad
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Hi,
This should be the same issue. You can try to update to the current version and see if it resolves the issue before you upgrade. When you try the new version, make sure you do NOT apply your existing license key. If you apply your existing license key, you will get an exception. If you just try it without a license key, it will proceed to trial mode and you should be able to verify whether it works for you.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
So the latest version almost fixed the problem. The resolution issues are totally handled. But my label text uses a glow filter to get white text with a black outline. The black outline is not rendering. Here is the SVG I am using to draw the text on the canvas:
Code: HTML/ASPX
<text x="183" y="250" style="text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important;filter: glow(Color=#000000,Strength=1);font-size:180px;font-family:arial;fill:#FFFFFF;" text-anchor="middle">{text}</text>
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
I was a little premature in calling the resolution issue handled. It is better, but more work to be done. Look at the attached image. The inset is the web page in Chrome and the rest is the resulting PDF. You can see the PNG tiles (the street segments) are just fine. The text, especially the numbers, is a little softer. The lines have lost all of their anti-aliasing. - Brad
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,225
|
Hi,
Both issues might be related to the fact that we use a slightly older version of Chromium browser engine since most of the anti-aliasing are rendered correctly. We are in the process of resynching our code with the latest Chromium code base and hopefully when that is done, the rendering will be the same as the current version of Google Chrome browser.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/19/2013 Posts: 38
|
I ran version 54 of Chrome (assuming the Chromium engine version matches the Chrome version) and the maps look the same as on Chrome 60 so I am not sure that is the cause of the problem. How are you extracting the Canvas, using toDataURL? Are you somehow rendering the canvas entities directly into PDF primitives? One thing I noticed is that if you use toDataURL to extract a 2D image of the canvas, you actually get better quality than Chrome displays, see http://bingmapsv8samples.azurewebsites.net/#Map%20Image%20Generator- Brad
|
|