Welcome Guest Search | Active Topics | Sign In | Register

MVC to PDF - RenderAsPDF margin setting ? Options
handofmercy
Posted: Thursday, February 13, 2014 9:18:04 AM
Rank: Newbie
Groups: Member

Joined: 2/13/2014
Posts: 1
Hi

I'm currently evaluating your product and wanted to ask a technical question.

I've put at the top of my MVC action the attribute tag [RenderAsPDF]. It's works really well and potentially just what we need.

However, is there a way to force within the attribute tag and set the margins for the resulting PDF file? At the moment the resulting PDF file has very large margins and I can't seem to find a way to set those. Basically, I need it set all margins to zero, for top, bottom, left and right.

Thanks
Brick wall
eo_support
Posted: Thursday, February 13, 2014 9:27:47 AM
Rank: Administration
Groups: Administration

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

You would set HtmlToPdf.Options.OutputArea. See here for more details:

http://www.essentialobjects.com/doc/4/htmltopdf/page_size.aspx

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.