Rank: Member Groups: Member
Joined: 5/23/2013 Posts: 24
|
Hi there,
I'm trying to use MVCToPDF.RenderAsPDF() to convert an html page with "application/pdf"<object>s embedded in it. Everything gets rendered properly - even image <object>s - except for the pdf <object> I have embedded in it that looks like this:
<object data="data:application/pdf;base64,JVBERi0xLj....Q0KJSVFT0YNCg==" type="application/pdf" height="1000"> alt : <a href="data/test.pdf">test.pdf</a> </object>
If you put that piece of code on an html page you'll see that it works just fine.
I wonder if there's a way to make it work or if it's just not supported by MVCToPDF?
Cheers.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
You will not be able to do this. Rendering embedded PDF requires the PDF plug-in but our HTML to PDF converter does not load plug-ins (primarily due to security reasons and the lack of a UI/API to configure it), so it is not possible to embed PDF inside the HTML. We maybe able to enable this in a future version though.
Thanks!
|