Welcome Guest Search | Active Topics | Sign In | Register

HTML2PDF Options
Andy Ho
Posted: Thursday, January 17, 2013 3:26:48 AM
Rank: Newbie
Groups: Member

Joined: 12/5/2011
Posts: 5
I use EO.PDF to render my HTML page (With images) to PDF.

It works well on my page if I push the file to the client with:

ASPXToPDF1.RenderAsPDF(fileOutput)

But if I want to save it as a file at server side with:

EO.Pdf.HtmlToPdf.ConvertHtml(sb.ToString, fileOutput)

Then all the Styles and Images can't be rendered.

Any idea?

Thanks
eo_support
Posted: Thursday, January 17, 2013 9:04:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You need to set HtmlToPdf.Options.BaseUrl.

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.