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.
Unfortunately, activation email could not send to your email. Please try again.

Create HTML PDF in Medium Trust

Thread ID:





108413 Apr 18,2013 11:03 PM Apr 24,2013 11:46 PM ASP.NET MVC (Classic) 3
Tags: PDF
Tony Basallo
Asked On April 18, 2013 11:03 PM

How does one create a PDF from HTML in medium trust?

I do not need to load a URL and process that. I have a templating system where content is styled using HTML and CSS. I want to get the HTML that I have saved and create a PDF.

Can this be done in medium trust?

If not, how does one create a PDF in medium trust while styling text and formats?

KarthikeyanC [Syncfusion]
Replied On April 23, 2013 11:53 PM

Hi Tony,
Thank you for using Syncfusion Products.

We have analyzes your requirement for 'Enhancing the conversion of HTML to PDF in medium trust scenario'.
This feature isn't available in our product, we have already created a feature request in our database.
We will let you know once the feature is implemented.


Tony Basallo
Replied On April 24, 2013 12:12 AM

FYI - for those of you looking for a medium trust solution until this feature gets implemented:

Create a Word document, which can process the HTML, and convert to PDF from Word.

This will work as long as your HTML is simple enough to be understood by Word. I'm using it for letters - which includes text formatting, some tables and margin/padding and it works well.

It won't producr a perfect image (like the full trust version), but...

Hope that helps.

KarthikeyanC [Syncfusion]
Replied On April 24, 2013 11:46 PM

Hi Tony,
Thank you for your workaround.



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.

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.