Welcome Guest Search | Active Topics | Sign In | Register

How can I convert html to pdf with an application/pdf <object> embedded in it? Options
Gesdocument
Posted: Friday, April 10, 2015 6:32:46 AM
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.
eo_support
Posted: Friday, April 10, 2015 10:00:19 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.