We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HTML To PDF Metafile is returning Bitmap.

Thread ID:

Created:

Updated:

Platform:

Replies:

118458 Mar 10,2015 10:31 AM UTC Mar 14,2015 04:02 AM UTC ASP.NET Web Forms (Classic) 5
loading
Tags: PDF
Pramod Sahu
Asked On March 10, 2015 10:31 AM UTC

I am using Licenced Syncfusion in one of my project. it was developed in ASP.Net 2.0  5 year back. i used Chart and Syncfusion PDF in this project.
all were working fine in  Windows server 2003 R2.
We recently migrate the server to Cloud Windows Server 2012 (64 bit OS).We have changed the compilation target in Visual Studio to x86, and .net framework to 4.0 all are working fine.
But in Html To PDF creation when we are trying to create Metafile for a url, it always return Bitmap image, so our PDF size has increase drastically, quality of pdf page decreased and the text in PDF page is not selectable, we found following suggestion from syncfusion Forum.
http://www.syncfusion.com/forums/106816/html-to-pdf-metafile-feature-iviewobjectdraw-dmlt9-with-gdi.
Even your sample page http://asp.syncfusion.com/demos/reporting/pdf/Import%20and%20Export/HtmlToPdf/VB/Default.aspx
is giving Bitmap instead-of metafile.

we did registry entry on server but it is still returning Bitmap in metafile.
we have follwing dlls referenced in our project 
Syncfusion.HTMLUI.Base.dll (ver 7.302.0.20)
Syncfusion.Core.dll (ver 7.302.0.20) and many more...

in IIS we have Enabled 32-bit Application to True.






Abirami Selvan [Syncfusion]
Replied On March 11, 2015 01:03 PM UTC

Hi Pramod ,

Thank you for using Syncfusion product .

Our Html converter  uses  MSHTML(IE Rendering Engine) to convert HTML to Images and then the images are converted to PDF document.  While using  MSHTML rendering engine, if the site contains html5 or CSS3, it converts pdf as bitmap so we can’t  select the texts. As IE itself creating the bitmapped image, we can’t handle this in our converter.

To overcome the limitations of MSHTML and Gecko rendering engine, we have implemented our new webkit based HTML converter . It will produce the selectable or searchable texts in pdf. I have attached the webkitconverter sample for  your reference in the below link :

http://www.syncfusion.com/downloads/support/directtrac/general/WebkitconverterSample-1912347364.zip

You can refer the more details regarding this in below link :

http://www.syncfusion.com/blogs/post/HTML-to-PDF-Conversion-by-using-the-WebKit-Rendering-Engine.aspx

Please try this and let us know if you need any further assistance .

Thanks,

Abirami.



Pramod Sahu
Replied On March 12, 2015 02:36 PM UTC

Hello,

Thanks for your help.

Do we need to update our Syncfusion product to latest version?

When we try to run your sample project (WebkitconverterSample-1912347364.zip) on our system  we are always getting following error 

Could not load file or assembly 'Syncfusion.Pdf.Base, Version=12.4400.0.24, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

How can we add WebKit Converter code into our old version Project? 


Pramod Sahu
Replied On March 12, 2015 03:32 PM UTC

Hello,

Please find attached screenshot also.

Pramod Sahu
Replied On March 12, 2015 03:36 PM UTC

.

KarthikeyanC [Syncfusion]
Replied On March 14, 2015 04:02 AM UTC

Hi Pramod,

Thank you for your interest in Syncfusion Products.

I have attached the Webkit assemblies for 12.4 version in the below link. We have to add reference with the similar product version to avoid this error.

http://www.syncfusion.com/downloads/support/directtrac/118499/12.4.0.24145907475.zip

Please let me know if you need any further assistance.

Regards,

Karthikeyan.C



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;