Essential PDF ASP.NET MVC
HTML content in PDF
April 10, 2012 12:47 AM by Geetha M[Syncfusion]
Sonam Mehta
HTML content in PDF
November 21, 2011 12:17 AM
Hi,

Can I export my HTML content in PDF using syncfusion PDF creator?

Can you please provide me sample code?

Thank you in Advance.


Best Regards,
Sonam Mehta

Sonam Mehta
HTML content in PDF
November 21, 2011 03:31 AM
Hi,


When I am using HTMLConverter I am getting following error:

ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.

Can you please reply me as soon as possible.

Thank You

Regards,
Sonam Mehta

Meikanda Nayanar
[Syncfusion]
HTML content in PDF
November 22, 2011 08:00 AM
Hi Sonam,

Thanks for your interest in Syncfusion product,

We can export our HTML content to PDF using our product. I have created a sample to handle the scenario and attached in the below link,

Sample link:

http://www.syncfusion.com/downloads/Support/DirectTrac/86555/HTMLToPDF1414374304.zip

Please verify the sample and let us know if this helps,

Please let us know if you need any further clarifications,

Regards,
Meikanda Nayanar


Sonam Mehta
HTML content in PDF
November 23, 2011 03:37 AM
Hi,


Here I have attached sample code. Can you please check and let me know how can I export this thing in PDF?

Best Regards,
Sonam Mehta



MvcApplication1_e29dfb51.rar
Sonam Mehta
HTML content in PDF
November 25, 2011 01:29 AM
Hello Syncfusion Team,

Can anyone please reply to my post?

If you don't have any solution related to it, Please let me know.

So I will not wait for your reply and find another solution rather than Syncfusion.

Regards,

Sonam Mehta

George Livingston
[Syncfusion]
HTML content in PDF
November 25, 2011 02:02 AM
Hi Sonam,

Thank you for your details.

Please find the sample available in the link below to achieve your target.

http://www.syncfusion.com/downloads/Support/DirectTrac/86592/MvcApplication193056037.zip

Please let us know if you have any questions.

Regards,
George


Sonam Mehta
HTML content in PDF
November 25, 2011 03:58 AM
Hi George Livingston,

Thank you very much for your reply.

Code you have sent is working fine. But I want to export only Map with its marker.

Can you please check attached code and give me some suggestions?

Waiting for your suggestions.

Thanks & Regards,
Sonam Mehta



MvcApplication193056037_2c900c84.rar
George Livingston
[Syncfusion]
HTML content in PDF
November 29, 2011 05:05 AM
Hi Sonam,

Thank you for your details.

The HTML content of the map does not contain the marker. The HTML content of the map is provided in the link below. Please use the Internet explorer to open the HTML file. The converted PDF document will contain exactly the same content visible in the Internet explorer.

http://www.syncfusion.com/downloads/Support/DirectTrac/85809/HtmlContent-853434665.zip

Please find the modified sample in the link below for rendering the HTML content into a single page of the PDF document.

http://www.syncfusion.com/downloads/Support/DirectTrac/85809/MvcApplication1930560372049112674.zip

Please let us know if you have any questions.

Regards,
George


Shandao Song
HTML content in PDF
April 4, 2012 11:18 AM

Hi George,

Thank you very much for your MVC example. I can convert my pdf-like web page to PDF by Browser. However when using doc.ExportAsActionResult("name.pdf", HttpContext.ApplicationInstance.Response, HttpReadType.Save), IE and Chrone refuse to save. Can you please help?

Is there a way the Add footer to PDF when autoDetectPageBreak is true.

Thank you in advance.

Regards,

Shandao Song
HTML content in PDF
April 4, 2012 02:35 PM
Thanks again for your MVC example, George.

Another thing is HTML image tag is not show in PDF.

<img alt="" src="@Url.Content "~/Content/reports/image.bmp")" />
<img alt="" src="@Url.CrawfortPng("image.png")" border="0" />

Can you help?

Thank you in advance.

Shandao



Geetha M
[Syncfusion]
HTML content in PDF
April 10, 2012 12:47 AM
Hi Shandao,

Thank you for the details.

I am afraid that I am not able to reproduce the file cannot be saved problem. Also, you can add footer to the document when AutoDetectPageBreak property is set to true. Regarding the image, could you make use of Server.MapPath to load the image instead of Url.Content?

I had placed the modified sample in the following link:

MvcApplication1.zip

Could you please check this sample, modify and send back to us so that we can check the file cannot be saved problem here?

Regards,
Geetha

::adCenter::